amd-xgbe: Prevent Tx cleanup stall
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Thu, 4 Dec 2014 17:52:35 +0000 (11:52 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 19:47:46 +0000 (14:47 -0500)
commit244d62be91ddcea55ec6d456dbb7f71d411d21f0
tree07a31b016f956183d989d21b646069426e4ed7dc
parent5d330cddb907df0911652c447baf9ee1a137245d
amd-xgbe: Prevent Tx cleanup stall

When performing Tx cleanup, the dirty index counter is compared to the
current index counter as one of the tests used to determine when to stop
cleanup. The "less than" test will fail when the current index counter
rolls over to zero causing cleanup to never occur again. Update the test
to a "not equal" to avoid this situation.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c