]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00f22b794b6d59c494a81b2798c9f87bb7835f31
tree2546b7f32f65c4ec28ee203097ee2c34b78c5121
parentc6a85b7cf2dcc1dae546391f71c49d518f8362a1
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