]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ixgbe: Fix the Tx clean logic to return proper status
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 13 Mar 2009 22:14:10 +0000 (22:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Mar 2009 19:41:11 +0000 (12:41 -0700)
commit9a1a69adad69ce4e85c9cbb40a3f960a7cb015cf
treee9c0ffe3e383cf8ca0e764cbc1fb6c9792d084ff
parent4dd64df8954cc6d485f7c98ab18e0480f0c7d865
ixgbe: Fix the Tx clean logic to return proper status

The Tx accounting when cleaning during NAPI was not completely properly.
We should use the work_limit to determine when to finish cleaning, and
use the same to return the cleaned status.  The impact of running like this
causes the NAPI clean for this Tx to get stuck in a scheduling loop, and
can result in Tx not getting cleaned, ending with a Tx hang and device
reset.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c