diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx5/ib_rep.c')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/ib_rep.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/mlx5/ib_rep.c b/drivers/infiniband/hw/mlx5/ib_rep.c index cbcc40d776b9..269b24a3baa1 100644 --- a/drivers/infiniband/hw/mlx5/ib_rep.c +++ b/drivers/infiniband/hw/mlx5/ib_rep.c | |||
| @@ -109,15 +109,15 @@ u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw) | |||
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, | 111 | struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, |
| 112 | int vport_index) | 112 | u16 vport_num) |
| 113 | { | 113 | { |
| 114 | return mlx5_eswitch_get_proto_dev(esw, vport_index, REP_IB); | 114 | return mlx5_eswitch_get_proto_dev(esw, vport_num, REP_IB); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, | 117 | struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, |
| 118 | int vport_index) | 118 | u16 vport_num) |
| 119 | { | 119 | { |
| 120 | return mlx5_eswitch_get_proto_dev(esw, vport_index, REP_ETH); | 120 | return mlx5_eswitch_get_proto_dev(esw, vport_num, REP_ETH); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw) | 123 | struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw) |
| @@ -125,9 +125,10 @@ struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw) | |||
| 125 | return mlx5_eswitch_uplink_get_proto_dev(esw, REP_IB); | 125 | return mlx5_eswitch_uplink_get_proto_dev(esw, REP_IB); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | struct mlx5_eswitch_rep *mlx5_ib_vport_rep(struct mlx5_eswitch *esw, int vport) | 128 | struct mlx5_eswitch_rep *mlx5_ib_vport_rep(struct mlx5_eswitch *esw, |
| 129 | u16 vport_num) | ||
| 129 | { | 130 | { |
| 130 | return mlx5_eswitch_vport_rep(esw, vport); | 131 | return mlx5_eswitch_vport_rep(esw, vport_num); |
| 131 | } | 132 | } |
| 132 | 133 | ||
| 133 | struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, | 134 | struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, |
