fm10k: use generic ethtool_op_get_ts_info callback
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 25 Aug 2016 21:06:54 +0000 (14:06 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 3 Oct 2016 05:38:07 +0000 (22:38 -0700)
This generic callback is for drivers which have software Tx timestamp
support enabled. Without this, PTP applications requesting software
timestamps may complain that the requested mode is not supported.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c

index adb7cb4311ba1fe8dfab6f050ce54a27f75b03eb..5241e0873397692d6365a907ffe95f16e8739b11 100644 (file)
@@ -1182,6 +1182,7 @@ static const struct ethtool_ops fm10k_ethtool_ops = {
        .set_rxfh               = fm10k_set_rssh,
        .get_channels           = fm10k_get_channels,
        .set_channels           = fm10k_set_channels,
+       .get_ts_info            = ethtool_op_get_ts_info,
 };
 
 void fm10k_set_ethtool_ops(struct net_device *dev)