OSDN Git Service

ixgbe: allow ixgbe_ptp_reset to maintain current hwtstamp config
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 May 2014 05:12:26 +0000 (05:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 May 2014 06:53:10 +0000 (23:53 -0700)
commitd63214079fe844892e49786992b79eae00982ae2
tree86e1661b809bb1ccc204ae6908dd50913edb9060
parenta7ef4286364f355b528dd777868c71bc6055955b
ixgbe: allow ixgbe_ptp_reset to maintain current hwtstamp config

Rather than clearing the hwtstamp configuration, we should use the known
configuration requested by the user and call the function which has now
been separated from the ioctl. This means that after a reset, the
timestamp mode will be maintained rather than lost. We still can't
maintain the clock value, however.

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