OSDN Git Service

net/mlx5: Lag, filter non compatible devices
authorMark Bloch <mbloch@nvidia.com>
Sun, 27 Feb 2022 12:40:39 +0000 (12:40 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 May 2022 05:54:01 +0000 (22:54 -0700)
commitbc4c2f2e017949646b43fdcad005a03462d437c6
tree2546b7f32f65c4ec28ee203097ee2c34b78c5121
parentec2fa47d7b984ce7b736f3e74072757c146278cd
net/mlx5: Lag, filter non compatible devices

When search for a peer lag device we can filter based on that
device's capabilities.

Downstream patch will be less strict when filtering compatible devices
and remove the limitation where we require exact MLX5_MAX_PORTS and
change it to a range.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h