blob: 1ec36d20ce4e366ec2b349313891ac692017cb5a [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>
22enum {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 MLX5_QP_FLAG_SIGNATURE = 1 << 0,
25 MLX5_QP_FLAG_SCATTER_CQE = 1 << 1,
26};
27enum {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 MLX5_SRQ_FLAG_SIGNATURE = 1 << 0,
30};
31enum {
32 MLX5_WQ_FLAG_SIGNATURE = 1 << 0,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35#define MLX5_IB_UVERBS_ABI_VERSION 1
36struct mlx5_ib_alloc_ucontext_req {
37 __u32 total_num_uuars;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 __u32 num_low_latency_uuars;
40};
41struct mlx5_ib_alloc_ucontext_req_v2 {
42 __u32 total_num_uuars;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 num_low_latency_uuars;
45 __u32 flags;
46 __u32 comp_mask;
47 __u8 max_cqe_version;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u8 reserved0;
50 __u16 reserved1;
51 __u32 reserved2;
52};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54enum mlx5_ib_alloc_ucontext_resp_mask {
55 MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0,
56};
57enum mlx5_user_cmds_supp_uhw {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE = 1 << 0,
Christopher Ferris48af7cb2017-02-21 12:35:09 -080060 MLX5_USER_CMDS_SUPP_UHW_CREATE_AH = 1 << 1,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080061};
62struct mlx5_ib_alloc_ucontext_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080064 __u32 qp_tab_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080065 __u32 bf_reg_size;
66 __u32 tot_uuars;
67 __u32 cache_line_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080069 __u16 max_sq_desc_sz;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080070 __u16 max_rq_desc_sz;
71 __u32 max_send_wqebb;
72 __u32 max_recv_wr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080074 __u32 max_srq_recv_wr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080075 __u16 num_ports;
76 __u16 reserved1;
77 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080079 __u32 response_length;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080080 __u8 cqe_version;
81 __u8 cmds_supp_uhw;
82 __u16 reserved2;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080084 __u64 hca_core_clock_offset;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080085};
86struct mlx5_ib_alloc_pd_resp {
87 __u32 pdn;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080089};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080090struct mlx5_ib_tso_caps {
91 __u32 max_tso;
92 __u32 supported_qpts;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080094};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080095struct mlx5_ib_rss_caps {
96 __u64 rx_hash_fields_mask;
97 __u8 rx_hash_function;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080099 __u8 reserved[7];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800100};
101enum mlx5_ib_cqe_comp_res_format {
102 MLX5_IB_CQE_RES_FORMAT_HASH = 1 << 0,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 MLX5_IB_CQE_RES_FORMAT_CSUM = 1 << 1,
105 MLX5_IB_CQE_RES_RESERVED = 1 << 2,
106};
107struct mlx5_ib_cqe_comp_caps {
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 __u32 max_num;
110 __u32 supported_format;
111};
112struct mlx5_packet_pacing_caps {
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 __u32 qp_rate_limit_min;
115 __u32 qp_rate_limit_max;
116 __u32 supported_qpts;
117 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119};
120struct mlx5_ib_query_device_resp {
121 __u32 comp_mask;
122 __u32 response_length;
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 struct mlx5_ib_tso_caps tso_caps;
125 struct mlx5_ib_rss_caps rss_caps;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800126 struct mlx5_ib_cqe_comp_caps cqe_comp_caps;
127 struct mlx5_packet_pacing_caps packet_pacing_caps;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 __u32 mlx5_ib_support_multi_pkt_send_wqes;
130 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800131};
132struct mlx5_ib_create_cq {
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 __u64 buf_addr;
135 __u64 db_addr;
136 __u32 cqe_size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800137 __u8 cqe_comp_en;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800139 __u8 cqe_comp_res_format;
140 __u16 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800141};
142struct mlx5_ib_create_cq_resp {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800144 __u32 cqn;
145 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800146};
147struct mlx5_ib_resize_cq {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800149 __u64 buf_addr;
150 __u16 cqe_size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800151 __u16 reserved0;
152 __u32 reserved1;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800154};
155struct mlx5_ib_create_srq {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800156 __u64 buf_addr;
157 __u64 db_addr;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800159 __u32 flags;
160 __u32 reserved0;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800161 __u32 uidx;
162 __u32 reserved1;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800164};
165struct mlx5_ib_create_srq_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800166 __u32 srqn;
167 __u32 reserved;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800169};
170struct mlx5_ib_create_qp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800171 __u64 buf_addr;
172 __u64 db_addr;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800174 __u32 sq_wqe_count;
175 __u32 rq_wqe_count;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800176 __u32 rq_wqe_shift;
177 __u32 flags;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800179 __u32 uidx;
180 __u32 reserved0;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800181 __u64 sq_buf_addr;
182};
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800184enum mlx5_rx_hash_function_flags {
185 MLX5_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800186};
187enum mlx5_rx_hash_fields {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800189 MLX5_RX_HASH_SRC_IPV4 = 1 << 0,
190 MLX5_RX_HASH_DST_IPV4 = 1 << 1,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800191 MLX5_RX_HASH_SRC_IPV6 = 1 << 2,
192 MLX5_RX_HASH_DST_IPV6 = 1 << 3,
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800194 MLX5_RX_HASH_SRC_PORT_TCP = 1 << 4,
195 MLX5_RX_HASH_DST_PORT_TCP = 1 << 5,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800196 MLX5_RX_HASH_SRC_PORT_UDP = 1 << 6,
197 MLX5_RX_HASH_DST_PORT_UDP = 1 << 7
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199};
200struct mlx5_ib_create_qp_rss {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800201 __u64 rx_hash_fields_mask;
202 __u8 rx_hash_function;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800204 __u8 rx_key_len;
205 __u8 reserved[6];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800206 __u8 rx_hash_key[128];
207 __u32 comp_mask;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800209 __u32 reserved1;
210};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800211struct mlx5_ib_create_qp_resp {
212 __u32 uuar_index;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800214};
215struct mlx5_ib_alloc_mw {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800216 __u32 comp_mask;
217 __u8 num_klms;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800219 __u8 reserved1;
220 __u16 reserved2;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800221};
222struct mlx5_ib_create_wq {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800224 __u64 buf_addr;
225 __u64 db_addr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800226 __u32 rq_wqe_count;
227 __u32 rq_wqe_shift;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800229 __u32 user_index;
230 __u32 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800231 __u32 comp_mask;
232 __u32 reserved;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234};
235struct mlx5_ib_create_ah_resp {
236 __u32 response_length;
237 __u8 dmac[ETH_ALEN];
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239 __u8 reserved[6];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800240};
241struct mlx5_ib_create_wq_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800242 __u32 response_length;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800244 __u32 reserved;
245};
246struct mlx5_ib_create_rwq_ind_tbl_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800247 __u32 response_length;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800249 __u32 reserved;
250};
251struct mlx5_ib_modify_wq {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800252 __u32 comp_mask;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800254 __u32 reserved;
255};
256#endif