aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/transobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mlx5/transobj.h')
-rw-r--r--include/linux/mlx5/transobj.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/mlx5/transobj.h b/include/linux/mlx5/transobj.h
index 88441f5ece25..7e8f281f8c00 100644
--- a/include/linux/mlx5/transobj.h
+++ b/include/linux/mlx5/transobj.h
@@ -75,4 +75,27 @@ int mlx5_core_modify_rqt(struct mlx5_core_dev *dev, u32 rqtn, u32 *in,
75 int inlen); 75 int inlen);
76void mlx5_core_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn); 76void mlx5_core_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn);
77 77
78struct mlx5_hairpin_params {
79 u8 log_data_size;
80 u8 log_num_packets;
81 u16 q_counter;
82 int num_channels;
83};
84
85struct mlx5_hairpin {
86 struct mlx5_core_dev *func_mdev;
87 struct mlx5_core_dev *peer_mdev;
88
89 int num_channels;
90
91 u32 *rqn;
92 u32 *sqn;
93};
94
95struct mlx5_hairpin *
96mlx5_core_hairpin_create(struct mlx5_core_dev *func_mdev,
97 struct mlx5_core_dev *peer_mdev,
98 struct mlx5_hairpin_params *params);
99
100void mlx5_core_hairpin_destroy(struct mlx5_hairpin *pair);
78#endif /* __TRANSOBJ_H__ */ 101#endif /* __TRANSOBJ_H__ */