diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2017-11-23 19:19:23 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-01-19 23:41:32 +0300 |
commit | ddae74ac103bd35616c2bde5dc4dd66e2519db7a (patch) | |
tree | d645b3b89c5b70ac9fc616e9f069fd827a86886f /include/linux/mlx5/transobj.h | |
parent | 479f074c5bbe0ba126b252b4449b6ea8b32bd59f (diff) | |
download | linux-ddae74ac103bd35616c2bde5dc4dd66e2519db7a.tar.xz |
net/mlx5: Vectorize the low level core hairpin object
Enhance the hairpin setup code at the core to support a set of N
(RQ,SQ) pairs. This will be later used by the caller to set RSS
spreading among the different RQs.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/transobj.h')
-rw-r--r-- | include/linux/mlx5/transobj.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/mlx5/transobj.h b/include/linux/mlx5/transobj.h index a228310c1968..1bcd8d5562f0 100644 --- a/include/linux/mlx5/transobj.h +++ b/include/linux/mlx5/transobj.h @@ -78,14 +78,17 @@ void mlx5_core_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn); struct mlx5_hairpin_params { u8 log_data_size; u16 q_counter; + int num_channels; }; struct mlx5_hairpin { struct mlx5_core_dev *func_mdev; struct mlx5_core_dev *peer_mdev; - u32 rqn; - u32 sqn; + int num_channels; + + u32 *rqn; + u32 *sqn; }; struct mlx5_hairpin * |