Searched hist:a55667e6f258408f1e7ddcf645d76d67a5ab3d92 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_iq.h | diff a55667e6f258408f1e7ddcf645d76d67a5ab3d92 Thu May 25 12:54:29 CDT 2017 Prasad Kanneganti <prasad.kanneganti@cavium.com> 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>
|
H A D | octeon_device.c | diff a55667e6f258408f1e7ddcf645d76d67a5ab3d92 Thu May 25 12:54:29 CDT 2017 Prasad Kanneganti <prasad.kanneganti@cavium.com> 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>
|