Commit 71d5090c authored by Janice M. Girouard's avatar Janice M. Girouard Committed by Jeff Garzik

[netdrvr acenic] fix RX descriptor memory ordering

parent e2effd3d
...@@ -2007,6 +2007,11 @@ static void ace_rx_int(struct net_device *dev, u32 rxretprd, u32 rxretcsm) ...@@ -2007,6 +2007,11 @@ static void ace_rx_int(struct net_device *dev, u32 rxretprd, u32 rxretcsm)
int bd_flags, desc_type, mapsize; int bd_flags, desc_type, mapsize;
u16 csum; u16 csum;
/* make sure the rx descriptor isn't read before rxretprd */
if (idx == rxretcsm)
rmb();
retdesc = &ap->rx_return_ring[idx]; retdesc = &ap->rx_return_ring[idx];
skbidx = retdesc->idx; skbidx = retdesc->idx;
bd_flags = retdesc->flags; bd_flags = retdesc->flags;
......
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