netpoll: Visit all napi handlers in poll_napi
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 15 Mar 2014 03:45:51 +0000 (20:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 19:47:22 +0000 (15:47 -0400)
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>
net/core/netpoll.c

index 147c75855c9b993287e7b4b602eea3826516988a..d9e3d74ec9ac335cad79b923d87b8d2ea5edbcf6 100644 (file)
@@ -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;
                }
        }
 }