diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 940d9244df62..a2cba53c31be 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | |||
@@ -1620,6 +1620,7 @@ static void ixgbevf_up_complete(struct ixgbevf_adapter *adapter) | |||
1620 | 1620 | ||
1621 | spin_unlock_bh(&adapter->mbx_lock); | 1621 | spin_unlock_bh(&adapter->mbx_lock); |
1622 | 1622 | ||
1623 | smp_mb__before_clear_bit(); | ||
1623 | clear_bit(__IXGBEVF_DOWN, &adapter->state); | 1624 | clear_bit(__IXGBEVF_DOWN, &adapter->state); |
1624 | ixgbevf_napi_enable_all(adapter); | 1625 | ixgbevf_napi_enable_all(adapter); |
1625 | 1626 | ||
@@ -1744,7 +1745,8 @@ void ixgbevf_down(struct ixgbevf_adapter *adapter) | |||
1744 | int i; | 1745 | int i; |
1745 | 1746 | ||
1746 | /* signal that we are down to the interrupt handler */ | 1747 | /* signal that we are down to the interrupt handler */ |
1747 | set_bit(__IXGBEVF_DOWN, &adapter->state); | 1748 | if (test_and_set_bit(__IXGBEVF_DOWN, &adapter->state)) |
1749 | return; /* do nothing if already down */ | ||
1748 | 1750 | ||
1749 | /* disable all enabled rx queues */ | 1751 | /* disable all enabled rx queues */ |
1750 | for (i = 0; i < adapter->num_rx_queues; i++) | 1752 | for (i = 0; i < adapter->num_rx_queues; i++) |