diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2020-10-10 11:57:26 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2020-12-06 07:43:54 +0200 |
commit | e87114022e1de734de0552e6b4f2dc5309efa27a (patch) | |
tree | 2e08bb0c95b7488a4f3c9c0419dfe080298a30a0 /drivers/infiniband/hw/mlx5/ib_rep.c | |
parent | 601c10c89cbb32b9123d8716d193e6d1a8e5300d (diff) | |
download | linux-e87114022e1de734de0552e6b4f2dc5309efa27a.tar.gz linux-e87114022e1de734de0552e6b4f2dc5309efa27a.tar.bz2 linux-e87114022e1de734de0552e6b4f2dc5309efa27a.zip |
net/mlx5: Simplify eswitch mode check
Provide mlx5_core device instead of "priv" pointer while checking
eswith mode.
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/ib_rep.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/ib_rep.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/mlx5/ib_rep.c b/drivers/infiniband/hw/mlx5/ib_rep.c index 3d889a70130b..571b7a0f9188 100644 --- a/drivers/infiniband/hw/mlx5/ib_rep.c +++ b/drivers/infiniband/hw/mlx5/ib_rep.c @@ -102,11 +102,6 @@ static const struct mlx5_eswitch_rep_ops rep_ops = { .get_proto_dev = mlx5_ib_vport_get_proto_dev, }; -u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw) -{ - return mlx5_eswitch_mode(esw); -} - struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, u16 vport_num) { |