|
@@ -6031,7 +6031,7 @@ static int igb_tx_map(struct igb_ring *tx_ring,
|
|
|
* We also need this memory barrier to make certain all of the
|
|
|
* status bits have been updated before next_to_watch is written.
|
|
|
*/
|
|
|
- wmb();
|
|
|
+ dma_wmb();
|
|
|
|
|
|
/* set next_to_watch value indicating a packet is present */
|
|
|
first->next_to_watch = tx_desc;
|
|
@@ -8531,7 +8531,7 @@ void igb_alloc_rx_buffers(struct igb_ring *rx_ring, u16 cleaned_count)
|
|
|
* applicable for weak-ordered memory model archs,
|
|
|
* such as IA-64).
|
|
|
*/
|
|
|
- wmb();
|
|
|
+ dma_wmb();
|
|
|
writel(i, rx_ring->tail);
|
|
|
}
|
|
|
}
|