|
|
@@ -1101,11 +1101,6 @@ int mlx5e_ethtool_get_ts_info(struct mlx5e_priv *priv,
|
|
|
struct ethtool_ts_info *info)
|
|
|
{
|
|
|
struct mlx5_core_dev *mdev = priv->mdev;
|
|
|
- int ret;
|
|
|
-
|
|
|
- ret = ethtool_op_get_ts_info(priv->netdev, info);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
|
|
|
info->phc_index = mlx5_clock_get_ptp_index(mdev);
|
|
|
|
|
|
@@ -1113,9 +1108,9 @@ int mlx5e_ethtool_get_ts_info(struct mlx5e_priv *priv,
|
|
|
info->phc_index == -1)
|
|
|
return 0;
|
|
|
|
|
|
- info->so_timestamping |= SOF_TIMESTAMPING_TX_HARDWARE |
|
|
|
- SOF_TIMESTAMPING_RX_HARDWARE |
|
|
|
- SOF_TIMESTAMPING_RAW_HARDWARE;
|
|
|
+ info->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE |
|
|
|
+ SOF_TIMESTAMPING_RX_HARDWARE |
|
|
|
+ SOF_TIMESTAMPING_RAW_HARDWARE;
|
|
|
|
|
|
info->tx_types = BIT(HWTSTAMP_TX_OFF) |
|
|
|
BIT(HWTSTAMP_TX_ON);
|