mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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: Bogdan Purcareata <bogdan.purcareata@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8658094a22
commit
e30bd4f834
1 changed files with 1 additions and 2 deletions
|
@ -948,8 +948,7 @@ static int dpaa2_eth_poll(struct napi_struct *napi, int budget)
|
|||
break;
|
||||
}
|
||||
|
||||
if (cleaned < budget) {
|
||||
napi_complete_done(napi, cleaned);
|
||||
if (cleaned < budget && napi_complete_done(napi, cleaned)) {
|
||||
/* Re-enable data available notifications */
|
||||
do {
|
||||
err = dpaa2_io_service_rearm(NULL, &ch->nctx);
|
||||
|
|
Loading…
Reference in a new issue