i40e: fix race in hang check
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 24 Feb 2015 05:26:03 +0000 (05:26 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Feb 2015 12:53:59 +0000 (04:53 -0800)
commita68de58d2791dd9f2b159703b70377011b35a568
treebabbcc9ce7bfcb265702fc03ce6a42b0d01f80eb
parent71da61976ec18fb57b3ba9a1dd846b747cc7c884
i40e: fix race in hang check

The driver was having some issues with false Tx hang detection. This
makes the driver a little more direct with the checks for progress
forward by directly checking the head write back address and tail register
when determining progress.  This avoids Tx hangs where the software
gets behind, because we are directly checking hardware state when
determining hang state.

Change-ID: I774f0e861c9e8ab5ccb213634100fe15440ae24a
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
This page took 0.033996 seconds and 5 git commands to generate.