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: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fa43d2a895
commit
7de5f115e1
@ -1705,10 +1705,9 @@ static int nfp_net_poll(struct napi_struct *napi, int budget)
|
||||
nfp_net_xdp_complete(r_vec->xdp_ring);
|
||||
}
|
||||
|
||||
if (pkts_polled < budget) {
|
||||
napi_complete_done(napi, pkts_polled);
|
||||
nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry);
|
||||
}
|
||||
if (pkts_polled < budget)
|
||||
if (napi_complete_done(napi, pkts_polled))
|
||||
nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry);
|
||||
|
||||
return pkts_polled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user