]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: netcp: Remove setting of RX software timestamp
authorGal Pressman <gal@nvidia.com>
Wed, 4 Sep 2024 07:49:15 +0000 (10:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2024 08:34:17 +0000 (09:34 +0100)
The responsibility for reporting of RX software timestamp has moved to
the core layer (see __ethtool_get_ts_info()), remove usage from the
device drivers.

Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c

index d286709ca3b93af2821703800c3051f9e7ba1181..63e686f0b119748bdfbe68ad4e0563baf8745ce1 100644 (file)
@@ -2012,8 +2012,6 @@ static int keystone_get_ts_info(struct net_device *ndev,
                SOF_TIMESTAMPING_TX_HARDWARE |
                SOF_TIMESTAMPING_TX_SOFTWARE |
                SOF_TIMESTAMPING_RX_HARDWARE |
-               SOF_TIMESTAMPING_RX_SOFTWARE |
-               SOF_TIMESTAMPING_SOFTWARE |
                SOF_TIMESTAMPING_RAW_HARDWARE;
        info->phc_index = gbe_intf->gbe_dev->cpts->phc_index;
        info->tx_types =
@@ -2030,10 +2028,7 @@ static int keystone_get_ts_info(struct net_device *ndev,
                                struct kernel_ethtool_ts_info *info)
 {
        info->so_timestamping =
-               SOF_TIMESTAMPING_TX_SOFTWARE |
-               SOF_TIMESTAMPING_RX_SOFTWARE |
-               SOF_TIMESTAMPING_SOFTWARE;
-       info->phc_index = -1;
+               SOF_TIMESTAMPING_TX_SOFTWARE;
        info->tx_types = 0;
        info->rx_filters = 0;
        return 0;