net: Always poll at least one device in net_rx_action
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 Dec 2014 20:16:24 +0000 (07:16 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Dec 2014 04:20:21 +0000 (23:20 -0500)
commit6bd373ebbac4b13ecd39ddc37a0dc5ad4c5e4585
treeacd7a1d4a9f2ad46bd4cd652fe47af57af61c9cf
parent001ce546bb537bb5b7821f05633556a0c9787e32
net: Always poll at least one device in net_rx_action

We should only perform the softnet_break check after we have polled
at least one device in net_rx_action.  Otherwise a zero or negative
setting of netdev_budget can lock up the whole system.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c