]> git.dujemihanovic.xyz Git - linux.git/commitdiff
bnxt_en: Remove setting of RX software timestamp
authorGal Pressman <gal@nvidia.com>
Fri, 6 Sep 2024 14:46:17 +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>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20240906144632.404651-2-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index 7392a716f28db27f5a2bb40607d14f53e2cd2474..094e0b5c8521ca8770b01074d0b2ae6b3a59133d 100644 (file)
@@ -5043,11 +5043,8 @@ static int bnxt_get_ts_info(struct net_device *dev,
        struct bnxt_ptp_cfg *ptp;
 
        ptp = bp->ptp_cfg;
-       info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
-                               SOF_TIMESTAMPING_RX_SOFTWARE |
-                               SOF_TIMESTAMPING_SOFTWARE;
+       info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
 
-       info->phc_index = -1;
        if (!ptp)
                return 0;