Merge mlx5-next into rdma for-next
[linux.git] / drivers / infiniband / hw / mlx5 / ib_rep.c
index f30e0d881368cda4177e8337bc25e2a708ab06e7..74ce9249e75a1c8eeac26302f7810913486f7bd3 100644 (file)
@@ -29,7 +29,7 @@ mlx5_ib_set_vport_rep(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep)
 static int
 mlx5_ib_vport_rep_load(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep)
 {
-       int num_ports = MLX5_TOTAL_VPORTS(dev);
+       int num_ports = mlx5_eswitch_get_total_vports(dev);
        const struct mlx5_ib_profile *profile;
        struct mlx5_ib_dev *ibdev;
        int vport_index;
This page took 0.033184 seconds and 4 git commands to generate.