Commit e30bd4f8 authored by Ioana Radulescu's avatar Ioana Radulescu Committed by Greg Kroah-Hartman

staging: fsl-dpaa2/eth: Refactor interrupt arming in NAPI poll

Take into consideration the return value of napi_complete_done(),
since there might be an indication that it's not suitable to
enable driver interrupts yet.
Signed-off-by: default avatarBogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8658094a
...@@ -948,8 +948,7 @@ static int dpaa2_eth_poll(struct napi_struct *napi, int budget) ...@@ -948,8 +948,7 @@ static int dpaa2_eth_poll(struct napi_struct *napi, int budget)
break; break;
} }
if (cleaned < budget) { if (cleaned < budget && napi_complete_done(napi, cleaned)) {
napi_complete_done(napi, cleaned);
/* Re-enable data available notifications */ /* Re-enable data available notifications */
do { do {
err = dpaa2_io_service_rearm(NULL, &ch->nctx); err = dpaa2_io_service_rearm(NULL, &ch->nctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment