]> git.dujemihanovic.xyz Git - linux.git/commitdiff
bonding: Remove setting of RX software timestamp
authorGal Pressman <gal@nvidia.com>
Fri, 6 Sep 2024 14:46:19 +0000 (17:46 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Sep 2024 00:44:40 +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-4-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c

index 47ab4ccd6fc10b1a8e7801617d4abde64efaa123..b560644ee1b10dc22b2de7ecb40bd04e946137fa 100644 (file)
@@ -5886,9 +5886,6 @@ static int bond_ethtool_get_ts_info(struct net_device *bond_dev,
        if (real_dev) {
                ret = ethtool_get_ts_info_by_layer(real_dev, info);
        } else {
-               info->phc_index = -1;
-               info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE |
-                                       SOF_TIMESTAMPING_SOFTWARE;
                /* Check if all slaves support software tx timestamping */
                rcu_read_lock();
                bond_for_each_slave_rcu(bond, slave, iter) {