net/mlx5: Lag, Add single RDMA device in multiport mode
authorMark Bloch <mbloch@nvidia.com>
Mon, 5 Dec 2022 13:32:52 +0000 (15:32 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 14 Feb 2023 22:08:25 +0000 (14:08 -0800)
commit27f9e0ccb6da0857a323c1d19a23b6666ddefe05
treecdf44a51d94e7bd15f7a8a52ecf291b47dae8857
parent73af3711c7028286136bb7e9422b19f5a016626d
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>
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c
include/linux/mlx5/driver.h