net/mlx5: LAG, Check correct bucket when modifying LAG
authorShay Drory <shayd@nvidia.com>
Sun, 30 Jul 2023 06:26:27 +0000 (09:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:27:29 +0000 (18:27 +0200)
commit4276f3e7ae4a1cfbe01cc807deca680bb9853026
treee55cd16453761088bc876a24395f499a7b77c3fc
parenta824d012ad8f736459398e9c1d5bc0f034c72e5e
net/mlx5: LAG, Check correct bucket when modifying LAG

commit 86ed7b773c01ba71617538b3b107c33fd9cf90b8 upstream.

Cited patch introduced buckets in hash mode, but missed to update
the ports/bucket check when modifying LAG.
Fix the check.

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: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c