diff options
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 3 | ||||
-rw-r--r-- | include/linux/netdevice.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index fda824735e18..e96cef89f121 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -2752,6 +2752,8 @@ void igb_configure_tx_ring(struct igb_adapter *adapter, | |||
2752 | 2752 | ||
2753 | txdctl |= E1000_TXDCTL_QUEUE_ENABLE; | 2753 | txdctl |= E1000_TXDCTL_QUEUE_ENABLE; |
2754 | wr32(E1000_TXDCTL(reg_idx), txdctl); | 2754 | wr32(E1000_TXDCTL(reg_idx), txdctl); |
2755 | |||
2756 | netdev_tx_reset_queue(txring_txq(ring)); | ||
2755 | } | 2757 | } |
2756 | 2758 | ||
2757 | /** | 2759 | /** |
@@ -3244,7 +3246,6 @@ static void igb_clean_tx_ring(struct igb_ring *tx_ring) | |||
3244 | buffer_info = &tx_ring->tx_buffer_info[i]; | 3246 | buffer_info = &tx_ring->tx_buffer_info[i]; |
3245 | igb_unmap_and_free_tx_resource(tx_ring, buffer_info); | 3247 | igb_unmap_and_free_tx_resource(tx_ring, buffer_info); |
3246 | } | 3248 | } |
3247 | netdev_tx_reset_queue(txring_txq(tx_ring)); | ||
3248 | 3249 | ||
3249 | size = sizeof(struct igb_tx_buffer) * tx_ring->count; | 3250 | size = sizeof(struct igb_tx_buffer) * tx_ring->count; |
3250 | memset(tx_ring->tx_buffer_info, 0, size); | 3251 | memset(tx_ring->tx_buffer_info, 0, size); |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b195a34440bb..4bf314fe2145 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1939,6 +1939,7 @@ static inline void netdev_completed_queue(struct net_device *dev, | |||
1939 | static inline void netdev_tx_reset_queue(struct netdev_queue *q) | 1939 | static inline void netdev_tx_reset_queue(struct netdev_queue *q) |
1940 | { | 1940 | { |
1941 | #ifdef CONFIG_BQL | 1941 | #ifdef CONFIG_BQL |
1942 | clear_bit(__QUEUE_STATE_STACK_XOFF, &q->state); | ||
1942 | dql_reset(&q->dql); | 1943 | dql_reset(&q->dql); |
1943 | #endif | 1944 | #endif |
1944 | } | 1945 | } |