igb: Correct PTP support query from ethtool.
authorMatthew Vick <matthew.vick@intel.com>
Tue, 28 Aug 2012 06:33:05 +0000 (06:33 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 17 Sep 2012 09:04:18 +0000 (02:04 -0700)
commita9188028fd8a446413be48e7f6490f2d18a8d07e
treeb10b5cf7d490ed71c34ed13ceca48cd77168f932
parenta79f4f88261d7fd492121daf85beafff663f1f01
igb: Correct PTP support query from ethtool.

Update ethtool_get_ts_info to not report any supported functionality on
82575 and add support for V2 Sync and V2 Delay packets. In the case
where CONFIG_IGB_PTP is not defined, we should be reporting default
values.

v2: Correct the function to return EOPNOTSUPP when there is no PTP support
    or the device does not support PTP. Also fix minor whitespace issue.

Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c