]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/mlx5: Correct TASR typo into TSAR
authorCosmin Ratiu <cratiu@nvidia.com>
Thu, 13 Jun 2024 21:00:31 +0000 (00:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:08 +0000 (19:24 +0200)
[ Upstream commit e575d3a6dd22123888defb622b1742aa2d45b942 ]

TSAR is the correct spelling (Transmit Scheduling ARbiter).

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240613210036.1125203-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 861cd9b9cb62 ("net/mlx5: Verify support for scheduling element and TSAR type")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c
include/linux/mlx5/mlx5_ifc.h

index 627cdb072573fd3252dc361fdcb2d47372c8374f..f4cd6bb1870d2873510300c143cc48422d13c787 100644 (file)
@@ -537,7 +537,7 @@ static bool esw_qos_element_type_supported(struct mlx5_core_dev *dev, int type)
        switch (type) {
        case SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR:
                return MLX5_CAP_QOS(dev, esw_element_type) &
-                      ELEMENT_TYPE_CAP_MASK_TASR;
+                      ELEMENT_TYPE_CAP_MASK_TSAR;
        case SCHEDULING_CONTEXT_ELEMENT_TYPE_VPORT:
                return MLX5_CAP_QOS(dev, esw_element_type) &
                       ELEMENT_TYPE_CAP_MASK_VPORT;
index 0e20d7109028c36ca3e17daab0e789a833799e1f..9106771bb92f01c67ae828c6b71e719a7ed95276 100644 (file)
@@ -3844,7 +3844,7 @@ enum {
 };
 
 enum {
-       ELEMENT_TYPE_CAP_MASK_TASR              = 1 << 0,
+       ELEMENT_TYPE_CAP_MASK_TSAR              = 1 << 0,
        ELEMENT_TYPE_CAP_MASK_VPORT             = 1 << 1,
        ELEMENT_TYPE_CAP_MASK_VPORT_TC          = 1 << 2,
        ELEMENT_TYPE_CAP_MASK_PARA_VPORT_TC     = 1 << 3,