net/funeth: Remove setting of RX software timestamp
authorGal Pressman <gal@nvidia.com>
Fri, 6 Sep 2024 14:46:25 +0000 (17:46 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Sep 2024 00:44:41 +0000 (17:44 -0700)
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>
Link: https://patch.msgid.link/20240906144632.404651-10-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/fungible/funeth/funeth_ethtool.c

index 7f081e6e8c877cb64c8b6eff04be23856acd603f..ba83dbf4ed222b5b1b57877eca46652f153e8d32 100644 (file)
@@ -1042,12 +1042,9 @@ static int fun_set_rxfh(struct net_device *netdev,
 static int fun_get_ts_info(struct net_device *netdev,
                           struct kernel_ethtool_ts_info *info)
 {
-       info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE |
-                               SOF_TIMESTAMPING_RX_HARDWARE |
+       info->so_timestamping = SOF_TIMESTAMPING_RX_HARDWARE |
                                SOF_TIMESTAMPING_TX_SOFTWARE |
-                               SOF_TIMESTAMPING_SOFTWARE |
                                SOF_TIMESTAMPING_RAW_HARDWARE;
-       info->phc_index = -1;
        info->tx_types = BIT(HWTSTAMP_TX_OFF);
        info->rx_filters = BIT(HWTSTAMP_FILTER_NONE) | BIT(HWTSTAMP_FILTER_ALL);
        return 0;