RDMA/mlx5: Fill port info based on the relevant eswitch
authorMark Bloch <mbloch@nvidia.com>
Tue, 3 Aug 2021 23:19:48 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:24 +0000 (13:49 -0700)
commit6aeb16a1345e480bd395b9168570e93c902a05f3
tree9b9bdb9d96552e3e30506750ebbe58ca1699ec3b
parentaf8c0e25f249abf8829f0cfa074b08d7398e3e38
RDMA/mlx5: Fill port info based on the relevant eswitch

In shared FDB a single RDMA device can have representors that are
connected to two different eswitches. Use the right eswitch when
preparing the response to userspace.

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/std_types.c