aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2017-11-23 18:19:23 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2018-01-19 22:41:32 +0200
commitddae74ac103bd35616c2bde5dc4dd66e2519db7a (patch)
treed645b3b89c5b70ac9fc616e9f069fd827a86886f /include
parentnet/mlx5e: Enlarge the NIC TC offload steering prio to support two levels (diff)
downloadlinux-dev-ddae74ac103bd35616c2bde5dc4dd66e2519db7a.tar.xz
linux-dev-ddae74ac103bd35616c2bde5dc4dd66e2519db7a.zip
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')
-rw-r--r--include/linux/mlx5/transobj.h7
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 *