]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Explicitly set scheduling element and TSAR type
authorCarolina Jubran <cjubran@nvidia.com>
Mon, 2 Sep 2024 08:46:14 +0000 (11:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:08 +0000 (19:24 +0200)
commitf015f63cc9c477d2f2cd2102ba1f3351be1a316d
treed954d5e3d39746173d53967b8b6e74bc895908a8
parentf7e7dbdfc0932bbf9e61df686ebff60faf3b60f5
net/mlx5: Explicitly set scheduling element and TSAR type

[ Upstream commit c88146abe4d0f8cf659b2b8883fdc33936d2e3b8 ]

Ensure the scheduling element type and TSAR type are explicitly
initialized in the QoS rate group creation.

This prevents potential issues due to default values.

Fixes: 1ae258f8b343 ("net/mlx5: E-switch, Introduce rate limiting groups API")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c