]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/mlx5e: Rename hwstamp functions to hwtstamp
authorCarolina Jubran <cjubran@nvidia.com>
Thu, 30 Oct 2025 10:25:07 +0000 (12:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Oct 2025 23:36:43 +0000 (16:36 -0700)
Rename mlx5e_hwstamp_set/get() functions to mlx5e_hwtstamp_set/get()
to better reflect that these functions handle hardware timestamping,
not just hardware stamping.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1761819910-1011051-4-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c

index 5485cf0149267ef6ce46b4e523de863c3df93605..ebd7493888d73c1f6f8d52de118e3cc2683ddad7 100644 (file)
@@ -1026,8 +1026,8 @@ void mlx5e_self_test(struct net_device *ndev, struct ethtool_test *etest,
                     u64 *buf);
 void mlx5e_set_rx_mode_work(struct work_struct *work);
 
-int mlx5e_hwstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr);
-int mlx5e_hwstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr);
+int mlx5e_hwtstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr);
+int mlx5e_hwtstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr);
 int mlx5e_modify_rx_cqe_compression_locked(struct mlx5e_priv *priv, bool val, bool rx_filter);
 
 int mlx5e_vlan_rx_add_vid(struct net_device *dev, __always_unused __be16 proto,
index 20f55542433d3d2343f92c18e7f4b37729ea83c3..2ecbd735584e0391d74ff29d424d311ba7e43616 100644 (file)
@@ -4740,7 +4740,7 @@ static int mlx5e_hwstamp_config_ptp_rx(struct mlx5e_priv *priv, bool ptp_rx)
                                        &new_params.ptp_rx, true);
 }
 
-int mlx5e_hwstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr)
+int mlx5e_hwtstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr)
 {
        struct hwtstamp_config config;
        bool rx_cqe_compress_def;
@@ -4818,7 +4818,7 @@ err_unlock:
        return err;
 }
 
-int mlx5e_hwstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr)
+int mlx5e_hwtstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr)
 {
        struct hwtstamp_config *cfg = &priv->tstamp;
 
@@ -4834,9 +4834,9 @@ static int mlx5e_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 
        switch (cmd) {
        case SIOCSHWTSTAMP:
-               return mlx5e_hwstamp_set(priv, ifr);
+               return mlx5e_hwtstamp_set(priv, ifr);
        case SIOCGHWTSTAMP:
-               return mlx5e_hwstamp_get(priv, ifr);
+               return mlx5e_hwtstamp_get(priv, ifr);
        default:
                return -EOPNOTSUPP;
        }
index 79ae3a51a4b3e2755278193638fdef3f7736018c..11d950f58ae337a89318c2156b082e653078ff78 100644 (file)
@@ -563,9 +563,9 @@ int mlx5i_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 
        switch (cmd) {
        case SIOCSHWTSTAMP:
-               return mlx5e_hwstamp_set(priv, ifr);
+               return mlx5e_hwtstamp_set(priv, ifr);
        case SIOCGHWTSTAMP:
-               return mlx5e_hwstamp_get(priv, ifr);
+               return mlx5e_hwtstamp_get(priv, ifr);
        default:
                return -EOPNOTSUPP;
        }