diff options
author | Mark Bloch <mbloch@nvidia.com> | 2022-12-05 15:32:52 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-02-14 14:08:25 -0800 |
commit | 27f9e0ccb6da0857a323c1d19a23b6666ddefe05 (patch) | |
tree | cdf44a51d94e7bd15f7a8a52ecf291b47dae8857 /include/linux/mlx5 | |
parent | 73af3711c7028286136bb7e9422b19f5a016626d (diff) | |
download | linux-stable-27f9e0ccb6da0857a323c1d19a23b6666ddefe05.tar.gz linux-stable-27f9e0ccb6da0857a323c1d19a23b6666ddefe05.tar.bz2 linux-stable-27f9e0ccb6da0857a323c1d19a23b6666ddefe05.zip |
net/mlx5: Lag, Add single RDMA device in multiport mode
In MultiPort E-Switch mode a single RDMA is created. This device has multiple
RDMA ports that represent the uplink ports that are connected to the E-Switch.
Account for this when creating the RDMA device so it has an additional port for
the non native uplink.
As a side effect of this patch, use shared fdb in multiport eswitch mode.
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index a4bb5842a948..c9259350cdfc 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -1162,6 +1162,7 @@ bool mlx5_lag_is_active(struct mlx5_core_dev *dev); bool mlx5_lag_mode_is_hash(struct mlx5_core_dev *dev); bool mlx5_lag_is_master(struct mlx5_core_dev *dev); bool mlx5_lag_is_shared_fdb(struct mlx5_core_dev *dev); +bool mlx5_lag_is_mpesw(struct mlx5_core_dev *dev); struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev); u8 mlx5_lag_get_slave_port(struct mlx5_core_dev *dev, struct net_device *slave); |