ixgb: maybe stop tx port missed a piece
back when maybe stop tx was added to the ixgb driver some mistakes were made and the driver a) didn't remove the tx lock, which is now un-necessary b) didn't change the restart code to be compliant with maybe_stop Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
1a342d224a
commit
0f8ecbadae
@@ -1855,12 +1855,17 @@ ixgb_clean_tx_irq(struct ixgb_adapter *adapter)
|
|||||||
|
|
||||||
tx_ring->next_to_clean = i;
|
tx_ring->next_to_clean = i;
|
||||||
|
|
||||||
if (unlikely(netif_queue_stopped(netdev))) {
|
if (unlikely(cleaned && netif_carrier_ok(netdev) &&
|
||||||
spin_lock(&adapter->tx_lock);
|
IXGB_DESC_UNUSED(tx_ring) >= DESC_NEEDED)) {
|
||||||
if (netif_queue_stopped(netdev) && netif_carrier_ok(netdev) &&
|
/* Make sure that anybody stopping the queue after this
|
||||||
(IXGB_DESC_UNUSED(tx_ring) >= DESC_NEEDED))
|
* sees the new next_to_clean. */
|
||||||
|
smp_mb();
|
||||||
|
|
||||||
|
if (netif_queue_stopped(netdev) &&
|
||||||
|
!(test_bit(__IXGB_DOWN, &adapter->flags))) {
|
||||||
netif_wake_queue(netdev);
|
netif_wake_queue(netdev);
|
||||||
spin_unlock(&adapter->tx_lock);
|
++adapter->restart_queue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(adapter->detect_tx_hung) {
|
if(adapter->detect_tx_hung) {
|
||||||
|
Reference in New Issue
Block a user