]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pasemi_mac: Fix TX ring wrap checking
authorOlof Johansson <olof@lixom.net>
Wed, 22 Aug 2007 14:13:11 +0000 (09:13 -0500)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:58 +0000 (16:50 -0700)
commit021fa22e01d3d0425d3d15df48f523b69a3a11c4
tree6526993ff713b963d5c95acc9775f49dd135ff41
parent02df6cfa09c2ccebe685bfd54a708e1f50b00a81
pasemi_mac: Fix TX ring wrap checking

The old logic didn't detect full (tx) ring cases properly, causing
overruns and general badness. Clean it up a bit and abstract out the
ring size checks, always making sure to leave 1 slot open.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pasemi_mac.c
drivers/net/pasemi_mac.h