net/mlx5: LAG, block multiport eswitch LAG in case ldev have more than 2 ports
authorShay Drory <shayd@nvidia.com>
Tue, 6 Jun 2023 07:12:11 +0000 (00:12 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Jun 2023 21:00:43 +0000 (14:00 -0700)
commit7718c1c8ac325019a3d727e994faab9cf2438263
tree9d62f2cc8df9331d6b112a6c5f3434764ea8a6fb
parentd61bab396115dafc9ad572afa57d464e2e00b396
net/mlx5: LAG, block multiport eswitch LAG in case ldev have more than 2 ports

multiport eswitch LAG is not supported over more than two ports. Add a check in
order to block multiport eswitch LAG over such devices.

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