]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: use same check for Rx hang as for Rx timestamps
authorJacob Keller <jacob.e.keller@intel.com>
Sun, 14 Dec 2014 01:55:14 +0000 (01:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 16 Jan 2015 13:20:47 +0000 (05:20 -0800)
commit0de0cb7667d37142fdbc5c2969bc67fb56e3fcef
tree572c50cfb40037a05b330edf92fcaf1e461537bf
parenta25ef06d2b9410d201cf32285b991aae22d422b2
i40e: use same check for Rx hang as for Rx timestamps

It's possible that the user configured only Tx hardware timestamping,
and thus we might be receiving PTP traffic which we timestamp but which
software never reads. In this case we don't want to check for Rx
timestamp hang, because we already know that software won't be handling
them. Thus, we add the same check against pf->ptp_rx as we have in the
Rx timestamp code path.

Change-ID: I66486c8dba307facbff8eace4e52e2f083789d1b
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ptp.c