diff options
author | Sunil Goutham <sgoutham@cavium.com> | 2015-12-02 13:06:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-02 23:58:50 +0300 |
commit | 006394a7cb20559418c602b8433ec1839b6fc1d3 (patch) | |
tree | dae6b236b332e451292db8a544d6dfe69f69e2b2 /drivers/net/ethernet/cavium/thunder/nic.h | |
parent | a7b1f535a8d45816cfe25c0fd900fc726ba5acce (diff) | |
download | linux-006394a7cb20559418c602b8433ec1839b6fc1d3.tar.xz |
net: thunderx: Set CQ timer threshold properly
Properly set CQ timer threshold and also set it to 2us.
With previous incorrect settings it was set to 0.5us which is too less.
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/nic.h')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nic.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h index d3950b20feb9..39ca6744a4e6 100644 --- a/drivers/net/ethernet/cavium/thunder/nic.h +++ b/drivers/net/ethernet/cavium/thunder/nic.h @@ -120,10 +120,9 @@ * Calculated for SCLK of 700Mhz * value written should be a 1/16th of what is expected * - * 1 tick per 0.05usec = value of 2.2 - * This 10% would be covered in CQ timer thresh value + * 1 tick per 0.025usec */ -#define NICPF_CLK_PER_INT_TICK 2 +#define NICPF_CLK_PER_INT_TICK 1 /* Time to wait before we decide that a SQ is stuck. * |