]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Correctly re-enable interrupts in NAPI polling routine
authorDwip N. Banerjee <dnbanerg@us.ibm.com>
Thu, 19 Nov 2020 01:12:23 +0000 (19:12 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 03:50:34 +0000 (19:50 -0800)
commitac71a345d6121b7e377afb815488ca7240c6f93c
tree5aa4b3fe25513836126ee318afbd68e54787905f
parent96dacf829cdd86dcddb145e9c08d5f189bbc788d
ibmvnic: Correctly re-enable interrupts in NAPI polling routine

If the current NAPI polling loop exits without completing it's
budget, only re-enable interrupts if there are no entries remaining
in the queue and napi_complete_done is successful. If there are entries
remaining on the queue that were missed, restart the polling loop.

Signed-off-by: Dwip N. Banerjee <dnbanerg@us.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c