]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Fix for Qset error due to CQ full
authorSunil Goutham <sgoutham@cavium.com>
Wed, 24 Feb 2016 11:10:50 +0000 (16:40 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 21:25:34 +0000 (16:25 -0500)
commit479ba1c07876ef7ae0b86ebb530bd1bcc535b274
treeeb2225b50321dba238b886d27081e882811c75c3
parenteaa98342f589695f379768464d5689abb1485944
net: thunderx: Fix for Qset error due to CQ full

On Thunderx pass 1.x and pass2 due to a HW errata default CQ
DROP_LEVEL of 0x80 is not sufficient to avoid CQ_WR_FULL Qset
error when packets are being received at >20Mpps resulting in
complete stall of packet reception.

This patch will configure it to 0x100 which is what is expected
by HW on Thunderx. On future passes of thunderx and other chips
HW default/reset value will be 0x100 or higher hence not overwritten.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic.h
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/nic_reg.h