via-rhine: dma_wmb transmit barrier.
authorfrançois romieu <romieu@fr.zoreil.com>
Fri, 1 May 2015 20:14:44 +0000 (22:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 04:18:27 +0000 (00:18 -0400)
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>
drivers/net/ethernet/via/via-rhine.c

index 8195fcdff8abead045c0c78590bb432078a993ac..86ca8b2f0895ca776623e1752f349eeb5d9dcfd3 100644 (file)
@@ -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();