]> 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)
commitb6628bb9cb77728dbf1cda03cd245f75af544a3c
treebabbcc9ce7bfcb265702fc03ce6a42b0d01f80eb
parentb539f488f5c0594a6a2c55e3e968111914a1c5f0
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