]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Add shared FDB support
authorMark Bloch <mbloch@nvidia.com>
Tue, 3 Aug 2021 23:19:50 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:24 +0000 (13:49 -0700)
commit785868751953358f29ec760fc05bc826a1f815e3
treed9e6346938428437ec300b3d6e07dca658abbafc
parentc7eb9c8ef66a3e290e001897b81378e6ff507349
RDMA/mlx5: Add shared FDB support

Shared FDB allows to create a single RDMA device that holds representors
from both eswitches. As shared FDB is only active when both uplink
representors are enslaved there is a single RDMA port that represents
both uplinks.

The number of ports is the number of vports on both eswitches minus one
as we only need 1 port for both uplinks.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/infiniband/hw/mlx5/main.c