e1000/e1000e/igb/ixgb: do not use netif_wake_queue un-necessarily
It was pointed out that the Intel wired ethernet drivers do not need to wake the tx queue since netif_carrier_on/off will take care of the qdisc management in order to guarantee the correct handling of the transmit routine enable state. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
bf98a82633
commit
4cb9be7ab4
@@ -942,6 +942,8 @@ int igb_up(struct igb_adapter *adapter)
|
||||
rd32(E1000_ICR);
|
||||
igb_irq_enable(adapter);
|
||||
|
||||
netif_tx_start_all_queues(adapter->netdev);
|
||||
|
||||
/* Fire a link change interrupt to start the watchdog. */
|
||||
wr32(E1000_ICS, E1000_ICS_LSC);
|
||||
return 0;
|
||||
@@ -2664,7 +2666,6 @@ static void igb_watchdog_task(struct work_struct *work)
|
||||
}
|
||||
|
||||
netif_carrier_on(netdev);
|
||||
netif_tx_wake_all_queues(netdev);
|
||||
|
||||
igb_ping_all_vfs(adapter);
|
||||
|
||||
@@ -2681,7 +2682,6 @@ static void igb_watchdog_task(struct work_struct *work)
|
||||
printk(KERN_INFO "igb: %s NIC Link is Down\n",
|
||||
netdev->name);
|
||||
netif_carrier_off(netdev);
|
||||
netif_tx_stop_all_queues(netdev);
|
||||
|
||||
igb_ping_all_vfs(adapter);
|
||||
|
||||
|
Reference in New Issue
Block a user