commit | 021fa22e01d3d0425d3d15df48f523b69a3a11c4 | [log] [tgz] |
---|---|---|
author | Olof Johansson <olof@lixom.net> | Wed Aug 22 09:13:11 2007 -0500 |
committer | David S. Miller <davem@sunset.davemloft.net> | Wed Oct 10 16:50:58 2007 -0700 |
tree | 6526993ff713b963d5c95acc9775f49dd135ff41 | |
parent | 02df6cfa09c2ccebe685bfd54a708e1f50b00a81 [diff] |
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>