Commit 7de5f115 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

nfp: avoid rearming the interrupts when in busy poll

Make use of return code from napi_complete_done() to avoid rearming
interrupts when busy polling is on.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fa43d2a8
...@@ -1705,10 +1705,9 @@ static int nfp_net_poll(struct napi_struct *napi, int budget) ...@@ -1705,10 +1705,9 @@ static int nfp_net_poll(struct napi_struct *napi, int budget)
nfp_net_xdp_complete(r_vec->xdp_ring); nfp_net_xdp_complete(r_vec->xdp_ring);
} }
if (pkts_polled < budget) { if (pkts_polled < budget)
napi_complete_done(napi, pkts_polled); if (napi_complete_done(napi, pkts_polled))
nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry);
}
return pkts_polled; return pkts_polled;
} }
......
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