net/mlx5: Return mdev from eswitch
authorMark Bloch <mbloch@nvidia.com>
Tue, 3 Aug 2021 23:19:46 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:23 +0000 (13:49 -0700)
commit97a8a8c1f985baf13a3d0d252b787850330d2ea7
tree53a137bb8922a2be1f7445794ae5da065cfcd0da
parent616d5769345528b989294a242a5906b157a92837
net/mlx5: Return mdev from eswitch

Export a function so users can retrieve the mellanox device that manages
the eswitch from the eswitch device.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
include/linux/mlx5/eswitch.h