| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [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 IB_USER_VERBS_H | 
 | 20 | #define IB_USER_VERBS_H | 
 | 21 | #include <linux/types.h> | 
 | 22 | #define IB_USER_VERBS_ABI_VERSION 6 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 23 | #define IB_USER_VERBS_CMD_THRESHOLD 50 | 
| Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 24 | enum ib_uverbs_write_cmds { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 |   IB_USER_VERBS_CMD_GET_CONTEXT, | 
 | 26 |   IB_USER_VERBS_CMD_QUERY_DEVICE, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 |   IB_USER_VERBS_CMD_QUERY_PORT, | 
 | 28 |   IB_USER_VERBS_CMD_ALLOC_PD, | 
 | 29 |   IB_USER_VERBS_CMD_DEALLOC_PD, | 
 | 30 |   IB_USER_VERBS_CMD_CREATE_AH, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 |   IB_USER_VERBS_CMD_MODIFY_AH, | 
 | 32 |   IB_USER_VERBS_CMD_QUERY_AH, | 
 | 33 |   IB_USER_VERBS_CMD_DESTROY_AH, | 
 | 34 |   IB_USER_VERBS_CMD_REG_MR, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 |   IB_USER_VERBS_CMD_REG_SMR, | 
 | 36 |   IB_USER_VERBS_CMD_REREG_MR, | 
 | 37 |   IB_USER_VERBS_CMD_QUERY_MR, | 
 | 38 |   IB_USER_VERBS_CMD_DEREG_MR, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 |   IB_USER_VERBS_CMD_ALLOC_MW, | 
 | 40 |   IB_USER_VERBS_CMD_BIND_MW, | 
 | 41 |   IB_USER_VERBS_CMD_DEALLOC_MW, | 
 | 42 |   IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 |   IB_USER_VERBS_CMD_CREATE_CQ, | 
 | 44 |   IB_USER_VERBS_CMD_RESIZE_CQ, | 
 | 45 |   IB_USER_VERBS_CMD_DESTROY_CQ, | 
 | 46 |   IB_USER_VERBS_CMD_POLL_CQ, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 |   IB_USER_VERBS_CMD_PEEK_CQ, | 
 | 48 |   IB_USER_VERBS_CMD_REQ_NOTIFY_CQ, | 
 | 49 |   IB_USER_VERBS_CMD_CREATE_QP, | 
 | 50 |   IB_USER_VERBS_CMD_QUERY_QP, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 |   IB_USER_VERBS_CMD_MODIFY_QP, | 
 | 52 |   IB_USER_VERBS_CMD_DESTROY_QP, | 
 | 53 |   IB_USER_VERBS_CMD_POST_SEND, | 
 | 54 |   IB_USER_VERBS_CMD_POST_RECV, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 |   IB_USER_VERBS_CMD_ATTACH_MCAST, | 
 | 56 |   IB_USER_VERBS_CMD_DETACH_MCAST, | 
 | 57 |   IB_USER_VERBS_CMD_CREATE_SRQ, | 
 | 58 |   IB_USER_VERBS_CMD_MODIFY_SRQ, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 |   IB_USER_VERBS_CMD_QUERY_SRQ, | 
 | 60 |   IB_USER_VERBS_CMD_DESTROY_SRQ, | 
 | 61 |   IB_USER_VERBS_CMD_POST_SRQ_RECV, | 
 | 62 |   IB_USER_VERBS_CMD_OPEN_XRCD, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 |   IB_USER_VERBS_CMD_CLOSE_XRCD, | 
 | 64 |   IB_USER_VERBS_CMD_CREATE_XSRQ, | 
 | 65 |   IB_USER_VERBS_CMD_OPEN_QP, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 66 | }; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 67 | enum { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 68 |   IB_USER_VERBS_EX_CMD_QUERY_DEVICE = IB_USER_VERBS_CMD_QUERY_DEVICE, | 
 | 69 |   IB_USER_VERBS_EX_CMD_CREATE_CQ = IB_USER_VERBS_CMD_CREATE_CQ, | 
 | 70 |   IB_USER_VERBS_EX_CMD_CREATE_QP = IB_USER_VERBS_CMD_CREATE_QP, | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 71 |   IB_USER_VERBS_EX_CMD_MODIFY_QP = IB_USER_VERBS_CMD_MODIFY_QP, | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 72 |   IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD, | 
 | 73 |   IB_USER_VERBS_EX_CMD_DESTROY_FLOW, | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 74 |   IB_USER_VERBS_EX_CMD_CREATE_WQ, | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 75 |   IB_USER_VERBS_EX_CMD_MODIFY_WQ, | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 76 |   IB_USER_VERBS_EX_CMD_DESTROY_WQ, | 
 | 77 |   IB_USER_VERBS_EX_CMD_CREATE_RWQ_IND_TBL, | 
| Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 78 |   IB_USER_VERBS_EX_CMD_DESTROY_RWQ_IND_TBL, | 
 | 79 |   IB_USER_VERBS_EX_CMD_MODIFY_CQ | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 80 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 81 | struct ib_uverbs_async_event_desc { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 82 |   __aligned_u64 element; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 83 |   __u32 event_type; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 84 |   __u32 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 85 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 86 | struct ib_uverbs_comp_event_desc { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 87 |   __aligned_u64 cq_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 88 | }; | 
| Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 89 | struct ib_uverbs_cq_moderation_caps { | 
 | 90 |   __u16 max_cq_moderation_count; | 
 | 91 |   __u16 max_cq_moderation_period; | 
 | 92 |   __u32 reserved; | 
 | 93 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 94 | #define IB_USER_VERBS_CMD_COMMAND_MASK 0xff | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 95 | #define IB_USER_VERBS_CMD_FLAG_EXTENDED 0x80000000u | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 96 | struct ib_uverbs_cmd_hdr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 97 |   __u32 command; | 
 | 98 |   __u16 in_words; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 99 |   __u16 out_words; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 100 | }; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 101 | struct ib_uverbs_ex_cmd_hdr { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 102 |   __aligned_u64 response; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 103 |   __u16 provider_in_words; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 104 |   __u16 provider_out_words; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 105 |   __u32 cmd_hdr_reserved; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 106 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 107 | struct ib_uverbs_get_context { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 108 |   __aligned_u64 response; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 109 |   __aligned_u64 driver_data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 111 | struct ib_uverbs_get_context_resp { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 112 |   __u32 async_fd; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 113 |   __u32 num_comp_vectors; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 114 |   __aligned_u64 driver_data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 115 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 116 | struct ib_uverbs_query_device { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 117 |   __aligned_u64 response; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 118 |   __aligned_u64 driver_data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 119 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 120 | struct ib_uverbs_query_device_resp { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 121 |   __aligned_u64 fw_ver; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 122 |   __be64 node_guid; | 
 | 123 |   __be64 sys_image_guid; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 124 |   __aligned_u64 max_mr_size; | 
 | 125 |   __aligned_u64 page_size_cap; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 126 |   __u32 vendor_id; | 
 | 127 |   __u32 vendor_part_id; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 128 |   __u32 hw_ver; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 129 |   __u32 max_qp; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 130 |   __u32 max_qp_wr; | 
 | 131 |   __u32 device_cap_flags; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 132 |   __u32 max_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 133 |   __u32 max_sge_rd; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 134 |   __u32 max_cq; | 
 | 135 |   __u32 max_cqe; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 136 |   __u32 max_mr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 137 |   __u32 max_pd; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 138 |   __u32 max_qp_rd_atom; | 
 | 139 |   __u32 max_ee_rd_atom; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 140 |   __u32 max_res_rd_atom; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 141 |   __u32 max_qp_init_rd_atom; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 142 |   __u32 max_ee_init_rd_atom; | 
 | 143 |   __u32 atomic_cap; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 144 |   __u32 max_ee; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 145 |   __u32 max_rdd; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 146 |   __u32 max_mw; | 
 | 147 |   __u32 max_raw_ipv6_qp; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 148 |   __u32 max_raw_ethy_qp; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 149 |   __u32 max_mcast_grp; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 150 |   __u32 max_mcast_qp_attach; | 
 | 151 |   __u32 max_total_mcast_qp_attach; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 152 |   __u32 max_ah; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 153 |   __u32 max_fmr; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 154 |   __u32 max_map_per_fmr; | 
 | 155 |   __u32 max_srq; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 156 |   __u32 max_srq_wr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 157 |   __u32 max_srq_sge; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 158 |   __u16 max_pkeys; | 
 | 159 |   __u8 local_ca_ack_delay; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 160 |   __u8 phys_port_cnt; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 161 |   __u8 reserved[4]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 162 | }; | 
 | 163 | struct ib_uverbs_ex_query_device { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 164 |   __u32 comp_mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 165 |   __u32 reserved; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 166 | }; | 
 | 167 | struct ib_uverbs_odp_caps { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 168 |   __aligned_u64 general_caps; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 169 |   struct { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 170 |     __u32 rc_odp_caps; | 
 | 171 |     __u32 uc_odp_caps; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 172 |     __u32 ud_odp_caps; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 173 |   } per_transport_caps; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 174 |   __u32 reserved; | 
 | 175 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 176 | struct ib_uverbs_rss_caps { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 177 |   __u32 supported_qpts; | 
 | 178 |   __u32 max_rwq_indirection_tables; | 
 | 179 |   __u32 max_rwq_indirection_table_size; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 180 |   __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 181 | }; | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 182 | struct ib_uverbs_tm_caps { | 
 | 183 |   __u32 max_rndv_hdr_size; | 
 | 184 |   __u32 max_num_tags; | 
 | 185 |   __u32 flags; | 
 | 186 |   __u32 max_ops; | 
 | 187 |   __u32 max_sge; | 
 | 188 |   __u32 reserved; | 
 | 189 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 190 | struct ib_uverbs_ex_query_device_resp { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 191 |   struct ib_uverbs_query_device_resp base; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 192 |   __u32 comp_mask; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 193 |   __u32 response_length; | 
 | 194 |   struct ib_uverbs_odp_caps odp_caps; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 195 |   __aligned_u64 timestamp_mask; | 
 | 196 |   __aligned_u64 hca_core_clock; | 
 | 197 |   __aligned_u64 device_cap_flags_ex; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 198 |   struct ib_uverbs_rss_caps rss_caps; | 
 | 199 |   __u32 max_wq_type_rq; | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 200 |   __u32 raw_packet_caps; | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 201 |   struct ib_uverbs_tm_caps tm_caps; | 
| Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 202 |   struct ib_uverbs_cq_moderation_caps cq_moderation_caps; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 203 |   __aligned_u64 max_dm_size; | 
| Christopher Ferris | 24f97eb | 2019-05-20 12:58:13 -0700 | [diff] [blame] | 204 |   __u32 xrc_odp_caps; | 
 | 205 |   __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 206 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 207 | struct ib_uverbs_query_port { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 208 |   __aligned_u64 response; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 209 |   __u8 port_num; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 210 |   __u8 reserved[7]; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 211 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 212 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 213 | struct ib_uverbs_query_port_resp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 214 |   __u32 port_cap_flags; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 215 |   __u32 max_msg_sz; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 216 |   __u32 bad_pkey_cntr; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 217 |   __u32 qkey_viol_cntr; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 218 |   __u32 gid_tbl_len; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 219 |   __u16 pkey_tbl_len; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 220 |   __u16 lid; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 221 |   __u16 sm_lid; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 222 |   __u8 state; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 223 |   __u8 max_mtu; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 224 |   __u8 active_mtu; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 225 |   __u8 lmc; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 226 |   __u8 max_vl_num; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 227 |   __u8 sm_sl; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 228 |   __u8 subnet_timeout; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 229 |   __u8 init_type_reply; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 230 |   __u8 active_width; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 231 |   __u8 active_speed; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 232 |   __u8 phys_state; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 233 |   __u8 link_layer; | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 234 |   __u8 flags; | 
 | 235 |   __u8 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 236 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 237 | struct ib_uverbs_alloc_pd { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 238 |   __aligned_u64 response; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 239 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 240 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 241 | struct ib_uverbs_alloc_pd_resp { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 242 |   __u32 pd_handle; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 243 |   __u32 driver_data[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 244 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 245 | struct ib_uverbs_dealloc_pd { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 246 |   __u32 pd_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 247 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 248 | struct ib_uverbs_open_xrcd { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 249 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 250 |   __u32 fd; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 251 |   __u32 oflags; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 252 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 253 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 254 | struct ib_uverbs_open_xrcd_resp { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 255 |   __u32 xrcd_handle; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 256 |   __u32 driver_data[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 257 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 258 | struct ib_uverbs_close_xrcd { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 259 |   __u32 xrcd_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 260 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 261 | struct ib_uverbs_reg_mr { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 262 |   __aligned_u64 response; | 
 | 263 |   __aligned_u64 start; | 
 | 264 |   __aligned_u64 length; | 
 | 265 |   __aligned_u64 hca_va; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 266 |   __u32 pd_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 267 |   __u32 access_flags; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 268 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 269 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 270 | struct ib_uverbs_reg_mr_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 271 |   __u32 mr_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 272 |   __u32 lkey; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 273 |   __u32 rkey; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 274 |   __u32 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 275 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 276 | struct ib_uverbs_rereg_mr { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 277 |   __aligned_u64 response; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 278 |   __u32 mr_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 279 |   __u32 flags; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 280 |   __aligned_u64 start; | 
 | 281 |   __aligned_u64 length; | 
 | 282 |   __aligned_u64 hca_va; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 283 |   __u32 pd_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 284 |   __u32 access_flags; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 285 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 286 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 287 | struct ib_uverbs_rereg_mr_resp { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 288 |   __u32 lkey; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 289 |   __u32 rkey; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 290 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 291 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 292 | struct ib_uverbs_dereg_mr { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 293 |   __u32 mr_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 294 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 295 | struct ib_uverbs_alloc_mw { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 296 |   __aligned_u64 response; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 297 |   __u32 pd_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 298 |   __u8 mw_type; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 299 |   __u8 reserved[3]; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 300 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 301 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 302 | struct ib_uverbs_alloc_mw_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 303 |   __u32 mw_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 304 |   __u32 rkey; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 305 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 306 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 307 | struct ib_uverbs_dealloc_mw { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 308 |   __u32 mw_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 309 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 310 | struct ib_uverbs_create_comp_channel { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 311 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 312 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 313 | struct ib_uverbs_create_comp_channel_resp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 314 |   __u32 fd; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 315 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 316 | struct ib_uverbs_create_cq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 317 |   __aligned_u64 response; | 
 | 318 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 319 |   __u32 cqe; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 320 |   __u32 comp_vector; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 321 |   __s32 comp_channel; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 322 |   __u32 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 323 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 324 | }; | 
 | 325 | enum ib_uverbs_ex_create_cq_flags { | 
 | 326 |   IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION = 1 << 0, | 
 | 327 |   IB_UVERBS_CQ_FLAGS_IGNORE_OVERRUN = 1 << 1, | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 328 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 329 | struct ib_uverbs_ex_create_cq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 330 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 331 |   __u32 cqe; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 332 |   __u32 comp_vector; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 333 |   __s32 comp_channel; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 334 |   __u32 comp_mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 335 |   __u32 flags; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 336 |   __u32 reserved; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 337 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 338 | struct ib_uverbs_create_cq_resp { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 339 |   __u32 cq_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 340 |   __u32 cqe; | 
| Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 341 |   __aligned_u64 driver_data[0]; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 342 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 343 | struct ib_uverbs_ex_create_cq_resp { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 344 |   struct ib_uverbs_create_cq_resp base; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 345 |   __u32 comp_mask; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 346 |   __u32 response_length; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 347 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 348 | struct ib_uverbs_resize_cq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 349 |   __aligned_u64 response; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 350 |   __u32 cq_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 351 |   __u32 cqe; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 352 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 353 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 354 | struct ib_uverbs_resize_cq_resp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 355 |   __u32 cqe; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 356 |   __u32 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 357 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 358 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 359 | struct ib_uverbs_poll_cq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 360 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 361 |   __u32 cq_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 362 |   __u32 ne; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 363 | }; | 
| Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 364 | enum ib_uverbs_wc_opcode { | 
 | 365 |   IB_UVERBS_WC_SEND = 0, | 
 | 366 |   IB_UVERBS_WC_RDMA_WRITE = 1, | 
 | 367 |   IB_UVERBS_WC_RDMA_READ = 2, | 
 | 368 |   IB_UVERBS_WC_COMP_SWAP = 3, | 
 | 369 |   IB_UVERBS_WC_FETCH_ADD = 4, | 
 | 370 |   IB_UVERBS_WC_BIND_MW = 5, | 
 | 371 |   IB_UVERBS_WC_LOCAL_INV = 6, | 
 | 372 |   IB_UVERBS_WC_TSO = 7, | 
 | 373 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 374 | struct ib_uverbs_wc { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 375 |   __aligned_u64 wr_id; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 376 |   __u32 status; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 377 |   __u32 opcode; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 378 |   __u32 vendor_err; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 379 |   __u32 byte_len; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 380 |   union { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 381 |     __be32 imm_data; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 382 |     __u32 invalidate_rkey; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 383 |   } ex; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 384 |   __u32 qp_num; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 385 |   __u32 src_qp; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 386 |   __u32 wc_flags; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 387 |   __u16 pkey_index; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 388 |   __u16 slid; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 389 |   __u8 sl; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 390 |   __u8 dlid_path_bits; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 391 |   __u8 port_num; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 392 |   __u8 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 393 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 394 | struct ib_uverbs_poll_cq_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 395 |   __u32 count; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 396 |   __u32 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 397 |   struct ib_uverbs_wc wc[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 398 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 399 | struct ib_uverbs_req_notify_cq { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 400 |   __u32 cq_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 401 |   __u32 solicited_only; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 402 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 403 | struct ib_uverbs_destroy_cq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 404 |   __aligned_u64 response; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 405 |   __u32 cq_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 406 |   __u32 reserved; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 407 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 408 | struct ib_uverbs_destroy_cq_resp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 409 |   __u32 comp_events_reported; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 410 |   __u32 async_events_reported; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 411 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 412 | struct ib_uverbs_global_route { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 413 |   __u8 dgid[16]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 414 |   __u32 flow_label; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 415 |   __u8 sgid_index; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 416 |   __u8 hop_limit; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 417 |   __u8 traffic_class; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 418 |   __u8 reserved; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 419 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 420 | struct ib_uverbs_ah_attr { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 421 |   struct ib_uverbs_global_route grh; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 422 |   __u16 dlid; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 423 |   __u8 sl; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 424 |   __u8 src_path_bits; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 425 |   __u8 static_rate; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 426 |   __u8 is_global; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 427 |   __u8 port_num; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 428 |   __u8 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 429 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 430 | struct ib_uverbs_qp_attr { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 431 |   __u32 qp_attr_mask; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 432 |   __u32 qp_state; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 433 |   __u32 cur_qp_state; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 434 |   __u32 path_mtu; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 435 |   __u32 path_mig_state; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 436 |   __u32 qkey; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 437 |   __u32 rq_psn; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 438 |   __u32 sq_psn; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 439 |   __u32 dest_qp_num; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 440 |   __u32 qp_access_flags; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 441 |   struct ib_uverbs_ah_attr ah_attr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 442 |   struct ib_uverbs_ah_attr alt_ah_attr; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 443 |   __u32 max_send_wr; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 444 |   __u32 max_recv_wr; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 445 |   __u32 max_send_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 446 |   __u32 max_recv_sge; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 447 |   __u32 max_inline_data; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 448 |   __u16 pkey_index; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 449 |   __u16 alt_pkey_index; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 450 |   __u8 en_sqd_async_notify; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 451 |   __u8 sq_draining; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 452 |   __u8 max_rd_atomic; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 453 |   __u8 max_dest_rd_atomic; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 454 |   __u8 min_rnr_timer; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 455 |   __u8 port_num; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 456 |   __u8 timeout; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 457 |   __u8 retry_cnt; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 458 |   __u8 rnr_retry; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 459 |   __u8 alt_port_num; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 460 |   __u8 alt_timeout; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 461 |   __u8 reserved[5]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 462 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 463 | struct ib_uverbs_create_qp { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 464 |   __aligned_u64 response; | 
 | 465 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 466 |   __u32 pd_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 467 |   __u32 send_cq_handle; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 468 |   __u32 recv_cq_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 469 |   __u32 srq_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 470 |   __u32 max_send_wr; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 471 |   __u32 max_recv_wr; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 472 |   __u32 max_send_sge; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 473 |   __u32 max_recv_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 474 |   __u32 max_inline_data; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 475 |   __u8 sq_sig_all; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 476 |   __u8 qp_type; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 477 |   __u8 is_srq; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 478 |   __u8 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 479 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 480 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 481 | enum ib_uverbs_create_qp_mask { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 482 |   IB_UVERBS_CREATE_QP_MASK_IND_TABLE = 1UL << 0, | 
 | 483 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 484 | enum { | 
 | 485 |   IB_UVERBS_CREATE_QP_SUP_COMP_MASK = IB_UVERBS_CREATE_QP_MASK_IND_TABLE, | 
 | 486 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 487 | struct ib_uverbs_ex_create_qp { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 488 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 489 |   __u32 pd_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 490 |   __u32 send_cq_handle; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 491 |   __u32 recv_cq_handle; | 
 | 492 |   __u32 srq_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 493 |   __u32 max_send_wr; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 494 |   __u32 max_recv_wr; | 
 | 495 |   __u32 max_send_sge; | 
 | 496 |   __u32 max_recv_sge; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 497 |   __u32 max_inline_data; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 498 |   __u8 sq_sig_all; | 
 | 499 |   __u8 qp_type; | 
 | 500 |   __u8 is_srq; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 501 |   __u8 reserved; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 502 |   __u32 comp_mask; | 
 | 503 |   __u32 create_flags; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 504 |   __u32 rwq_ind_tbl_handle; | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 505 |   __u32 source_qpn; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 506 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 507 | struct ib_uverbs_open_qp { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 508 |   __aligned_u64 response; | 
 | 509 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 510 |   __u32 pd_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 511 |   __u32 qpn; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 512 |   __u8 qp_type; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 513 |   __u8 reserved[7]; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 514 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 515 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 516 | struct ib_uverbs_create_qp_resp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 517 |   __u32 qp_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 518 |   __u32 qpn; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 519 |   __u32 max_send_wr; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 520 |   __u32 max_recv_wr; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 521 |   __u32 max_send_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 522 |   __u32 max_recv_sge; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 523 |   __u32 max_inline_data; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 524 |   __u32 reserved; | 
| Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 525 |   __u32 driver_data[0]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 526 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 527 | struct ib_uverbs_ex_create_qp_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 528 |   struct ib_uverbs_create_qp_resp base; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 529 |   __u32 comp_mask; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 530 |   __u32 response_length; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 531 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 532 | struct ib_uverbs_qp_dest { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 533 |   __u8 dgid[16]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 534 |   __u32 flow_label; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 535 |   __u16 dlid; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 536 |   __u16 reserved; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 537 |   __u8 sgid_index; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 538 |   __u8 hop_limit; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 539 |   __u8 traffic_class; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 540 |   __u8 sl; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 541 |   __u8 src_path_bits; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 542 |   __u8 static_rate; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 543 |   __u8 is_global; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 544 |   __u8 port_num; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 545 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 546 | struct ib_uverbs_query_qp { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 547 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 548 |   __u32 qp_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 549 |   __u32 attr_mask; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 550 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 551 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 552 | struct ib_uverbs_query_qp_resp { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 553 |   struct ib_uverbs_qp_dest dest; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 554 |   struct ib_uverbs_qp_dest alt_dest; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 555 |   __u32 max_send_wr; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 556 |   __u32 max_recv_wr; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 557 |   __u32 max_send_sge; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 558 |   __u32 max_recv_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 559 |   __u32 max_inline_data; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 560 |   __u32 qkey; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 561 |   __u32 rq_psn; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 562 |   __u32 sq_psn; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 563 |   __u32 dest_qp_num; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 564 |   __u32 qp_access_flags; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 565 |   __u16 pkey_index; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 566 |   __u16 alt_pkey_index; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 567 |   __u8 qp_state; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 568 |   __u8 cur_qp_state; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 569 |   __u8 path_mtu; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 570 |   __u8 path_mig_state; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 571 |   __u8 sq_draining; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 572 |   __u8 max_rd_atomic; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 573 |   __u8 max_dest_rd_atomic; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 574 |   __u8 min_rnr_timer; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 575 |   __u8 port_num; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 576 |   __u8 timeout; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 577 |   __u8 retry_cnt; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 578 |   __u8 rnr_retry; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 579 |   __u8 alt_port_num; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 580 |   __u8 alt_timeout; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 581 |   __u8 sq_sig_all; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 582 |   __u8 reserved[5]; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 583 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 584 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 585 | struct ib_uverbs_modify_qp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 586 |   struct ib_uverbs_qp_dest dest; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 587 |   struct ib_uverbs_qp_dest alt_dest; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 588 |   __u32 qp_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 589 |   __u32 attr_mask; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 590 |   __u32 qkey; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 591 |   __u32 rq_psn; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 592 |   __u32 sq_psn; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 593 |   __u32 dest_qp_num; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 594 |   __u32 qp_access_flags; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 595 |   __u16 pkey_index; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 596 |   __u16 alt_pkey_index; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 597 |   __u8 qp_state; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 598 |   __u8 cur_qp_state; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 599 |   __u8 path_mtu; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 600 |   __u8 path_mig_state; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 601 |   __u8 en_sqd_async_notify; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 602 |   __u8 max_rd_atomic; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 603 |   __u8 max_dest_rd_atomic; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 604 |   __u8 min_rnr_timer; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 605 |   __u8 port_num; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 606 |   __u8 timeout; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 607 |   __u8 retry_cnt; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 608 |   __u8 rnr_retry; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 609 |   __u8 alt_port_num; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 610 |   __u8 alt_timeout; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 611 |   __u8 reserved[2]; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 612 |   __aligned_u64 driver_data[0]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 613 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 614 | struct ib_uverbs_ex_modify_qp { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 615 |   struct ib_uverbs_modify_qp base; | 
 | 616 |   __u32 rate_limit; | 
 | 617 |   __u32 reserved; | 
 | 618 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 619 | struct ib_uverbs_ex_modify_qp_resp { | 
 | 620 |   __u32 comp_mask; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 621 |   __u32 response_length; | 
 | 622 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 623 | struct ib_uverbs_destroy_qp { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 624 |   __aligned_u64 response; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 625 |   __u32 qp_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 626 |   __u32 reserved; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 627 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 628 | struct ib_uverbs_destroy_qp_resp { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 629 |   __u32 events_reported; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 630 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 631 | struct ib_uverbs_sge { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 632 |   __aligned_u64 addr; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 633 |   __u32 length; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 634 |   __u32 lkey; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 635 | }; | 
| Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 636 | enum ib_uverbs_wr_opcode { | 
 | 637 |   IB_UVERBS_WR_RDMA_WRITE = 0, | 
 | 638 |   IB_UVERBS_WR_RDMA_WRITE_WITH_IMM = 1, | 
 | 639 |   IB_UVERBS_WR_SEND = 2, | 
 | 640 |   IB_UVERBS_WR_SEND_WITH_IMM = 3, | 
 | 641 |   IB_UVERBS_WR_RDMA_READ = 4, | 
 | 642 |   IB_UVERBS_WR_ATOMIC_CMP_AND_SWP = 5, | 
 | 643 |   IB_UVERBS_WR_ATOMIC_FETCH_AND_ADD = 6, | 
 | 644 |   IB_UVERBS_WR_LOCAL_INV = 7, | 
 | 645 |   IB_UVERBS_WR_BIND_MW = 8, | 
 | 646 |   IB_UVERBS_WR_SEND_WITH_INV = 9, | 
 | 647 |   IB_UVERBS_WR_TSO = 10, | 
 | 648 |   IB_UVERBS_WR_RDMA_READ_WITH_INV = 11, | 
 | 649 |   IB_UVERBS_WR_MASKED_ATOMIC_CMP_AND_SWP = 12, | 
 | 650 |   IB_UVERBS_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13, | 
 | 651 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 652 | struct ib_uverbs_send_wr { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 653 |   __aligned_u64 wr_id; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 654 |   __u32 num_sge; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 655 |   __u32 opcode; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 656 |   __u32 send_flags; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 657 |   union { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 658 |     __be32 imm_data; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 659 |     __u32 invalidate_rkey; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 660 |   } ex; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 661 |   union { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 662 |     struct { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 663 |       __aligned_u64 remote_addr; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 664 |       __u32 rkey; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 665 |       __u32 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 666 |     } rdma; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 667 |     struct { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 668 |       __aligned_u64 remote_addr; | 
 | 669 |       __aligned_u64 compare_add; | 
 | 670 |       __aligned_u64 swap; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 671 |       __u32 rkey; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 672 |       __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 673 |     } atomic; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 674 |     struct { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 675 |       __u32 ah; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 676 |       __u32 remote_qpn; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 677 |       __u32 remote_qkey; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 678 |       __u32 reserved; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 679 |     } ud; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 680 |   } wr; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 681 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 682 | struct ib_uverbs_post_send { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 683 |   __aligned_u64 response; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 684 |   __u32 qp_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 685 |   __u32 wr_count; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 686 |   __u32 sge_count; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 687 |   __u32 wqe_size; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 688 |   struct ib_uverbs_send_wr send_wr[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 689 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 690 | struct ib_uverbs_post_send_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 691 |   __u32 bad_wr; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 692 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 693 | struct ib_uverbs_recv_wr { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 694 |   __aligned_u64 wr_id; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 695 |   __u32 num_sge; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 696 |   __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 697 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 698 | struct ib_uverbs_post_recv { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 699 |   __aligned_u64 response; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 700 |   __u32 qp_handle; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 701 |   __u32 wr_count; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 702 |   __u32 sge_count; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 703 |   __u32 wqe_size; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 704 |   struct ib_uverbs_recv_wr recv_wr[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 705 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 706 | struct ib_uverbs_post_recv_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 707 |   __u32 bad_wr; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 708 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 709 | struct ib_uverbs_post_srq_recv { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 710 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 711 |   __u32 srq_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 712 |   __u32 wr_count; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 713 |   __u32 sge_count; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 714 |   __u32 wqe_size; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 715 |   struct ib_uverbs_recv_wr recv[]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 716 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 717 | struct ib_uverbs_post_srq_recv_resp { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 718 |   __u32 bad_wr; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 719 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 720 | struct ib_uverbs_create_ah { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 721 |   __aligned_u64 response; | 
 | 722 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 723 |   __u32 pd_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 724 |   __u32 reserved; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 725 |   struct ib_uverbs_ah_attr attr; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 726 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 727 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 728 | struct ib_uverbs_create_ah_resp { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 729 |   __u32 ah_handle; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 730 |   __u32 driver_data[]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 731 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 732 | struct ib_uverbs_destroy_ah { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 733 |   __u32 ah_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 734 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 735 | struct ib_uverbs_attach_mcast { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 736 |   __u8 gid[16]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 737 |   __u32 qp_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 738 |   __u16 mlid; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 739 |   __u16 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 740 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 741 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 742 | struct ib_uverbs_detach_mcast { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 743 |   __u8 gid[16]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 744 |   __u32 qp_handle; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 745 |   __u16 mlid; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 746 |   __u16 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 747 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 748 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 749 | struct ib_uverbs_flow_spec_hdr { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 750 |   __u32 type; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 751 |   __u16 size; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 752 |   __u16 reserved; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 753 |   __aligned_u64 flow_spec_data[0]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 754 | }; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 755 | struct ib_uverbs_flow_eth_filter { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 756 |   __u8 dst_mac[6]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 757 |   __u8 src_mac[6]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 758 |   __be16 ether_type; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 759 |   __be16 vlan_tag; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 760 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 761 | struct ib_uverbs_flow_spec_eth { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 762 |   union { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 763 |     struct ib_uverbs_flow_spec_hdr hdr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 764 |     struct { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 765 |       __u32 type; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 766 |       __u16 size; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 767 |       __u16 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 768 |     }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 769 |   }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 770 |   struct ib_uverbs_flow_eth_filter val; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 771 |   struct ib_uverbs_flow_eth_filter mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 772 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 773 | struct ib_uverbs_flow_ipv4_filter { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 774 |   __be32 src_ip; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 775 |   __be32 dst_ip; | 
 | 776 |   __u8 proto; | 
 | 777 |   __u8 tos; | 
 | 778 |   __u8 ttl; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 779 |   __u8 flags; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 780 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 781 | struct ib_uverbs_flow_spec_ipv4 { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 782 |   union { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 783 |     struct ib_uverbs_flow_spec_hdr hdr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 784 |     struct { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 785 |       __u32 type; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 786 |       __u16 size; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 787 |       __u16 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 788 |     }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 789 |   }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 790 |   struct ib_uverbs_flow_ipv4_filter val; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 791 |   struct ib_uverbs_flow_ipv4_filter mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 792 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 793 | struct ib_uverbs_flow_tcp_udp_filter { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 794 |   __be16 dst_port; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 795 |   __be16 src_port; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 796 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 797 | struct ib_uverbs_flow_spec_tcp_udp { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 798 |   union { | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 799 |     struct ib_uverbs_flow_spec_hdr hdr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 800 |     struct { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 801 |       __u32 type; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 802 |       __u16 size; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 803 |       __u16 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 804 |     }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 805 |   }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 806 |   struct ib_uverbs_flow_tcp_udp_filter val; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 807 |   struct ib_uverbs_flow_tcp_udp_filter mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 808 | }; | 
 | 809 | struct ib_uverbs_flow_ipv6_filter { | 
 | 810 |   __u8 src_ip[16]; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 811 |   __u8 dst_ip[16]; | 
 | 812 |   __be32 flow_label; | 
 | 813 |   __u8 next_hdr; | 
 | 814 |   __u8 traffic_class; | 
| Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 815 |   __u8 hop_limit; | 
 | 816 |   __u8 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 817 | }; | 
 | 818 | struct ib_uverbs_flow_spec_ipv6 { | 
 | 819 |   union { | 
 | 820 |     struct ib_uverbs_flow_spec_hdr hdr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 821 |     struct { | 
 | 822 |       __u32 type; | 
 | 823 |       __u16 size; | 
 | 824 |       __u16 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 825 |     }; | 
 | 826 |   }; | 
 | 827 |   struct ib_uverbs_flow_ipv6_filter val; | 
 | 828 |   struct ib_uverbs_flow_ipv6_filter mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 829 | }; | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 830 | struct ib_uverbs_flow_spec_action_tag { | 
 | 831 |   union { | 
 | 832 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 833 |     struct { | 
 | 834 |       __u32 type; | 
 | 835 |       __u16 size; | 
 | 836 |       __u16 reserved; | 
 | 837 |     }; | 
 | 838 |   }; | 
 | 839 |   __u32 tag_id; | 
 | 840 |   __u32 reserved1; | 
 | 841 | }; | 
 | 842 | struct ib_uverbs_flow_spec_action_drop { | 
 | 843 |   union { | 
 | 844 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 845 |     struct { | 
 | 846 |       __u32 type; | 
 | 847 |       __u16 size; | 
 | 848 |       __u16 reserved; | 
 | 849 |     }; | 
 | 850 |   }; | 
 | 851 | }; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 852 | struct ib_uverbs_flow_spec_action_handle { | 
 | 853 |   union { | 
 | 854 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 855 |     struct { | 
 | 856 |       __u32 type; | 
 | 857 |       __u16 size; | 
 | 858 |       __u16 reserved; | 
 | 859 |     }; | 
 | 860 |   }; | 
 | 861 |   __u32 handle; | 
 | 862 |   __u32 reserved1; | 
 | 863 | }; | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 864 | struct ib_uverbs_flow_spec_action_count { | 
 | 865 |   union { | 
 | 866 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 867 |     struct { | 
 | 868 |       __u32 type; | 
 | 869 |       __u16 size; | 
 | 870 |       __u16 reserved; | 
 | 871 |     }; | 
 | 872 |   }; | 
 | 873 |   __u32 handle; | 
 | 874 |   __u32 reserved1; | 
 | 875 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 876 | struct ib_uverbs_flow_tunnel_filter { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 877 |   __be32 tunnel_id; | 
 | 878 | }; | 
 | 879 | struct ib_uverbs_flow_spec_tunnel { | 
 | 880 |   union { | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 881 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 882 |     struct { | 
 | 883 |       __u32 type; | 
 | 884 |       __u16 size; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 885 |       __u16 reserved; | 
 | 886 |     }; | 
 | 887 |   }; | 
 | 888 |   struct ib_uverbs_flow_tunnel_filter val; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 889 |   struct ib_uverbs_flow_tunnel_filter mask; | 
 | 890 | }; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 891 | struct ib_uverbs_flow_spec_esp_filter { | 
 | 892 |   __u32 spi; | 
 | 893 |   __u32 seq; | 
 | 894 | }; | 
 | 895 | struct ib_uverbs_flow_spec_esp { | 
 | 896 |   union { | 
 | 897 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 898 |     struct { | 
 | 899 |       __u32 type; | 
 | 900 |       __u16 size; | 
 | 901 |       __u16 reserved; | 
 | 902 |     }; | 
 | 903 |   }; | 
 | 904 |   struct ib_uverbs_flow_spec_esp_filter val; | 
 | 905 |   struct ib_uverbs_flow_spec_esp_filter mask; | 
 | 906 | }; | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 907 | struct ib_uverbs_flow_gre_filter { | 
 | 908 |   __be16 c_ks_res0_ver; | 
 | 909 |   __be16 protocol; | 
 | 910 |   __be32 key; | 
 | 911 | }; | 
 | 912 | struct ib_uverbs_flow_spec_gre { | 
 | 913 |   union { | 
 | 914 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 915 |     struct { | 
 | 916 |       __u32 type; | 
 | 917 |       __u16 size; | 
 | 918 |       __u16 reserved; | 
 | 919 |     }; | 
 | 920 |   }; | 
 | 921 |   struct ib_uverbs_flow_gre_filter val; | 
 | 922 |   struct ib_uverbs_flow_gre_filter mask; | 
 | 923 | }; | 
 | 924 | struct ib_uverbs_flow_mpls_filter { | 
 | 925 |   __be32 label; | 
 | 926 | }; | 
 | 927 | struct ib_uverbs_flow_spec_mpls { | 
 | 928 |   union { | 
 | 929 |     struct ib_uverbs_flow_spec_hdr hdr; | 
 | 930 |     struct { | 
 | 931 |       __u32 type; | 
 | 932 |       __u16 size; | 
 | 933 |       __u16 reserved; | 
 | 934 |     }; | 
 | 935 |   }; | 
 | 936 |   struct ib_uverbs_flow_mpls_filter val; | 
 | 937 |   struct ib_uverbs_flow_mpls_filter mask; | 
 | 938 | }; | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 939 | struct ib_uverbs_flow_attr { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 940 |   __u32 type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 941 |   __u16 size; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 942 |   __u16 priority; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 943 |   __u8 num_of_specs; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 944 |   __u8 reserved[2]; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 945 |   __u8 port; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 946 |   __u32 flags; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 947 |   struct ib_uverbs_flow_spec_hdr flow_specs[]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 948 | }; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 949 | struct ib_uverbs_create_flow { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 950 |   __u32 comp_mask; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 951 |   __u32 qp_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 952 |   struct ib_uverbs_flow_attr flow_attr; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 953 | }; | 
 | 954 | struct ib_uverbs_create_flow_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 955 |   __u32 comp_mask; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 956 |   __u32 flow_handle; | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 957 | }; | 
 | 958 | struct ib_uverbs_destroy_flow { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 959 |   __u32 comp_mask; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 960 |   __u32 flow_handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 961 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 962 | struct ib_uverbs_create_srq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 963 |   __aligned_u64 response; | 
 | 964 |   __aligned_u64 user_handle; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 965 |   __u32 pd_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 966 |   __u32 max_wr; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 967 |   __u32 max_sge; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 968 |   __u32 srq_limit; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 969 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 970 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 971 | struct ib_uverbs_create_xsrq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 972 |   __aligned_u64 response; | 
 | 973 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 974 |   __u32 srq_type; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 975 |   __u32 pd_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 976 |   __u32 max_wr; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 977 |   __u32 max_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 978 |   __u32 srq_limit; | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 979 |   __u32 max_num_tags; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 980 |   __u32 xrcd_handle; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 981 |   __u32 cq_handle; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 982 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 983 | }; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 984 | struct ib_uverbs_create_srq_resp { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 985 |   __u32 srq_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 986 |   __u32 max_wr; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 987 |   __u32 max_sge; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 988 |   __u32 srqn; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 989 |   __u32 driver_data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 990 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 991 | struct ib_uverbs_modify_srq { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 992 |   __u32 srq_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 993 |   __u32 attr_mask; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 994 |   __u32 max_wr; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 995 |   __u32 srq_limit; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 996 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 997 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 998 | struct ib_uverbs_query_srq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 999 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 1000 |   __u32 srq_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 1001 |   __u32 reserved; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 1002 |   __aligned_u64 driver_data[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1003 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 1004 | struct ib_uverbs_query_srq_resp { | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 1005 |   __u32 max_wr; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 1006 |   __u32 max_sge; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1007 |   __u32 srq_limit; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 1008 |   __u32 reserved; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 1009 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1010 | struct ib_uverbs_destroy_srq { | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 1011 |   __aligned_u64 response; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 1012 |   __u32 srq_handle; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 1013 |   __u32 reserved; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1014 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1015 | struct ib_uverbs_destroy_srq_resp { | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 1016 |   __u32 events_reported; | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 1017 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1018 | struct ib_uverbs_ex_create_wq { | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1019 |   __u32 comp_mask; | 
 | 1020 |   __u32 wq_type; | 
| Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 1021 |   __aligned_u64 user_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1022 |   __u32 pd_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1023 |   __u32 cq_handle; | 
 | 1024 |   __u32 max_wr; | 
 | 1025 |   __u32 max_sge; | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 1026 |   __u32 create_flags; | 
 | 1027 |   __u32 reserved; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1028 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1029 | struct ib_uverbs_ex_create_wq_resp { | 
 | 1030 |   __u32 comp_mask; | 
 | 1031 |   __u32 response_length; | 
 | 1032 |   __u32 wq_handle; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1033 |   __u32 max_wr; | 
 | 1034 |   __u32 max_sge; | 
 | 1035 |   __u32 wqn; | 
 | 1036 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1037 | struct ib_uverbs_ex_destroy_wq { | 
 | 1038 |   __u32 comp_mask; | 
 | 1039 |   __u32 wq_handle; | 
 | 1040 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1041 | struct ib_uverbs_ex_destroy_wq_resp { | 
 | 1042 |   __u32 comp_mask; | 
 | 1043 |   __u32 response_length; | 
 | 1044 |   __u32 events_reported; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1045 |   __u32 reserved; | 
 | 1046 | }; | 
 | 1047 | struct ib_uverbs_ex_modify_wq { | 
 | 1048 |   __u32 attr_mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1049 |   __u32 wq_handle; | 
 | 1050 |   __u32 wq_state; | 
 | 1051 |   __u32 curr_wq_state; | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 1052 |   __u32 flags; | 
 | 1053 |   __u32 flags_mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1054 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1055 | #define IB_USER_VERBS_MAX_LOG_IND_TBL_SIZE 0x0d | 
 | 1056 | struct ib_uverbs_ex_create_rwq_ind_table { | 
 | 1057 |   __u32 comp_mask; | 
 | 1058 |   __u32 log_ind_tbl_size; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 1059 |   __u32 wq_handles[]; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1060 | }; | 
 | 1061 | struct ib_uverbs_ex_create_rwq_ind_table_resp { | 
 | 1062 |   __u32 comp_mask; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1063 |   __u32 response_length; | 
 | 1064 |   __u32 ind_tbl_handle; | 
 | 1065 |   __u32 ind_tbl_num; | 
 | 1066 | }; | 
| Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 1067 | struct ib_uverbs_ex_destroy_rwq_ind_table { | 
 | 1068 |   __u32 comp_mask; | 
 | 1069 |   __u32 ind_tbl_handle; | 
 | 1070 | }; | 
| Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 1071 | struct ib_uverbs_cq_moderation { | 
 | 1072 |   __u16 cq_count; | 
 | 1073 |   __u16 cq_period; | 
 | 1074 | }; | 
 | 1075 | struct ib_uverbs_ex_modify_cq { | 
 | 1076 |   __u32 cq_handle; | 
 | 1077 |   __u32 attr_mask; | 
 | 1078 |   struct ib_uverbs_cq_moderation attr; | 
 | 1079 |   __u32 reserved; | 
 | 1080 | }; | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 1081 | #define IB_DEVICE_NAME_MAX 64 | 
| Christopher Ferris | 80ae69d | 2022-08-02 16:32:21 -0700 | [diff] [blame] | 1082 | enum ib_uverbs_device_cap_flags { | 
 | 1083 |   IB_UVERBS_DEVICE_RESIZE_MAX_WR = 1 << 0, | 
 | 1084 |   IB_UVERBS_DEVICE_BAD_PKEY_CNTR = 1 << 1, | 
 | 1085 |   IB_UVERBS_DEVICE_BAD_QKEY_CNTR = 1 << 2, | 
 | 1086 |   IB_UVERBS_DEVICE_RAW_MULTI = 1 << 3, | 
 | 1087 |   IB_UVERBS_DEVICE_AUTO_PATH_MIG = 1 << 4, | 
 | 1088 |   IB_UVERBS_DEVICE_CHANGE_PHY_PORT = 1 << 5, | 
 | 1089 |   IB_UVERBS_DEVICE_UD_AV_PORT_ENFORCE = 1 << 6, | 
 | 1090 |   IB_UVERBS_DEVICE_CURR_QP_STATE_MOD = 1 << 7, | 
 | 1091 |   IB_UVERBS_DEVICE_SHUTDOWN_PORT = 1 << 8, | 
 | 1092 |   IB_UVERBS_DEVICE_PORT_ACTIVE_EVENT = 1 << 10, | 
 | 1093 |   IB_UVERBS_DEVICE_SYS_IMAGE_GUID = 1 << 11, | 
 | 1094 |   IB_UVERBS_DEVICE_RC_RNR_NAK_GEN = 1 << 12, | 
 | 1095 |   IB_UVERBS_DEVICE_SRQ_RESIZE = 1 << 13, | 
 | 1096 |   IB_UVERBS_DEVICE_N_NOTIFY_CQ = 1 << 14, | 
 | 1097 |   IB_UVERBS_DEVICE_MEM_WINDOW = 1 << 17, | 
 | 1098 |   IB_UVERBS_DEVICE_UD_IP_CSUM = 1 << 18, | 
 | 1099 |   IB_UVERBS_DEVICE_XRC = 1 << 20, | 
 | 1100 |   IB_UVERBS_DEVICE_MEM_MGT_EXTENSIONS = 1 << 21, | 
 | 1101 |   IB_UVERBS_DEVICE_MEM_WINDOW_TYPE_2A = 1 << 23, | 
 | 1102 |   IB_UVERBS_DEVICE_MEM_WINDOW_TYPE_2B = 1 << 24, | 
 | 1103 |   IB_UVERBS_DEVICE_RC_IP_CSUM = 1 << 25, | 
 | 1104 |   IB_UVERBS_DEVICE_RAW_IP_CSUM = 1 << 26, | 
 | 1105 |   IB_UVERBS_DEVICE_MANAGED_FLOW_STEERING = 1 << 29, | 
 | 1106 |   IB_UVERBS_DEVICE_RAW_SCATTER_FCS = 1ULL << 34, | 
 | 1107 |   IB_UVERBS_DEVICE_PCI_WRITE_END_PADDING = 1ULL << 36, | 
 | 1108 | }; | 
 | 1109 | enum ib_uverbs_raw_packet_caps { | 
 | 1110 |   IB_UVERBS_RAW_PACKET_CAP_CVLAN_STRIPPING = 1 << 0, | 
 | 1111 |   IB_UVERBS_RAW_PACKET_CAP_SCATTER_FCS = 1 << 1, | 
 | 1112 |   IB_UVERBS_RAW_PACKET_CAP_IP_CSUM = 1 << 2, | 
 | 1113 |   IB_UVERBS_RAW_PACKET_CAP_DELAY_DROP = 1 << 3, | 
 | 1114 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1115 | #endif |