diff options
author | Oliver Neukum <oliver@neukum.org> | 2012-03-03 12:45:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-22 23:04:27 -0400 |
commit | 8a78335442cea429afb2b964318b6e257448ea00 (patch) | |
tree | 45010fe7e377a19373532e7b1ae8615e282f36ed /drivers | |
parent | eaddcd76903c28e84bb452a35835babb0800a2c4 (diff) |
usbnet: consider device busy at each recieved packet
usbnet should centrally handle busy reporting in the rx path
so subdrivers need not worry. This hurts use cases which do
rx only or predominantly.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/usbnet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 62f8b5cfbb56..b7b3f5b0d406 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c | |||
@@ -493,6 +493,7 @@ block: | |||
493 | if (netif_running (dev->net) && | 493 | if (netif_running (dev->net) && |
494 | !test_bit (EVENT_RX_HALT, &dev->flags)) { | 494 | !test_bit (EVENT_RX_HALT, &dev->flags)) { |
495 | rx_submit (dev, urb, GFP_ATOMIC); | 495 | rx_submit (dev, urb, GFP_ATOMIC); |
496 | usb_mark_last_busy(dev->udev); | ||
496 | return; | 497 | return; |
497 | } | 498 | } |
498 | usb_free_urb (urb); | 499 | usb_free_urb (urb); |