Re: [PATCH net-next V1 4/4] net/mlx5e: Add PTP Hardware Clock (PHC) support
From: Richard Cochran <richardcochran@gmail.com>
Date: 2015-12-17 20:20:56
From: Richard Cochran <richardcochran@gmail.com>
Date: 2015-12-17 20:20:56
On Thu, Dec 17, 2015 at 02:35:35PM +0200, Saeed Mahameed wrote:
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c index 8e86f2c..b2e5014 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c@@ -880,6 +880,9 @@ static int mlx5e_get_ts_info(struct net_device *dev, (1 << HWTSTAMP_FILTER_ALL); } + if (priv->tstamp.ptp) + info->phc_index = ptp_clock_index(priv->tstamp.ptp);
else info->phc_index = -1; Thanks, Richard