e1000e: Avoid wrong check on TX hang
commit5f8d170995eb8612b95fa73c63352a9b9be1ed5a
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 18 Nov 2011 14:25:00 +0000 (18 14:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:27:18 +0000 (2 09:27 -0700)
treefb11dbf1ae365379d2d48c4c000b9863cb0c3cdd
parentbb641fc3d75bc907757e2c361bb663b8a65034d9
e1000e: Avoid wrong check on TX hang

commit 09357b00255c233705b1cf6d76a8d147340545b8 upstream.

Based on the original patch submitted my Michael Wang
<wangyun@linux.vnet.ibm.com>.
Descriptors may not be write-back while checking TX hang with flag
FLAG2_DMA_BURST on.
So when we detect hang, we just flush the descriptor and detect
again for once.

-v2 change 1 to true and 0 to false and remove extra ()

CC: Michael Wang <wangyun@linux.vnet.ibm.com>
CC: Flavio Leitner <fbl@redhat.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/e1000e/e1000.h
drivers/net/e1000e/netdev.c