usbnet: consider device busy at each recieved packet
authorOliver Neukum <oliver@neukum.org>
Sat, 3 Mar 2012 17:45:07 +0000 (18:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2012 03:04:27 +0000 (23:04 -0400)
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>
drivers/net/usb/usbnet.c

index 62f8b5cfbb56c3057f49309d2ad4fbd3d611a309..b7b3f5b0d40654c3c50b18ae56c969c03382c71c 100644 (file)
@@ -493,6 +493,7 @@ block:
                if (netif_running (dev->net) &&
                    !test_bit (EVENT_RX_HALT, &dev->flags)) {
                        rx_submit (dev, urb, GFP_ATOMIC);
+                       usb_mark_last_busy(dev->udev);
                        return;
                }
                usb_free_urb (urb);