Commit a5e32e74 authored by Lino Sanfilippo's avatar Lino Sanfilippo Committed by Greg Kroah-Hartman

staging: slicoss: start tx queue when interface is brought up

There is no reason to delay tx queue activation until a link is detected.
So start the queue when the interface is brought up and stop it when the
interface is brought down.
Signed-off-by: default avatarLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d5f2ea7
...@@ -1028,7 +1028,6 @@ static void slic_link_upr_complete(struct adapter *adapter, u32 isr) ...@@ -1028,7 +1028,6 @@ static void slic_link_upr_complete(struct adapter *adapter, u32 isr)
/* setup the mac */ /* setup the mac */
slic_config_set(adapter, true); slic_config_set(adapter, true);
adapter->linkstate = LINK_UP; adapter->linkstate = LINK_UP;
netif_start_queue(adapter->netdev);
netif_carrier_on(adapter->netdev); netif_carrier_on(adapter->netdev);
} }
} }
...@@ -2419,7 +2418,6 @@ static int slic_entry_open(struct net_device *dev) ...@@ -2419,7 +2418,6 @@ static int slic_entry_open(struct net_device *dev)
unsigned long flags; unsigned long flags;
int status; int status;
netif_stop_queue(adapter->netdev);
netif_carrier_off(dev); netif_carrier_off(dev);
spin_lock_irqsave(&slic_global.driver_lock, flags); spin_lock_irqsave(&slic_global.driver_lock, flags);
...@@ -2443,6 +2441,9 @@ static int slic_entry_open(struct net_device *dev) ...@@ -2443,6 +2441,9 @@ static int slic_entry_open(struct net_device *dev)
spin_unlock: spin_unlock:
spin_unlock_irqrestore(&slic_global.driver_lock, flags); spin_unlock_irqrestore(&slic_global.driver_lock, flags);
netif_start_queue(adapter->netdev);
return status; return status;
} }
......
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