summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorfrançois romieu <romieu@fr.zoreil.com>2015-05-01 22:14:38 +0200
committerDavid S. Miller <davem@davemloft.net>2015-05-04 00:18:26 -0400
commite45af497950a89459a0c4b13ffd91e1729fffef4 (patch)
tree66447f116c6d2aea038d472573a2147bba7829c3 /drivers/net/ethernet
parent7c9a2eeac9b9caafb806e624fd2b75d30ecaee64 (diff)
downloadblackbird-op-linux-e45af497950a89459a0c4b13ffd91e1729fffef4.tar.gz
blackbird-op-linux-e45af497950a89459a0c4b13ffd91e1729fffef4.zip
via-rhine: commit receive buffer address before descriptor status update.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/via/via-rhine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c
index de2850497c09..88b45c7a35e0 100644
--- a/drivers/net/ethernet/via/via-rhine.c
+++ b/drivers/net/ethernet/via/via-rhine.c
@@ -2075,6 +2075,7 @@ static int rhine_rx(struct net_device *dev, int limit)
break;
}
rp->rx_ring[entry].addr = cpu_to_le32(rp->rx_skbuff_dma[entry]);
+ dma_wmb();
}
rp->rx_ring[entry].rx_status = cpu_to_le32(DescOwn);
}
OpenPOWER on IntegriCloud