]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Lag, restore buckets number to default after hash LAG deactivation
authorShay Drory <shayd@nvidia.com>
Thu, 11 Apr 2024 11:54:39 +0000 (14:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:07:08 +0000 (17:07 +0200)
commit8635ac7dd9cf033df69d52ecc4d2cf10aea7c98b
treec91128da5cb1d2745eab9a5cf34a9222a2f908cd
parentba0db4638525b8b054b3d546b45f7e473f477027
net/mlx5: Lag, restore buckets number to default after hash LAG deactivation

[ Upstream commit 37cc10da3a50e6d0cb9808a90b7da9b4868794dd ]

The cited patch introduces the concept of buckets in LAG in hash mode.
However, the patch doesn't clear the number of buckets in the LAG
deactivation. This results in using the wrong number of buckets in
case user create a hash mode LAG and afterwards create a non-hash
mode LAG.

Hence, restore buckets number to default after hash mode LAG
deactivation.

Fixes: 352899f384d4 ("net/mlx5: Lag, use buckets in hash mode")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240411115444.374475-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c