@@ -708,6 +708,7 @@ static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q)
int count = 0;
spin_lock_irqsave (&q->lock, flags);
+ usbnet_pause_rx(dev);
while (!skb_queue_empty(q)) {
struct skb_data *entry;
struct urb *urb;
@@ -742,6 +743,7 @@ found:
usb_put_urb(urb);
spin_lock_irqsave(&q->lock, flags);
}
+ usbnet_resume_rx(dev);
spin_unlock_irqrestore (&q->lock, flags);
return count;
}
@@ -1509,6 +1511,7 @@ static void usbnet_bh (unsigned long param)
netif_device_present (dev->net) &&
netif_carrier_ok(dev->net) &&
!timer_pending (&dev->delay) &&
+ !test_bit (EVENT_RX_PAUSED, &dev->flags) &&
!test_bit (EVENT_RX_HALT, &dev->flags)) {
int temp = dev->rxq.qlen;