mlxsw: reg: Rename MLXSW_REG_PPCNT_TC_CONG_TC to _CNT
authorPetr Machata <petrm@nvidia.com>
Wed, 13 Oct 2021 10:37:45 +0000 (13:37 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Oct 2021 00:47:18 +0000 (17:47 -0700)
The name does not make sense as it is. Clearly there is a typo and the
suffix should have been _CNT, like the other enumerators. Fix accordingly.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

index 62b2df8..2f8c0c6 100644 (file)
@@ -4951,7 +4951,7 @@ enum mlxsw_reg_ppcnt_grp {
        MLXSW_REG_PPCNT_DISCARD_CNT = 0x6,
        MLXSW_REG_PPCNT_PRIO_CNT = 0x10,
        MLXSW_REG_PPCNT_TC_CNT = 0x11,
-       MLXSW_REG_PPCNT_TC_CONG_TC = 0x13,
+       MLXSW_REG_PPCNT_TC_CONG_CNT = 0x13,
 };
 
 /* reg_ppcnt_grp
index 3c9844f..67529e9 100644 (file)
@@ -824,7 +824,7 @@ mlxsw_sp_port_get_hw_xstats(struct net_device *dev,
 
        for (i = 0; i < TC_MAX_QUEUE; i++) {
                err = mlxsw_sp_port_get_stats_raw(dev,
-                                                 MLXSW_REG_PPCNT_TC_CONG_TC,
+                                                 MLXSW_REG_PPCNT_TC_CONG_CNT,
                                                  i, ppcnt_pl);
                if (!err)
                        xstats->wred_drop[i] =