]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: PTP Fix hwtstamp mode settings
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 22 May 2012 06:08:37 +0000 (06:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 14 Jun 2012 10:13:22 +0000 (03:13 -0700)
commit95b97a178ed22cdd82e515679acf9df8313496c0
tree3e03a105f9134db1cb2151f4ba6c704b1bf5bd5c
parent2c52298b15715fbd7a3cfa18a6980f22a96152ea
ixgbe: PTP Fix hwtstamp mode settings

When enabling the hwtstamp mode for Rx timestamping the V2 ptp event type
specific modes (Delay Request and Sync) have been rolled into the V2 all event
packet modes, in order to more accurately represent what hardware is doing.
Hardware always timestamps the Path delay packets when a V2 mode is selected,
regardless of what type was selected (in order to always support Path delay
mode). However this means the user selected modes of timestamping only Sync or
Delay Request is not truly supported. This patch correctly sets the mode for
the hwtstamp config and returns to the user that all V2 event packets will be
timestamped.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c