summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2014-08-12 06:33:13 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-08-15 04:00:39 -0700
commitdb6d2bee7953842ea7b38167c31d8ab246e7d4a2 (patch)
treed1a51c8b5402dc6c3904212daa2b2c75404a55ea /drivers/net/ethernet
parent6e7b5bd32c7cd303eec4880149636ffbc2098df8 (diff)
downloadblackbird-op-linux-db6d2bee7953842ea7b38167c31d8ab246e7d4a2.tar.gz
blackbird-op-linux-db6d2bee7953842ea7b38167c31d8ab246e7d4a2.zip
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ptp.c b/drivers/net/ethernet/intel/i40e/i40e_ptp.c
index bb7fe98b3a6c..537b6216971d 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ptp.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ptp.c
@@ -247,7 +247,7 @@ void i40e_ptp_rx_hang(struct i40e_vsi *vsi)
u32 prttsyn_stat;
int n;
- if (pf->flags & I40E_FLAG_PTP)
+ if (!(pf->flags & I40E_FLAG_PTP))
return;
prttsyn_stat = rd32(hw, I40E_PRTTSYN_STAT_1);
OpenPOWER on IntegriCloud