]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: E-switch, mark devcom as not ready when all eswitches are unpaired
authorShay Drory <shayd@nvidia.com>
Thu, 2 Feb 2023 08:27:45 +0000 (10:27 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Jun 2023 19:10:48 +0000 (12:10 -0700)
commit8611df722030171e31535da569d3da488d2cd3b6
tree3d54f78c3303494016769f9d109d3f9071b2bde5
parente67f928a5204cc577ad35dc8c3ebe60ef64bade8
net/mlx5: E-switch, mark devcom as not ready when all eswitches are unpaired

Whenever an eswitch is unpaired with another, the driver mark devcom
as not ready. While this is correct in case we are pairing only two
eswitches, in order to support pairing of more than two eswitches,
driver need to mark devcom as not ready only when all eswitches are
unpaired.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c