linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan 2270bc5da3 bnxt_en: Fix netpoll handling.
To handle netpoll properly, the driver must only handle TX packets
during NAPI.  Handling RX events cause warnings and errors in
netpoll mode. The ndo_poll_controller() method should call
napi_schedule() directly so that a NAPI weight of zero will be used
during netpoll mode.

The bnxt_en driver supports 2 ring modes: combined, and separate rx/tx.
In separate rx/tx mode, the ndo_poll_controller() method will only
process the tx rings.  In combined mode, the rx and tx completion
entries are mixed in the completion ring and we need to drop the rx
entries and recycle the rx buffers.

Add a function bnxt_force_rx_discard() to handle this in netpoll mode
when we see rx entries in combined ring mode.

Reported-by: Calvin Owens <calvinowens@fb.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-23 14:48:27 -04:00
..
bnxt_dcb.c bnxt_en: Check status of firmware DCBX agent before setting DCB_CAP_DCBX_HOST. 2017-05-17 15:12:49 -04:00
bnxt_dcb.h bnxt_en: Pass DCB RoCE app priority to firmware. 2017-04-24 13:54:46 -04:00
bnxt_ethtool.c bnxt_en: Add 100G link speed reporting for BCM57454 ASIC in ethtool 2017-04-24 13:54:46 -04:00
bnxt_ethtool.h bnxt_en: Add basic ethtool -t selftest support. 2017-04-05 06:24:26 -07:00
bnxt_fw_hdr.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_hsi.h bnxt_en: Update firmware interface spec to 1.7.6.2. 2017-04-05 06:24:26 -07:00
bnxt_nvm_defs.h bnxt_en: Add support for updating flash more securely 2016-07-02 14:52:35 -04:00
bnxt_sriov.c bnxt_en: Fix VF attributes reporting. 2017-04-24 13:54:46 -04:00
bnxt_sriov.h bnxt_en: Update firmware interface spec to 1.7.6.2. 2017-04-05 06:24:26 -07:00
bnxt_ulp.c bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00
bnxt_ulp.h bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00
bnxt_xdp.c bnxt_en: Use short TX BDs for the XDP TX ring. 2017-04-05 06:24:26 -07:00
bnxt_xdp.h bnxt_en: Add ethtool mac loopback self test. 2017-04-05 06:24:26 -07:00
bnxt.c bnxt_en: Fix netpoll handling. 2017-06-23 14:48:27 -04:00
bnxt.h bnxt_en: Add missing logic to handle TPA end error conditions. 2017-06-23 14:48:27 -04:00
Makefile bnxt_en: Add basic XDP support. 2017-02-07 13:31:00 -05:00