Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 22 | #include <linux/if_ether.h> |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 23 | #include <rdma/ib_user_ioctl_verbs.h> |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 24 | enum { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 25 | MLX5_QP_FLAG_SIGNATURE = 1 << 0, |
| 26 | MLX5_QP_FLAG_SCATTER_CQE = 1 << 1, |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 27 | MLX5_QP_FLAG_TUNNEL_OFFLOADS = 1 << 2, |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 28 | MLX5_QP_FLAG_BFREG_INDEX = 1 << 3, |
| 29 | MLX5_QP_FLAG_TYPE_DCT = 1 << 4, |
| 30 | MLX5_QP_FLAG_TYPE_DCI = 1 << 5, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 31 | }; |
| 32 | enum { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 33 | MLX5_SRQ_FLAG_SIGNATURE = 1 << 0, |
| 34 | }; |
| 35 | enum { |
| 36 | MLX5_WQ_FLAG_SIGNATURE = 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 37 | }; |
| 38 | #define MLX5_IB_UVERBS_ABI_VERSION 1 |
| 39 | struct mlx5_ib_alloc_ucontext_req { |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 40 | __u32 total_num_bfregs; |
| 41 | __u32 num_low_latency_bfregs; |
| 42 | }; |
| 43 | enum mlx5_lib_caps { |
| 44 | MLX5_LIB_CAP_4K_UAR = (__u64) 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 45 | }; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 46 | enum mlx5_ib_alloc_uctx_v2_flags { |
| 47 | MLX5_IB_ALLOC_UCTX_DEVX = 1 << 0, |
| 48 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 49 | struct mlx5_ib_alloc_ucontext_req_v2 { |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 50 | __u32 total_num_bfregs; |
| 51 | __u32 num_low_latency_bfregs; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 52 | __u32 flags; |
| 53 | __u32 comp_mask; |
| 54 | __u8 max_cqe_version; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 55 | __u8 reserved0; |
| 56 | __u16 reserved1; |
| 57 | __u32 reserved2; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 58 | __aligned_u64 lib_caps; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 59 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 60 | enum mlx5_ib_alloc_ucontext_resp_mask { |
| 61 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0, |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 62 | MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_DUMP_FILL_MKEY = 1UL << 1, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 63 | }; |
| 64 | enum mlx5_user_cmds_supp_uhw { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 65 | MLX5_USER_CMDS_SUPP_UHW_QUERY_DEVICE = 1 << 0, |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 66 | MLX5_USER_CMDS_SUPP_UHW_CREATE_AH = 1 << 1, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 67 | }; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 68 | enum mlx5_user_inline_mode { |
| 69 | MLX5_USER_INLINE_MODE_NA, |
| 70 | MLX5_USER_INLINE_MODE_NONE, |
| 71 | MLX5_USER_INLINE_MODE_L2, |
| 72 | MLX5_USER_INLINE_MODE_IP, |
| 73 | MLX5_USER_INLINE_MODE_TCP_UDP, |
| 74 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 75 | enum { |
| 76 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM = 1 << 0, |
| 77 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_REQ_METADATA = 1 << 1, |
| 78 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_SPI_STEERING = 1 << 2, |
| 79 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_FULL_OFFLOAD = 1 << 3, |
| 80 | MLX5_USER_ALLOC_UCONTEXT_FLOW_ACTION_FLAGS_ESP_AES_GCM_TX_IV_IS_ESN = 1 << 4, |
| 81 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 82 | struct mlx5_ib_alloc_ucontext_resp { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 83 | __u32 qp_tab_size; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 84 | __u32 bf_reg_size; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 85 | __u32 tot_bfregs; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 86 | __u32 cache_line_size; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 87 | __u16 max_sq_desc_sz; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 88 | __u16 max_rq_desc_sz; |
| 89 | __u32 max_send_wqebb; |
| 90 | __u32 max_recv_wr; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 91 | __u32 max_srq_recv_wr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 92 | __u16 num_ports; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 93 | __u16 flow_action_flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 94 | __u32 comp_mask; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 95 | __u32 response_length; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 96 | __u8 cqe_version; |
| 97 | __u8 cmds_supp_uhw; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 98 | __u8 eth_min_inline; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 99 | __u8 clock_info_versions; |
| 100 | __aligned_u64 hca_core_clock_offset; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 101 | __u32 log_uar_size; |
| 102 | __u32 num_uars_per_page; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 103 | __u32 num_dyn_bfregs; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 104 | __u32 dump_fill_mkey; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 105 | }; |
| 106 | struct mlx5_ib_alloc_pd_resp { |
| 107 | __u32 pdn; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 108 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 109 | struct mlx5_ib_tso_caps { |
| 110 | __u32 max_tso; |
| 111 | __u32 supported_qpts; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 112 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 113 | struct mlx5_ib_rss_caps { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 114 | __aligned_u64 rx_hash_fields_mask; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 115 | __u8 rx_hash_function; |
| 116 | __u8 reserved[7]; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 117 | }; |
| 118 | enum mlx5_ib_cqe_comp_res_format { |
| 119 | MLX5_IB_CQE_RES_FORMAT_HASH = 1 << 0, |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 120 | MLX5_IB_CQE_RES_FORMAT_CSUM = 1 << 1, |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 121 | MLX5_IB_CQE_RES_FORMAT_CSUM_STRIDX = 1 << 2, |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 122 | }; |
| 123 | struct mlx5_ib_cqe_comp_caps { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 124 | __u32 max_num; |
| 125 | __u32 supported_format; |
| 126 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 127 | enum mlx5_ib_packet_pacing_cap_flags { |
| 128 | MLX5_IB_PP_SUPPORT_BURST = 1 << 0, |
| 129 | }; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 130 | struct mlx5_packet_pacing_caps { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 131 | __u32 qp_rate_limit_min; |
| 132 | __u32 qp_rate_limit_max; |
| 133 | __u32 supported_qpts; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 134 | __u8 cap_flags; |
| 135 | __u8 reserved[3]; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 136 | }; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 137 | enum mlx5_ib_mpw_caps { |
| 138 | MPW_RESERVED = 1 << 0, |
| 139 | MLX5_IB_ALLOW_MPW = 1 << 1, |
| 140 | MLX5_IB_SUPPORT_EMPW = 1 << 2, |
| 141 | }; |
| 142 | enum mlx5_ib_sw_parsing_offloads { |
| 143 | MLX5_IB_SW_PARSING = 1 << 0, |
| 144 | MLX5_IB_SW_PARSING_CSUM = 1 << 1, |
| 145 | MLX5_IB_SW_PARSING_LSO = 1 << 2, |
| 146 | }; |
| 147 | struct mlx5_ib_sw_parsing_caps { |
| 148 | __u32 sw_parsing_offloads; |
| 149 | __u32 supported_qpts; |
| 150 | }; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 151 | struct mlx5_ib_striding_rq_caps { |
| 152 | __u32 min_single_stride_log_num_of_bytes; |
| 153 | __u32 max_single_stride_log_num_of_bytes; |
| 154 | __u32 min_single_wqe_log_num_of_strides; |
| 155 | __u32 max_single_wqe_log_num_of_strides; |
| 156 | __u32 supported_qpts; |
| 157 | __u32 reserved; |
| 158 | }; |
| 159 | enum mlx5_ib_query_dev_resp_flags { |
| 160 | MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_COMP = 1 << 0, |
| 161 | MLX5_IB_QUERY_DEV_RESP_FLAGS_CQE_128B_PAD = 1 << 1, |
| 162 | }; |
| 163 | enum mlx5_ib_tunnel_offloads { |
| 164 | MLX5_IB_TUNNELED_OFFLOADS_VXLAN = 1 << 0, |
| 165 | MLX5_IB_TUNNELED_OFFLOADS_GRE = 1 << 1, |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 166 | MLX5_IB_TUNNELED_OFFLOADS_GENEVE = 1 << 2, |
| 167 | MLX5_IB_TUNNELED_OFFLOADS_MPLS_GRE = 1 << 3, |
| 168 | MLX5_IB_TUNNELED_OFFLOADS_MPLS_UDP = 1 << 4, |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 169 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 170 | struct mlx5_ib_query_device_resp { |
| 171 | __u32 comp_mask; |
| 172 | __u32 response_length; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 173 | struct mlx5_ib_tso_caps tso_caps; |
| 174 | struct mlx5_ib_rss_caps rss_caps; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 175 | struct mlx5_ib_cqe_comp_caps cqe_comp_caps; |
| 176 | struct mlx5_packet_pacing_caps packet_pacing_caps; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 177 | __u32 mlx5_ib_support_multi_pkt_send_wqes; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 178 | __u32 flags; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 179 | struct mlx5_ib_sw_parsing_caps sw_parsing_caps; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 180 | struct mlx5_ib_striding_rq_caps striding_rq_caps; |
| 181 | __u32 tunnel_offloads_caps; |
| 182 | __u32 reserved; |
| 183 | }; |
| 184 | enum mlx5_ib_create_cq_flags { |
| 185 | MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD = 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 186 | }; |
| 187 | struct mlx5_ib_create_cq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 188 | __aligned_u64 buf_addr; |
| 189 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 190 | __u32 cqe_size; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 191 | __u8 cqe_comp_en; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 192 | __u8 cqe_comp_res_format; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 193 | __u16 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 194 | }; |
| 195 | struct mlx5_ib_create_cq_resp { |
| 196 | __u32 cqn; |
| 197 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 198 | }; |
| 199 | struct mlx5_ib_resize_cq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 200 | __aligned_u64 buf_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 201 | __u16 cqe_size; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 202 | __u16 reserved0; |
| 203 | __u32 reserved1; |
| 204 | }; |
| 205 | struct mlx5_ib_create_srq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 206 | __aligned_u64 buf_addr; |
| 207 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 208 | __u32 flags; |
| 209 | __u32 reserved0; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 210 | __u32 uidx; |
| 211 | __u32 reserved1; |
| 212 | }; |
| 213 | struct mlx5_ib_create_srq_resp { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 214 | __u32 srqn; |
| 215 | __u32 reserved; |
| 216 | }; |
| 217 | struct mlx5_ib_create_qp { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 218 | __aligned_u64 buf_addr; |
| 219 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 220 | __u32 sq_wqe_count; |
| 221 | __u32 rq_wqe_count; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 222 | __u32 rq_wqe_shift; |
| 223 | __u32 flags; |
| 224 | __u32 uidx; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 225 | __u32 bfreg_index; |
| 226 | union { |
| 227 | __aligned_u64 sq_buf_addr; |
| 228 | __aligned_u64 access_key; |
| 229 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 230 | }; |
| 231 | enum mlx5_rx_hash_function_flags { |
| 232 | MLX5_RX_HASH_FUNC_TOEPLITZ = 1 << 0, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 233 | }; |
| 234 | enum mlx5_rx_hash_fields { |
| 235 | MLX5_RX_HASH_SRC_IPV4 = 1 << 0, |
| 236 | MLX5_RX_HASH_DST_IPV4 = 1 << 1, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 237 | MLX5_RX_HASH_SRC_IPV6 = 1 << 2, |
| 238 | MLX5_RX_HASH_DST_IPV6 = 1 << 3, |
| 239 | MLX5_RX_HASH_SRC_PORT_TCP = 1 << 4, |
| 240 | MLX5_RX_HASH_DST_PORT_TCP = 1 << 5, |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 241 | MLX5_RX_HASH_SRC_PORT_UDP = 1 << 6, |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 242 | MLX5_RX_HASH_DST_PORT_UDP = 1 << 7, |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 243 | MLX5_RX_HASH_IPSEC_SPI = 1 << 8, |
| 244 | MLX5_RX_HASH_INNER = (1UL << 31), |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 245 | }; |
| 246 | struct mlx5_ib_create_qp_rss { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 247 | __aligned_u64 rx_hash_fields_mask; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 248 | __u8 rx_hash_function; |
| 249 | __u8 rx_key_len; |
| 250 | __u8 reserved[6]; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 251 | __u8 rx_hash_key[128]; |
| 252 | __u32 comp_mask; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 253 | __u32 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 254 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 255 | struct mlx5_ib_create_qp_resp { |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 256 | __u32 bfreg_index; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 257 | __u32 reserved; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 258 | }; |
| 259 | struct mlx5_ib_alloc_mw { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 260 | __u32 comp_mask; |
| 261 | __u8 num_klms; |
| 262 | __u8 reserved1; |
| 263 | __u16 reserved2; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 264 | }; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 265 | enum mlx5_ib_create_wq_mask { |
| 266 | MLX5_IB_CREATE_WQ_STRIDING_RQ = (1 << 0), |
| 267 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 268 | struct mlx5_ib_create_wq { |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 269 | __aligned_u64 buf_addr; |
| 270 | __aligned_u64 db_addr; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 271 | __u32 rq_wqe_count; |
| 272 | __u32 rq_wqe_shift; |
| 273 | __u32 user_index; |
| 274 | __u32 flags; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 275 | __u32 comp_mask; |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 276 | __u32 single_stride_log_num_of_bytes; |
| 277 | __u32 single_wqe_log_num_of_strides; |
| 278 | __u32 two_byte_shift_en; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 279 | }; |
| 280 | struct mlx5_ib_create_ah_resp { |
| 281 | __u32 response_length; |
| 282 | __u8 dmac[ETH_ALEN]; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 283 | __u8 reserved[6]; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 284 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 285 | struct mlx5_ib_burst_info { |
| 286 | __u32 max_burst_sz; |
| 287 | __u16 typical_pkt_sz; |
| 288 | __u16 reserved; |
| 289 | }; |
| 290 | struct mlx5_ib_modify_qp { |
| 291 | __u32 comp_mask; |
| 292 | struct mlx5_ib_burst_info burst_info; |
| 293 | __u32 reserved; |
| 294 | }; |
| 295 | struct mlx5_ib_modify_qp_resp { |
| 296 | __u32 response_length; |
| 297 | __u32 dctn; |
| 298 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 299 | struct mlx5_ib_create_wq_resp { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 300 | __u32 response_length; |
| 301 | __u32 reserved; |
| 302 | }; |
| 303 | struct mlx5_ib_create_rwq_ind_tbl_resp { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 304 | __u32 response_length; |
| 305 | __u32 reserved; |
| 306 | }; |
| 307 | struct mlx5_ib_modify_wq { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 308 | __u32 comp_mask; |
| 309 | __u32 reserved; |
| 310 | }; |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 311 | struct mlx5_ib_clock_info { |
| 312 | __u32 sign; |
| 313 | __u32 resv; |
| 314 | __aligned_u64 nsec; |
| 315 | __aligned_u64 cycles; |
| 316 | __aligned_u64 frac; |
| 317 | __u32 mult; |
| 318 | __u32 shift; |
| 319 | __aligned_u64 mask; |
| 320 | __aligned_u64 overflow_period; |
| 321 | }; |
| 322 | enum mlx5_ib_mmap_cmd { |
| 323 | MLX5_IB_MMAP_REGULAR_PAGE = 0, |
| 324 | MLX5_IB_MMAP_GET_CONTIGUOUS_PAGES = 1, |
| 325 | MLX5_IB_MMAP_WC_PAGE = 2, |
| 326 | MLX5_IB_MMAP_NC_PAGE = 3, |
| 327 | MLX5_IB_MMAP_CORE_CLOCK = 5, |
| 328 | MLX5_IB_MMAP_ALLOC_WC = 6, |
| 329 | MLX5_IB_MMAP_CLOCK_INFO = 7, |
| 330 | MLX5_IB_MMAP_DEVICE_MEM = 8, |
| 331 | }; |
| 332 | enum { |
| 333 | MLX5_IB_CLOCK_INFO_KERNEL_UPDATING = 1, |
| 334 | }; |
| 335 | enum { |
| 336 | MLX5_IB_CLOCK_INFO_V1 = 0, |
| 337 | }; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 338 | struct mlx5_ib_flow_counters_desc { |
| 339 | __u32 description; |
| 340 | __u32 index; |
| 341 | }; |
| 342 | struct mlx5_ib_flow_counters_data { |
| 343 | RDMA_UAPI_PTR(struct mlx5_ib_flow_counters_desc *, counters_data); |
| 344 | __u32 ncounters; |
| 345 | __u32 reserved; |
| 346 | }; |
| 347 | struct mlx5_ib_create_flow { |
| 348 | __u32 ncounters_data; |
| 349 | __u32 reserved; |
| 350 | struct mlx5_ib_flow_counters_data data[]; |
| 351 | }; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 352 | #endif |