]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite58dbae51c92211089348bcf37e54c93d8862ee4
tree7b3fc8a6cf2f48debfe9301053d437141bdd0e78
parent96ff37c3cf9c1d480756ec9af35718546bb5bd57
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