]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: use netif_tx_wake_queue instead of netif_start_queue
authorAlexey Orishko <alexey.orishko@gmail.com>
Wed, 14 Mar 2012 04:00:24 +0000 (04:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2012 05:50:19 +0000 (22:50 -0700)
commit076829716ef73b0e6f8ac2213a4931ea4549a7d9
tree8ccaee8f80b2db29d52554333af82711bf1a5f0b
parentd5cc20d6c647b14395ff1b8e5c7dbf78e91ea1e7
usbnet: use netif_tx_wake_queue instead of netif_start_queue

If host is going to autosuspend function with two interfaces and
if IP packet has arrived in-between of two usbnet_suspend() callbacks,
i.e usbnet_resume() is called in-between, tx data flow is stopped.
When autosuspend timer expires and device is put to autosuspend
again, tx queue is waked up and data can be sent again.
This behavior might be repeated several times in a row.

Tested on Intel/ARM.

Reviewed-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Tested-by: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
Signed-off-by: Alexey Orishko <alexey.orishko@stericsson.com>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c