]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: fix inaccurate count of napi-processed rx packets reported to Octeon
authorPrasad Kanneganti <prasad.kanneganti@cavium.com>
Thu, 25 May 2017 17:54:29 +0000 (10:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 18:41:48 +0000 (14:41 -0400)
commit9fe50dc3ef4c6d5601e6fb2bdb27dceba75b0930
treecff0f92b50f59ee2bde2f953881942cdd7e96ff5
parent12df36d27e41dec4b5ce723dd91ef21de297f889
liquidio: fix inaccurate count of napi-processed rx packets reported to Octeon

lio_enable_irq (called by napi poll) is reporting to Octeon an inaccurate
count of processed rx packets causing Octeon to eventually stop forwarding
packets to the host.  Fix it by using this formula for an accurate count:

    processed rx packets = droq->pkt_count - droq->pkts_pending

Also increase SOFT_COMMAND_BUFFER_SIZE to match what the firmware expects.

Signed-off-by: Prasad Kanneganti <prasad.kanneganti@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.c
drivers/net/ethernet/cavium/liquidio/octeon_iq.h