]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sky2: status ring race fix
authorStephen Hemminger <shemminger@linux-foundation.org>
Tue, 6 Nov 2007 22:12:34 +0000 (14:12 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:25:36 +0000 (09:25 -0800)
commita2b897687d39aea80a8604748a1a48f32e616715
tree7bedac0d4bd601eae1e2f48c0be32bb1383a79ac
parent738a0133acba11e15d97cd7230c4aa6e289ba2f2
sky2: status ring race fix

patch ab5adecb2d02f3688719dfb5936a82833fcc3955 in mainline.

The D-Link PCI-X board (and maybe others) can lie about status
ring entries. It seems it will update the register for last status
index before completing the DMA for the ring entry. To avoid reading
stale data, zap the old entry and check.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/sky2.c