diff options
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index ea8b9c41cf9f..f81d87cfcc8d 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -5168,10 +5168,10 @@ void igb_update_stats(struct igb_adapter *adapter, | |||
5168 | } | 5168 | } |
5169 | 5169 | ||
5170 | do { | 5170 | do { |
5171 | start = u64_stats_fetch_begin_bh(&ring->rx_syncp); | 5171 | start = u64_stats_fetch_begin_irq(&ring->rx_syncp); |
5172 | _bytes = ring->rx_stats.bytes; | 5172 | _bytes = ring->rx_stats.bytes; |
5173 | _packets = ring->rx_stats.packets; | 5173 | _packets = ring->rx_stats.packets; |
5174 | } while (u64_stats_fetch_retry_bh(&ring->rx_syncp, start)); | 5174 | } while (u64_stats_fetch_retry_irq(&ring->rx_syncp, start)); |
5175 | bytes += _bytes; | 5175 | bytes += _bytes; |
5176 | packets += _packets; | 5176 | packets += _packets; |
5177 | } | 5177 | } |
@@ -5184,10 +5184,10 @@ void igb_update_stats(struct igb_adapter *adapter, | |||
5184 | for (i = 0; i < adapter->num_tx_queues; i++) { | 5184 | for (i = 0; i < adapter->num_tx_queues; i++) { |
5185 | struct igb_ring *ring = adapter->tx_ring[i]; | 5185 | struct igb_ring *ring = adapter->tx_ring[i]; |
5186 | do { | 5186 | do { |
5187 | start = u64_stats_fetch_begin_bh(&ring->tx_syncp); | 5187 | start = u64_stats_fetch_begin_irq(&ring->tx_syncp); |
5188 | _bytes = ring->tx_stats.bytes; | 5188 | _bytes = ring->tx_stats.bytes; |
5189 | _packets = ring->tx_stats.packets; | 5189 | _packets = ring->tx_stats.packets; |
5190 | } while (u64_stats_fetch_retry_bh(&ring->tx_syncp, start)); | 5190 | } while (u64_stats_fetch_retry_irq(&ring->tx_syncp, start)); |
5191 | bytes += _bytes; | 5191 | bytes += _bytes; |
5192 | packets += _packets; | 5192 | packets += _packets; |
5193 | } | 5193 | } |