]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62551b020fdb90ab9854230bc911ecff7de7c197
treebabbcc9ce7bfcb265702fc03ce6a42b0d01f80eb
parent2ce51c40017423300d3b4947f9ff6b61878c3778
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