nfp: ethtool: expose transmit SO_TIMESTAMPING capability
authorYinjun Zhang <yinjun.zhang@corigine.com>
Wed, 29 Nov 2023 08:04:13 +0000 (10:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 2 Dec 2023 04:18:19 +0000 (20:18 -0800)
NFP always supports software time stamping of tx, now expose
the capability through ethtool ops.

Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Link: https://lore.kernel.org/r/20231129080413.83789-1-louis.peens@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

index 776bee2efd35f4e54d7395508e80132cd5905cda..200b3588363ce645fb1b4e4d19f09bbdef4fd9fd 100644 (file)
@@ -2502,6 +2502,7 @@ static const struct ethtool_ops nfp_net_ethtool_ops = {
        .set_pauseparam         = nfp_port_set_pauseparam,
        .get_pauseparam         = nfp_port_get_pauseparam,
        .set_phys_id            = nfp_net_set_phys_id,
+       .get_ts_info            = ethtool_op_get_ts_info,
 };
 
 const struct ethtool_ops nfp_port_ethtool_ops = {