ixgbe: extract the hardware setup from the ixgbe_ptp_set_ts_config
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 May 2014 05:12:25 +0000 (05:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 May 2014 06:53:10 +0000 (23:53 -0700)
commita7ef4286364f355b528dd777868c71bc6055955b
treeb56ff1fa2e2101bcb96b5188dd0fce0ad732b7da
parent04c8de8e921a024984e1fdf2e373dbcc7ff27a0c
ixgbe: extract the hardware setup from the ixgbe_ptp_set_ts_config

Currently all of the hardware setup logic for the PTP hardware bits is
buried inside of the ioctl which sets the timestamp configuration. This
makes it hard to use this logic in other places (primarily reset), and
this means we can't restore current timestamp mode upon a MAC reset.
Extracting this logic into a separate function will enable future work
for the ixgbe_ptp_reset function.

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