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)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 18:48:40 +0000 (11:48 -0700)
commit86ed7b773c01ba71617538b3b107c33fd9cf90b8
treec00ebb10b960d263dde96d78cb895bc2290bf47f
parent6b5926eb1c034affff3fb44a98cb8c67153847d8
net/mlx5: LAG, Check correct bucket when modifying LAG

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>
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c