Commit e45af497 authored by françois romieu's avatar françois romieu Committed by David S. Miller

via-rhine: commit receive buffer address before descriptor status update.

Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c9a2eea
...@@ -2075,6 +2075,7 @@ static int rhine_rx(struct net_device *dev, int limit) ...@@ -2075,6 +2075,7 @@ static int rhine_rx(struct net_device *dev, int limit)
break; break;
} }
rp->rx_ring[entry].addr = cpu_to_le32(rp->rx_skbuff_dma[entry]); 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); rp->rx_ring[entry].rx_status = cpu_to_le32(DescOwn);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment