diff options
| author | Daniel Jurgens <danielj@mellanox.com> | 2018-01-04 10:25:41 -0500 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-08 13:42:23 -0500 |
| commit | cfe4e37fdcacbc33176cfc2430df96355ee14489 (patch) | |
| tree | 6e1e5b4e1ecf149c8f80f629625fb6c152052d14 /include/linux/mlx5 | |
| parent | aac4492ef23a176b6f1a41aadb99177eceb1fc06 (diff) | |
{net, IB}/mlx5: Change set_roce_gid to take a port number
When in dual port mode setting a RoCE GID for any port flows through the
master ports mlx5_core_dev. Provide an interface to set the port when
sending this command.
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
| -rw-r--r-- | include/linux/mlx5/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index d5c787519e06..9136e35f2f7e 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
| @@ -1112,7 +1112,7 @@ void mlx5_free_bfreg(struct mlx5_core_dev *mdev, struct mlx5_sq_bfreg *bfreg); | |||
| 1112 | unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev); | 1112 | unsigned int mlx5_core_reserved_gids_count(struct mlx5_core_dev *dev); |
| 1113 | int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index, | 1113 | int mlx5_core_roce_gid_set(struct mlx5_core_dev *dev, unsigned int index, |
| 1114 | u8 roce_version, u8 roce_l3_type, const u8 *gid, | 1114 | u8 roce_version, u8 roce_l3_type, const u8 *gid, |
| 1115 | const u8 *mac, bool vlan, u16 vlan_id); | 1115 | const u8 *mac, bool vlan, u16 vlan_id, u8 port_num); |
| 1116 | 1116 | ||
| 1117 | static inline int fw_initializing(struct mlx5_core_dev *dev) | 1117 | static inline int fw_initializing(struct mlx5_core_dev *dev) |
| 1118 | { | 1118 | { |
