i40e: fix PTP bug

The receive hang detection routine was never being run when
PTP was enabled.

Change-ID: I200f35b0f3190d31b595df89d678f4c8a2131ba0
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Jesse Brandeburg 2014-08-12 06:33:13 +00:00 committed by Jeff Kirsher
parent 6e7b5bd32c
commit db6d2bee79
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ void i40e_ptp_rx_hang(struct i40e_vsi *vsi)
u32 prttsyn_stat; u32 prttsyn_stat;
int n; int n;
if (pf->flags & I40E_FLAG_PTP) if (!(pf->flags & I40E_FLAG_PTP))
return; return;
prttsyn_stat = rd32(hw, I40E_PRTTSYN_STAT_1); prttsyn_stat = rd32(hw, I40E_PRTTSYN_STAT_1);