Commit ccc9e5d8 authored by Hirofumi Ogawa's avatar Hirofumi Ogawa Committed by Stephen Hemminger

[PATCH] 8139too tx queue handling fix

Hi,

	netif_stop_queue(dev);
	[....]
	netif_start_queue(dev);
	netif_wake_queue(dev);
and
	netif_stop_queue(dev);
	[....]
	netif_wake_queue(dev);

is not same. After tx_timeout, this was needed for restarting tx work
immediately.

Are you interested in this patch?

 drivers/net/8139too.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
parent 3a7b6443
...@@ -1344,6 +1344,7 @@ static int rtl8139_open (struct net_device *dev) ...@@ -1344,6 +1344,7 @@ static int rtl8139_open (struct net_device *dev)
rtl8139_init_ring (dev); rtl8139_init_ring (dev);
rtl8139_hw_start (dev); rtl8139_hw_start (dev);
netif_start_queue (dev);
if (netif_msg_ifup(tp)) if (netif_msg_ifup(tp))
printk(KERN_DEBUG "%s: rtl8139_open() ioaddr %#lx IRQ %d" printk(KERN_DEBUG "%s: rtl8139_open() ioaddr %#lx IRQ %d"
...@@ -1433,8 +1434,6 @@ static void rtl8139_hw_start (struct net_device *dev) ...@@ -1433,8 +1434,6 @@ static void rtl8139_hw_start (struct net_device *dev)
/* Enable all known interrupts by setting the interrupt mask. */ /* Enable all known interrupts by setting the interrupt mask. */
RTL_W16 (IntrMask, rtl8139_intr_mask); RTL_W16 (IntrMask, rtl8139_intr_mask);
netif_start_queue (dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment