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)
commitec20f36bb41aec786407b525ac1c2ba982c925fd
tree5aa4b3fe25513836126ee318afbd68e54787905f
parent9a87c3fca2372af3177cb454c7aa381c7080307f
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