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>
This commit is contained in:
françois romieu 2015-05-01 22:14:38 +02:00 committed by David S. Miller
parent 7c9a2eeac9
commit e45af49795

View File

@ -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);
}