]> 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>
Thu, 17 Oct 2024 13:10:36 +0000 (15:10 +0200)
commit636de1029485c0269dde80fe25c30c6bc72ce0e8
tree227e2d91f6040d1340a71c1a0e75964b12a86abc
parent3f8d4d9bffe7c420c37f768584b3261ffd8076bd
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