]> 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)
commit9d9f45755137278c0fd90c8638adfb0d63f54c7d
tree5aa4b3fe25513836126ee318afbd68e54787905f
parent5eaf5864c110a215b18ce0ce62ab8e82ec5471ed
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