aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
diff options
context:
space:
mode:
authorTony Nguyen <anthony.l.nguyen@intel.com>2016-06-01 12:50:43 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-06-29 15:57:19 -0400
commit918b89e77fa554e185a5cc09d10655397aacdfa2 (patch)
tree7bb3d6cc39af5fbc117394ed3ac4555a768025d1 /drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
parent0a38c17a21a0965b4853211afa1d3e85428e6170 (diff)
ixgbe: Correct reporting of timestamping for x550
Update ixgbe_ethtool_get_ts_info() to show that x550 supports hardware timestamping of all packets. Reported-by: Guy Harris <guy@alum.mit.edu> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
index 59b771b9b354..8a8450788124 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
@@ -2991,10 +2991,15 @@ static int ixgbe_get_ts_info(struct net_device *dev,
2991{ 2991{
2992 struct ixgbe_adapter *adapter = netdev_priv(dev); 2992 struct ixgbe_adapter *adapter = netdev_priv(dev);
2993 2993
2994 /* we always support timestamping disabled */
2995 info->rx_filters = BIT(HWTSTAMP_FILTER_NONE);
2996
2994 switch (adapter->hw.mac.type) { 2997 switch (adapter->hw.mac.type) {
2995 case ixgbe_mac_X550: 2998 case ixgbe_mac_X550:
2996 case ixgbe_mac_X550EM_x: 2999 case ixgbe_mac_X550EM_x:
2997 case ixgbe_mac_x550em_a: 3000 case ixgbe_mac_x550em_a:
3001 info->rx_filters |= BIT(HWTSTAMP_FILTER_ALL);
3002 /* fallthrough */
2998 case ixgbe_mac_X540: 3003 case ixgbe_mac_X540:
2999 case ixgbe_mac_82599EB: 3004 case ixgbe_mac_82599EB:
3000 info->so_timestamping = 3005 info->so_timestamping =
@@ -3014,8 +3019,7 @@ static int ixgbe_get_ts_info(struct net_device *dev,
3014 BIT(HWTSTAMP_TX_OFF) | 3019 BIT(HWTSTAMP_TX_OFF) |
3015 BIT(HWTSTAMP_TX_ON); 3020 BIT(HWTSTAMP_TX_ON);
3016 3021
3017 info->rx_filters = 3022 info->rx_filters |=
3018 BIT(HWTSTAMP_FILTER_NONE) |
3019 BIT(HWTSTAMP_FILTER_PTP_V1_L4_SYNC) | 3023 BIT(HWTSTAMP_FILTER_PTP_V1_L4_SYNC) |
3020 BIT(HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) | 3024 BIT(HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) |
3021 BIT(HWTSTAMP_FILTER_PTP_V2_EVENT); 3025 BIT(HWTSTAMP_FILTER_PTP_V2_EVENT);