Skip to content

Commit

Permalink
usbnet: consider device busy at each recieved packet
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Oliver Neukum authored and davem330 committed Mar 23, 2012
1 parent eaddcd7 commit 8a78335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ static void rx_complete (struct urb *urb)
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);
Expand Down

0 comments on commit 8a78335

Please sign in to comment.