OpenCloudOS-Kernel/drivers/net/ethernet/cavium/liquidio
Prasad Kanneganti a55667e6f2 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>
2017-05-26 14:41:48 -04:00
..
Makefile liquidio CN23XX: VF config setup 2016-11-30 11:03:08 -05:00
cn23xx_pf_device.c liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
cn23xx_pf_device.h liquidio: allocate RX buffers in OOM conditions in PF and VF 2017-03-22 19:36:43 -07:00
cn23xx_pf_regs.h liquidio CN23XX: fix for new check patch errors 2016-11-15 22:24:40 -05:00
cn23xx_vf_device.c liquidio CN23XX: VF xmit 2016-12-08 13:21:39 -05:00
cn23xx_vf_device.h liquidio VF ethtool stats 2016-12-08 18:16:51 -05:00
cn23xx_vf_regs.h liquidio CN23XX: VF register definitions 2016-11-30 11:03:08 -05:00
cn66xx_device.c liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
cn66xx_device.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
cn66xx_regs.h liquidio CN23XX: fix for new check patch errors 2016-11-15 22:24:40 -05:00
cn68xx_device.c liquidio CN23XX: fix for new check patch errors 2016-11-15 22:24:40 -05:00
cn68xx_device.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
cn68xx_regs.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
lio_core.c liquidio: fix VF incorrectly indicating that it successfully set its VLAN 2017-04-08 08:38:41 -07:00
lio_ethtool.c liquidio: remove unnecessary variable assignment 2017-04-21 13:25:34 -04:00
lio_main.c net: ethernet: update drivers to handle HWTSTAMP_FILTER_NTP_ALL 2017-05-21 13:37:32 -04:00
lio_vf_main.c net: ethernet: update drivers to handle HWTSTAMP_FILTER_NTP_ALL 2017-05-21 13:37:32 -04:00
liquidio_common.h liquidio: refactor interrupt moderation code 2017-03-28 22:22:03 -07:00
liquidio_image.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
octeon_config.h liquidio: improve UDP TX performance 2017-03-09 13:07:00 -08:00
octeon_console.c net: liquidio: fix build errors when linux/phy*.h is removed from net/dsa.h 2017-02-10 13:51:03 -05:00
octeon_device.c liquidio: fix inaccurate count of napi-processed rx packets reported to Octeon 2017-05-26 14:41:48 -04:00
octeon_device.h liquidio: fix insmod failure when multiple NICs are plugged in 2017-05-17 14:48:29 -04:00
octeon_droq.c liquidio: allocate RX buffers in OOM conditions in PF and VF 2017-03-22 19:36:43 -07:00
octeon_droq.h liquidio: allocate RX buffers in OOM conditions in PF and VF 2017-03-22 19:36:43 -07:00
octeon_iq.h liquidio: fix inaccurate count of napi-processed rx packets reported to Octeon 2017-05-26 14:41:48 -04:00
octeon_mailbox.c liquidio: fix rare pci_driver.probe failure of VF driver 2017-05-26 14:41:47 -04:00
octeon_mailbox.h liquidio: fix rare pci_driver.probe failure of VF driver 2017-05-26 14:41:47 -04:00
octeon_main.h liquidio: improve UDP TX performance 2017-03-09 13:07:00 -08:00
octeon_mem_ops.c liquidio: optimize reads from Octeon PCI console 2016-12-29 22:26:03 -05:00
octeon_mem_ops.h liquidio CN23XX: copyrights changes and alignment 2016-11-15 22:24:40 -05:00
octeon_network.h liquidio: fix Octeon core watchdog timeout false alarm 2017-04-06 12:31:56 -07:00
octeon_nic.c liquidio: fix VF incorrectly indicating that it successfully set its VLAN 2017-04-08 08:38:41 -07:00
octeon_nic.h liquidio: fix VF incorrectly indicating that it successfully set its VLAN 2017-04-08 08:38:41 -07:00
request_manager.c liquidio: optimize DMA in NUMA systems 2017-03-12 23:17:00 -07:00
response_manager.c liquidio: fix for vf mac addr command sent to nic firmware 2017-03-21 17:48:29 -07:00
response_manager.h liquidio: fix for vf mac addr command sent to nic firmware 2017-03-21 17:48:29 -07:00