aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-03-14 23:45:51 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-17 15:47:22 -0400
commiteb8143b469e5e11e05487648d27e176e907fec1f (patch)
tree303bb43834d5a46f8e886e5d5702fe46276c6638
parent9852fbec2c95b6e168c55e97e6051b99aead6f31 (diff)
netpoll: Visit all napi handlers in poll_napi
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>
-rw-r--r--net/core/netpoll.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 147c75855c9b..d9e3d74ec9ac 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -174,9 +174,6 @@ static void poll_napi(struct net_device *dev, int budget)
174 spin_trylock(&napi->poll_lock)) { 174 spin_trylock(&napi->poll_lock)) {
175 budget = poll_one_napi(napi, budget); 175 budget = poll_one_napi(napi, budget);
176 spin_unlock(&napi->poll_lock); 176 spin_unlock(&napi->poll_lock);
177
178 if (!budget)
179 break;
180 } 177 }
181 } 178 }
182} 179}