Skip to content

Commit

Permalink
netpoll: Visit all napi handlers in poll_napi
Browse files Browse the repository at this point in the history
In poll_napi loop through all of the napi handlers even when the
budget falls to 0 to ensure that we process all of the tx_queues, and
so that we continue to call into drivers when our initial budget is 0.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Mar 17, 2014
1 parent 9852fbe commit eb8143b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ static void poll_napi(struct net_device *dev, int budget)
spin_trylock(&napi->poll_lock)) {
budget = poll_one_napi(napi, budget);
spin_unlock(&napi->poll_lock);

if (!budget)
break;
}
}
}
Expand Down

0 comments on commit eb8143b

Please sign in to comment.