RDMA/mlx5: Use representor E-Switch when getting netdev and metadata
authorMark Bloch <mbloch@nvidia.com>
Thu, 11 Mar 2021 07:09:12 +0000 (23:09 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Mar 2021 21:07:23 +0000 (13:07 -0800)
commit658cfceb6267974056cb50adde8a93a15967c665
tree13f2a8a4bf2a1d02a7e8fcc704926e6f58195932
parent59c904c8fffd903c1dae5fc6a402b88fa6dfc874
RDMA/mlx5: Use representor E-Switch when getting netdev and metadata

Now that a pointer to the managing E-Switch is stored in the representor
use it.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Acked-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/infiniband/hw/mlx5/fs.c
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/infiniband/hw/mlx5/main.c