Skip to content

Commit

Permalink
enic: fix rx napi poll return value
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. When we are in busy_poll we return 0 in
napi_poll. We should return budget.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Govindarajulu Varadarajan authored and David S. Miller committed Jan 25, 2015
1 parent 5d7b045 commit f104fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cisco/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ static int enic_poll_msix_rq(struct napi_struct *napi, int budget)
int err;

if (!enic_poll_lock_napi(&enic->rq[rq]))
return work_done;
return budget;
/* Service RQ
*/

Expand Down

0 comments on commit f104fed

Please sign in to comment.