]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: check I40E_FLAG_PTP before handling Tx or Rx timestamps
authorJacob Keller <jacob.e.keller@intel.com>
Sun, 14 Dec 2014 01:55:09 +0000 (01:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 16 Jan 2015 11:56:54 +0000 (03:56 -0800)
commit9a76d87d85f75e9af87ff6ef8689476f7a072177
treeaa7c317877c270fcfd21f17678818d51ba106af0
parent7e56ef3048b4bbfc9933807aa66cc36afd245852
i40e: check I40E_FLAG_PTP before handling Tx or Rx timestamps

We should not be doing Tx or Rx timestamps if we do not have PTP
enabled. Add checks to ensure that we don't attempt to handle any PTP
related timestamping code if we have not enabled PTP on that PF.

Change-ID: I4335942ae2d5c5f91abfdbeeea02bcace49e7677
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ptp.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c