Thread (13 messages) 13 messages, 4 authors, 2015-12-20

Re: [PATCH net-next V1 4/4] net/mlx5e: Add PTP Hardware Clock (PHC) support

From: Saeed Mahameed <hidden>
Date: 2015-12-20 13:02:55

On Thu, Dec 17, 2015 at 10:20 PM, Richard Cochran
[off-list ref] wrote:
On Thu, Dec 17, 2015 at 02:35:35PM +0200, Saeed Mahameed wrote:
quoted
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;
Will fix this.
Thnks
Thanks,
Richard
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help