]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Enable 4 ports multiport E-switch
authorShay Drory <shayd@nvidia.com>
Wed, 21 Jun 2023 17:25:00 +0000 (20:25 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Sep 2023 06:33:09 +0000 (23:33 -0700)
commite738e355045237ee8802cb2b31a8ed6f4b7ac534
treed6a646f705f0e53b3820af750fc375df2c1b10fb
parente0cc92fd945a9c8e43d4268cf1ea985d0e99a90f
net/mlx5: Enable 4 ports multiport E-switch

enable_mpesw() assumed only 2 ports are available, fix this by removing
that assumption and looping through the existing lag ports to enable multi-port
E-switch for cards with more than 2 ports.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c