mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
eaddcd7690
commit
8a78335442
|
@ -493,6 +493,7 @@ static void rx_complete (struct urb *urb)
|
||||||
if (netif_running (dev->net) &&
|
if (netif_running (dev->net) &&
|
||||||
!test_bit (EVENT_RX_HALT, &dev->flags)) {
|
!test_bit (EVENT_RX_HALT, &dev->flags)) {
|
||||||
rx_submit (dev, urb, GFP_ATOMIC);
|
rx_submit (dev, urb, GFP_ATOMIC);
|
||||||
|
usb_mark_last_busy(dev->udev);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
usb_free_urb (urb);
|
usb_free_urb (urb);
|
||||||
|
|
Loading…
Reference in New Issue