Skip to content

Commit

Permalink
via-rhine: dma_wmb transmit barrier.
Browse files Browse the repository at this point in the history
Follow the now usual transmit descriptor update path:
1. content change
2. dma_wmb
3. ownership change

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
françois romieu authored and David S. Miller committed May 4, 2015
1 parent 810f19b commit e1efa87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/via/via-rhine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ static netdev_tx_t rhine_start_tx(struct sk_buff *skb,

netdev_sent_queue(dev, skb->len);
/* lock eth irq */
wmb();
dma_wmb();
rp->tx_ring[entry].tx_status |= cpu_to_le32(DescOwn);
wmb();

Expand Down

0 comments on commit e1efa87

Please sign in to comment.