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

multipath LAG is not supported over more than two ports. Add a check in
order to block multipath LAG over such configurations.

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/mp.c