From: Olof Johansson Date: Wed, 22 Aug 2007 14:13:11 +0000 (-0500) Subject: pasemi_mac: Fix TX ring wrap checking X-Git-Tag: v2.6.24-rc1~1454^2~511 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=021fa22e01d3d0425d3d15df48f523b69a3a11c4;p=pandora-kernel.git 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed