blob: 4c85c6cb5e74164c54e7c8232345ee605c49e13d [file] [log] [blame]
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef MLX5_ABI_USER_H
20#define MLX5_ABI_USER_H
21#include <linux/types.h>
Christopher Ferris525ce912017-07-26 13:12:53 -070022#include <linux/if_ether.h>
Christopher Ferris9ce28842018-10-25 12:11:39 -070023#include <rdma/ib_user_ioctl_verbs.h>
Christopher Ferris6a9755d2017-01-13 14:09:31 -080024enum {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080025 MLX5_QP_FLAG_SIGNATURE = 1 << 0,
26 MLX5_QP_FLAG_SCATTER_CQE = 1 << 1,
Christopher Ferris934ec942018-01-31 15:29:16 -080027 MLX5_QP_FLAG_TUNNEL_OFFLOADS = 1 << 2,
Christopher Ferris76a1d452018-06-27 14:12:29 -070028 MLX5_QP_FLAG_BFREG_INDEX = 1 << 3,
29 MLX5_QP_FLAG_TYPE_DCT = 1 << 4,
30 MLX5_QP_FLAG_TYPE_DCI = 1 << 5,
Christopher Ferris86a48372019-01-10 14:14:59 -080031 MLX5_QP_FLAG_TIR_ALLOW_SELF_LB_UC = 1 << 6,
32 MLX5_QP_FLAG_TIR_ALLOW_SELF_LB_MC = 1 << 7,
33 MLX5_QP_FLAG_ALLOW_SCATTER_CQE = 1 << 8,
Christopher Ferrisd842e432019-03-07 10:21:59 -080034 MLX5_QP_FLAG_PACKET_BASED_CREDIT_MODE = 1 << 9,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035};
36enum {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080037 MLX5_SRQ_FLAG_SIGNATURE = 1 << 0,
38};
39enum {
40 MLX5_WQ_FLAG_SIGNATURE = 1 << 0,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080041};
42#define MLX5_IB_UVERBS_ABI_VERSION 1
43struct mlx5_ib_alloc_ucontext_req {
Christopher Ferris525ce912017-07-26 13:12:53 -070044 __u32 total_num_bfregs;
45 __u32 num_low_latency_bfregs;
46};
47enum mlx5_lib_caps {
48 MLX5_LIB_CAP_4K_UAR = (__u64) 1 << 0,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080049};
Christopher Ferris9ce28842018-10-25 12:11:39 -070050enum mlx5_ib_alloc_uctx_v2_flags {
51 MLX5_IB_ALLOC_UCTX_DEVX = 1 << 0,
52};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080053struct mlx5_ib_alloc_ucontext_req_v2 {
Christopher Ferris525ce912017-07-26 13:12:53 -070054 __u32 total_num_bfregs;
55 __u32 num_low_latency_bfregs;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080056 __u32 flags;
57 __u32 comp_mask;
58 __u8 max_cqe_version;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059 __u8 reserved0;
60 __u16 reserved1;
61 __u32 reserved2;
Christopher Ferris76a1d452018-06-27 14:12:29 -070062 __aligned_u64 lib_caps;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080063};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080064enum mlx5_ib_alloc_ucontext_resp_mask {
65 MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0,
Christopher Ferris9ce28842018-10-25 12:11:39 -070066 MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_DUMP_FILL_MKEY = 1UL << 1,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080067};
68enum mlx5_user_cmds_supp_uhw {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080069 MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE = 1 << 0,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080070 MLX5_USER_CMDS_SUPP_UHW_CREATE_AH = 1 << 1,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080071};
Christopher Ferris525ce912017-07-26 13:12:53 -070072enum mlx5_user_inline_mode {
73 MLX5_USER_INLINE_MODE_NA,
74 MLX5_USER_INLINE_MODE_NONE,
75 MLX5_USER_INLINE_MODE_L2,
76 MLX5_USER_INLINE_MODE_IP,
77 MLX5_USER_INLINE_MODE_TCP_UDP,
78};
Christopher Ferris76a1d452018-06-27 14:12:29 -070079enum {
80 MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM = 1 << 0,
81 MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_REQ_METADATA = 1 << 1,
82 MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_SPI_STEERING = 1 << 2,
83 MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_FULL_OFFLOAD = 1 << 3,
84 MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_TX_IV_IS_ESN = 1 << 4,
85};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080086struct mlx5_ib_alloc_ucontext_resp {
Christopher Ferris48af7cb2017-02-21 12:35:09 -080087 __u32 qp_tab_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080088 __u32 bf_reg_size;
Christopher Ferris525ce912017-07-26 13:12:53 -070089 __u32 tot_bfregs;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080090 __u32 cache_line_size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080091 __u16 max_sq_desc_sz;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080092 __u16 max_rq_desc_sz;
93 __u32 max_send_wqebb;
94 __u32 max_recv_wr;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080095 __u32 max_srq_recv_wr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080096 __u16 num_ports;
Christopher Ferris76a1d452018-06-27 14:12:29 -070097 __u16 flow_action_flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080098 __u32 comp_mask;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080099 __u32 response_length;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800100 __u8 cqe_version;
101 __u8 cmds_supp_uhw;
Christopher Ferris525ce912017-07-26 13:12:53 -0700102 __u8 eth_min_inline;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700103 __u8 clock_info_versions;
104 __aligned_u64 hca_core_clock_offset;
Christopher Ferris525ce912017-07-26 13:12:53 -0700105 __u32 log_uar_size;
106 __u32 num_uars_per_page;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700107 __u32 num_dyn_bfregs;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700108 __u32 dump_fill_mkey;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800109};
110struct mlx5_ib_alloc_pd_resp {
111 __u32 pdn;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800112};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800113struct mlx5_ib_tso_caps {
114 __u32 max_tso;
115 __u32 supported_qpts;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800116};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800117struct mlx5_ib_rss_caps {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700118 __aligned_u64 rx_hash_fields_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800119 __u8 rx_hash_function;
120 __u8 reserved[7];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800121};
122enum mlx5_ib_cqe_comp_res_format {
123 MLX5_IB_CQE_RES_FORMAT_HASH = 1 << 0,
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800124 MLX5_IB_CQE_RES_FORMAT_CSUM = 1 << 1,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700125 MLX5_IB_CQE_RES_FORMAT_CSUM_STRIDX = 1 << 2,
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800126};
127struct mlx5_ib_cqe_comp_caps {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800128 __u32 max_num;
129 __u32 supported_format;
130};
Christopher Ferris76a1d452018-06-27 14:12:29 -0700131enum mlx5_ib_packet_pacing_cap_flags {
132 MLX5_IB_PP_SUPPORT_BURST = 1 << 0,
133};
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800134struct mlx5_packet_pacing_caps {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800135 __u32 qp_rate_limit_min;
136 __u32 qp_rate_limit_max;
137 __u32 supported_qpts;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700138 __u8 cap_flags;
139 __u8 reserved[3];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800140};
Christopher Ferris1308ad32017-11-14 17:32:13 -0800141enum mlx5_ib_mpw_caps {
142 MPW_RESERVED = 1 << 0,
143 MLX5_IB_ALLOW_MPW = 1 << 1,
144 MLX5_IB_SUPPORT_EMPW = 1 << 2,
145};
146enum mlx5_ib_sw_parsing_offloads {
147 MLX5_IB_SW_PARSING = 1 << 0,
148 MLX5_IB_SW_PARSING_CSUM = 1 << 1,
149 MLX5_IB_SW_PARSING_LSO = 1 << 2,
150};
151struct mlx5_ib_sw_parsing_caps {
152 __u32 sw_parsing_offloads;
153 __u32 supported_qpts;
154};
Christopher Ferris934ec942018-01-31 15:29:16 -0800155struct mlx5_ib_striding_rq_caps {
156 __u32 min_single_stride_log_num_of_bytes;
157 __u32 max_single_stride_log_num_of_bytes;
158 __u32 min_single_wqe_log_num_of_strides;
159 __u32 max_single_wqe_log_num_of_strides;
160 __u32 supported_qpts;
161 __u32 reserved;
162};
163enum mlx5_ib_query_dev_resp_flags {
164 MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_COMP = 1 << 0,
165 MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_PAD = 1 << 1,
Christopher Ferrisd842e432019-03-07 10:21:59 -0800166 MLX5_IB_QUERY_DEV_RESP_PACKET_BASED_CREDIT_MODE = 1 << 2,
Christopher Ferris934ec942018-01-31 15:29:16 -0800167};
168enum mlx5_ib_tunnel_offloads {
169 MLX5_IB_TUNNELED_OFFLOADS_VXLAN = 1 << 0,
170 MLX5_IB_TUNNELED_OFFLOADS_GRE = 1 << 1,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700171 MLX5_IB_TUNNELED_OFFLOADS_GENEVE = 1 << 2,
172 MLX5_IB_TUNNELED_OFFLOADS_MPLS_GRE = 1 << 3,
173 MLX5_IB_TUNNELED_OFFLOADS_MPLS_UDP = 1 << 4,
Christopher Ferris934ec942018-01-31 15:29:16 -0800174};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800175struct mlx5_ib_query_device_resp {
176 __u32 comp_mask;
177 __u32 response_length;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800178 struct mlx5_ib_tso_caps tso_caps;
179 struct mlx5_ib_rss_caps rss_caps;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800180 struct mlx5_ib_cqe_comp_caps cqe_comp_caps;
181 struct mlx5_packet_pacing_caps packet_pacing_caps;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800182 __u32 mlx5_ib_support_multi_pkt_send_wqes;
Christopher Ferris934ec942018-01-31 15:29:16 -0800183 __u32 flags;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800184 struct mlx5_ib_sw_parsing_caps sw_parsing_caps;
Christopher Ferris934ec942018-01-31 15:29:16 -0800185 struct mlx5_ib_striding_rq_caps striding_rq_caps;
186 __u32 tunnel_offloads_caps;
187 __u32 reserved;
188};
189enum mlx5_ib_create_cq_flags {
190 MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800191};
192struct mlx5_ib_create_cq {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700193 __aligned_u64 buf_addr;
194 __aligned_u64 db_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800195 __u32 cqe_size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800196 __u8 cqe_comp_en;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800197 __u8 cqe_comp_res_format;
Christopher Ferris934ec942018-01-31 15:29:16 -0800198 __u16 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199};
200struct mlx5_ib_create_cq_resp {
201 __u32 cqn;
202 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800203};
204struct mlx5_ib_resize_cq {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700205 __aligned_u64 buf_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800206 __u16 cqe_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800207 __u16 reserved0;
208 __u32 reserved1;
209};
210struct mlx5_ib_create_srq {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700211 __aligned_u64 buf_addr;
212 __aligned_u64 db_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800213 __u32 flags;
214 __u32 reserved0;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800215 __u32 uidx;
216 __u32 reserved1;
217};
218struct mlx5_ib_create_srq_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800219 __u32 srqn;
220 __u32 reserved;
221};
222struct mlx5_ib_create_qp {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700223 __aligned_u64 buf_addr;
224 __aligned_u64 db_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800225 __u32 sq_wqe_count;
226 __u32 rq_wqe_count;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800227 __u32 rq_wqe_shift;
228 __u32 flags;
229 __u32 uidx;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700230 __u32 bfreg_index;
231 union {
232 __aligned_u64 sq_buf_addr;
233 __aligned_u64 access_key;
234 };
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800235};
236enum mlx5_rx_hash_function_flags {
237 MLX5_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800238};
239enum mlx5_rx_hash_fields {
240 MLX5_RX_HASH_SRC_IPV4 = 1 << 0,
241 MLX5_RX_HASH_DST_IPV4 = 1 << 1,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800242 MLX5_RX_HASH_SRC_IPV6 = 1 << 2,
243 MLX5_RX_HASH_DST_IPV6 = 1 << 3,
244 MLX5_RX_HASH_SRC_PORT_TCP = 1 << 4,
245 MLX5_RX_HASH_DST_PORT_TCP = 1 << 5,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800246 MLX5_RX_HASH_SRC_PORT_UDP = 1 << 6,
Christopher Ferris934ec942018-01-31 15:29:16 -0800247 MLX5_RX_HASH_DST_PORT_UDP = 1 << 7,
Christopher Ferris76a1d452018-06-27 14:12:29 -0700248 MLX5_RX_HASH_IPSEC_SPI = 1 << 8,
249 MLX5_RX_HASH_INNER = (1UL << 31),
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800250};
251struct mlx5_ib_create_qp_rss {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700252 __aligned_u64 rx_hash_fields_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800253 __u8 rx_hash_function;
254 __u8 rx_key_len;
255 __u8 reserved[6];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800256 __u8 rx_hash_key[128];
257 __u32 comp_mask;
Christopher Ferris934ec942018-01-31 15:29:16 -0800258 __u32 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800259};
Christopher Ferris86a48372019-01-10 14:14:59 -0800260enum mlx5_ib_create_qp_resp_mask {
261 MLX5_IB_CREATE_QP_RESP_MASK_TIRN = 1UL << 0,
262 MLX5_IB_CREATE_QP_RESP_MASK_TISN = 1UL << 1,
263 MLX5_IB_CREATE_QP_RESP_MASK_RQN = 1UL << 2,
264 MLX5_IB_CREATE_QP_RESP_MASK_SQN = 1UL << 3,
265};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800266struct mlx5_ib_create_qp_resp {
Christopher Ferris525ce912017-07-26 13:12:53 -0700267 __u32 bfreg_index;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700268 __u32 reserved;
Christopher Ferris86a48372019-01-10 14:14:59 -0800269 __u32 comp_mask;
270 __u32 tirn;
271 __u32 tisn;
272 __u32 rqn;
273 __u32 sqn;
274 __u32 reserved1;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800275};
276struct mlx5_ib_alloc_mw {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800277 __u32 comp_mask;
278 __u8 num_klms;
279 __u8 reserved1;
280 __u16 reserved2;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800281};
Christopher Ferris934ec942018-01-31 15:29:16 -0800282enum mlx5_ib_create_wq_mask {
283 MLX5_IB_CREATE_WQ_STRIDING_RQ = (1 << 0),
284};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800285struct mlx5_ib_create_wq {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700286 __aligned_u64 buf_addr;
287 __aligned_u64 db_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800288 __u32 rq_wqe_count;
289 __u32 rq_wqe_shift;
290 __u32 user_index;
291 __u32 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800292 __u32 comp_mask;
Christopher Ferris934ec942018-01-31 15:29:16 -0800293 __u32 single_stride_log_num_of_bytes;
294 __u32 single_wqe_log_num_of_strides;
295 __u32 two_byte_shift_en;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800296};
297struct mlx5_ib_create_ah_resp {
298 __u32 response_length;
299 __u8 dmac[ETH_ALEN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800300 __u8 reserved[6];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800301};
Christopher Ferris76a1d452018-06-27 14:12:29 -0700302struct mlx5_ib_burst_info {
303 __u32 max_burst_sz;
304 __u16 typical_pkt_sz;
305 __u16 reserved;
306};
307struct mlx5_ib_modify_qp {
308 __u32 comp_mask;
309 struct mlx5_ib_burst_info burst_info;
310 __u32 reserved;
311};
312struct mlx5_ib_modify_qp_resp {
313 __u32 response_length;
314 __u32 dctn;
315};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800316struct mlx5_ib_create_wq_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800317 __u32 response_length;
318 __u32 reserved;
319};
320struct mlx5_ib_create_rwq_ind_tbl_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800321 __u32 response_length;
322 __u32 reserved;
323};
324struct mlx5_ib_modify_wq {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800325 __u32 comp_mask;
326 __u32 reserved;
327};
Christopher Ferris76a1d452018-06-27 14:12:29 -0700328struct mlx5_ib_clock_info {
329 __u32 sign;
330 __u32 resv;
331 __aligned_u64 nsec;
332 __aligned_u64 cycles;
333 __aligned_u64 frac;
334 __u32 mult;
335 __u32 shift;
336 __aligned_u64 mask;
337 __aligned_u64 overflow_period;
338};
339enum mlx5_ib_mmap_cmd {
340 MLX5_IB_MMAP_REGULAR_PAGE = 0,
341 MLX5_IB_MMAP_GET_CONTIGUOUS_PAGES = 1,
342 MLX5_IB_MMAP_WC_PAGE = 2,
343 MLX5_IB_MMAP_NC_PAGE = 3,
344 MLX5_IB_MMAP_CORE_CLOCK = 5,
345 MLX5_IB_MMAP_ALLOC_WC = 6,
346 MLX5_IB_MMAP_CLOCK_INFO = 7,
347 MLX5_IB_MMAP_DEVICE_MEM = 8,
348};
349enum {
350 MLX5_IB_CLOCK_INFO_KERNEL_UPDATING = 1,
351};
352enum {
353 MLX5_IB_CLOCK_INFO_V1 = 0,
354};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700355struct mlx5_ib_flow_counters_desc {
356 __u32 description;
357 __u32 index;
358};
359struct mlx5_ib_flow_counters_data {
360 RDMA_UAPI_PTR(struct mlx5_ib_flow_counters_desc *, counters_data);
361 __u32 ncounters;
362 __u32 reserved;
363};
364struct mlx5_ib_create_flow {
365 __u32 ncounters_data;
366 __u32 reserved;
367 struct mlx5_ib_flow_counters_data data[];
368};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800369#endif