summaryrefslogtreecommitdiffstats
path: root/drivers/media/firewire
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-06-23 20:01:01 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-23 20:48:27 +0200
commit2270bc5da34979454e6f2eb133d800b635156174 (patch)
treee41c847ec1c2f797403d296ae53adbf44dd9d0ca /drivers/media/firewire
parentbnxt_en: Add missing logic to handle TPA end error conditions. (diff)
downloadlinux-2270bc5da34979454e6f2eb133d800b635156174.tar.xz
linux-2270bc5da34979454e6f2eb133d800b635156174.zip
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>
Diffstat (limited to 'drivers/media/firewire')
0 files changed, 0 insertions, 0 deletions