]> git.dujemihanovic.xyz Git - linux.git/commit
net/mlx5: Lag, don't use the hardcoded value of the first port
authorMark Bloch <mbloch@nvidia.com>
Tue, 30 Jul 2024 06:16:33 +0000 (09:16 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Aug 2024 01:04:51 +0000 (18:04 -0700)
commit3fda84dc090390573cfbd0b1d70372663315de21
tree6d3cdd45abb91ba6c1bb90e7f125ed0d3dcdf1fc
parent94a3ad6c081381fa9ee523781789802b4ed00faf
net/mlx5: Lag, don't use the hardcoded value of the first port

The cited commit didn't change the body of the loop as it should.
It shouldn't be using MLX5_LAG_P1.

Fixes: 7e978e7714d6 ("net/mlx5: Lag, use actual number of lag ports")
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Link: https://patch.msgid.link/20240730061638.1831002-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c