diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx5/ib_rep.h')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/ib_rep.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/mlx5/ib_rep.h b/drivers/infiniband/hw/mlx5/ib_rep.h index 1d9778da8a50..8336e0517a5c 100644 --- a/drivers/infiniband/hw/mlx5/ib_rep.h +++ b/drivers/infiniband/hw/mlx5/ib_rep.h | |||
| @@ -14,17 +14,17 @@ extern const struct mlx5_ib_profile uplink_rep_profile; | |||
| 14 | 14 | ||
| 15 | u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw); | 15 | u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw); |
| 16 | struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, | 16 | struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, |
| 17 | int vport_index); | 17 | u16 vport_num); |
| 18 | struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw); | 18 | struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw); |
| 19 | struct mlx5_eswitch_rep *mlx5_ib_vport_rep(struct mlx5_eswitch *esw, | 19 | struct mlx5_eswitch_rep *mlx5_ib_vport_rep(struct mlx5_eswitch *esw, |
| 20 | int vport_index); | 20 | u16 vport_num); |
| 21 | void mlx5_ib_register_vport_reps(struct mlx5_core_dev *mdev); | 21 | void mlx5_ib_register_vport_reps(struct mlx5_core_dev *mdev); |
| 22 | void mlx5_ib_unregister_vport_reps(struct mlx5_core_dev *mdev); | 22 | void mlx5_ib_unregister_vport_reps(struct mlx5_core_dev *mdev); |
| 23 | struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, | 23 | struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, |
| 24 | struct mlx5_ib_sq *sq, | 24 | struct mlx5_ib_sq *sq, |
| 25 | u16 port); | 25 | u16 port); |
| 26 | struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, | 26 | struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, |
| 27 | int vport_index); | 27 | u16 vport_num); |
| 28 | #else /* CONFIG_MLX5_ESWITCH */ | 28 | #else /* CONFIG_MLX5_ESWITCH */ |
| 29 | static inline u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw) | 29 | static inline u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw) |
| 30 | { | 30 | { |
| @@ -33,7 +33,7 @@ static inline u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw) | |||
| 33 | 33 | ||
| 34 | static inline | 34 | static inline |
| 35 | struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, | 35 | struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, |
| 36 | int vport_index) | 36 | u16 vport_num) |
| 37 | { | 37 | { |
| 38 | return NULL; | 38 | return NULL; |
| 39 | } | 39 | } |
| @@ -46,7 +46,7 @@ struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw) | |||
| 46 | 46 | ||
| 47 | static inline | 47 | static inline |
| 48 | struct mlx5_eswitch_rep *mlx5_ib_vport_rep(struct mlx5_eswitch *esw, | 48 | struct mlx5_eswitch_rep *mlx5_ib_vport_rep(struct mlx5_eswitch *esw, |
| 49 | int vport_index) | 49 | u16 vport_num) |
| 50 | { | 50 | { |
| 51 | return NULL; | 51 | return NULL; |
| 52 | } | 52 | } |
| @@ -63,7 +63,7 @@ struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, | |||
| 63 | 63 | ||
| 64 | static inline | 64 | static inline |
| 65 | struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, | 65 | struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, |
| 66 | int vport_index) | 66 | u16 vport_num) |
| 67 | { | 67 | { |
| 68 | return NULL; | 68 | return NULL; |
| 69 | } | 69 | } |
