OSDN Git Service

bnxt_en: Process the NQ under NAPI continuous polling.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 8 Mar 2020 22:45:49 +0000 (18:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2020 04:54:46 +0000 (21:54 -0700)
commit389a877a3b20c1bc058143dfc4d95fd754fb0240
tree7b3fc8a6cf2f48debfe9301053d437141bdd0e78
parent340ac85eabce302aeb3ae7e1817a8bbd4ffd09b2
bnxt_en: Process the NQ under NAPI continuous polling.

When we are in continuous NAPI polling mode, the current code in
bnxt_poll_p5() will only process the completion rings and will not
process the NQ until interrupt is re-enabled.  Tis logic works and
will not cause RX or TX starvation, but async events in the NQ may
be delayed for the duration of continuous NAPI polling.  These
async events may be firmware or VF events.

Continue to handle the NQ after we are done polling the completion
rings.  This actually simplies the code in bnxt_poll_p5().

Acknowledge the NQ so these async events will not overflow.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c