igb: separate hardware setting from the set_ts_config ioctl
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 5 Jun 2014 07:25:10 +0000 (07:25 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 11 Jun 2014 15:45:55 +0000 (08:45 -0700)
commit9f62ecf4255ea0fb3e653fc5fc91ef7b38812bb5
tree20de60c1bbb89bd9e68f194b2089d6f39c6c88e6
parent23d87824de22002b6e073049bb57c97c309e5263
igb: separate hardware setting from the set_ts_config ioctl

This patch separates the hardware logic from the set function, so that
we can re-use it during a ptp_reset. This enables the reset to return
functionality to the last known timestamp mode, rather than resetting
the value. We initialize the mode to off during the ptp_init cycle.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ptp.c