Skip to content

Commit

Permalink
enic: fix work done in tx napi_poll
Browse files Browse the repository at this point in the history
With the commit d75b1ad ("net: less interrupt masking in NAPI") napi repoll
is done only when work_done == budget. In tx napi poll we always return 0.
So tx napi is not called again and we do not clean up the tx ring.

Signed-off-by: Govindarajulu Varadarajan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Govindarajulu Varadarajan authored and davem330 committed Nov 13, 2014
1 parent a768851 commit f41281d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/cisco/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1312,9 +1312,10 @@ static int enic_poll_msix_wq(struct napi_struct *napi, int budget)
if (!wq_work_done) {
napi_complete(napi);
vnic_intr_unmask(&enic->intr[intr]);
return 0;
}

return 0;
return budget;
}

static int enic_poll_msix_rq(struct napi_struct *napi, int budget)
Expand Down

0 comments on commit f41281d

Please sign in to comment.