]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: LAG, check if all eswitches are paired for shared FDB
authorShay Drory <shayd@nvidia.com>
Tue, 6 Jun 2023 07:12:07 +0000 (00:12 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Jun 2023 21:00:42 +0000 (14:00 -0700)
commit4c103aea4bedfb109e91bed2023178059947fc4c
tree62a50bb5fe3b9dc1f3ca40056d23135dc10279ef
parent222dd185833e464faad2d175c14bca584b6b6dad
net/mlx5: LAG, check if all eswitches are paired for shared FDB

Shared FDB LAG can only work if all eswitches are paired.
Also, whenever two eswitches are paired, devcom is marked as ready.

Therefore, in case of device with two eswitches, checking devcom was
sufficient. However, this is not correct for device with more than
two eswitches, which will be introduced in downstream patch.
Hence, check all eswitches are paired explicitly.

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/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c