ib_user_verbs.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. /*
  2. * Copyright (c) 2005 Topspin Communications. All rights reserved.
  3. * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved.
  4. * Copyright (c) 2005 PathScale, Inc. All rights reserved.
  5. * Copyright (c) 2006 Mellanox Technologies. All rights reserved.
  6. *
  7. * This software is available to you under a choice of one of two
  8. * licenses. You may choose to be licensed under the terms of the GNU
  9. * General Public License (GPL) Version 2, available from the file
  10. * COPYING in the main directory of this source tree, or the
  11. * OpenIB.org BSD license below:
  12. *
  13. * Redistribution and use in source and binary forms, with or
  14. * without modification, are permitted provided that the following
  15. * conditions are met:
  16. *
  17. * - Redistributions of source code must retain the above
  18. * copyright notice, this list of conditions and the following
  19. * disclaimer.
  20. *
  21. * - Redistributions in binary form must reproduce the above
  22. * copyright notice, this list of conditions and the following
  23. * disclaimer in the documentation and/or other materials
  24. * provided with the distribution.
  25. *
  26. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  27. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  28. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  29. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  30. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  31. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  32. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  33. * SOFTWARE.
  34. */
  35. #ifndef IB_USER_VERBS_H
  36. #define IB_USER_VERBS_H
  37. #include <linux/types.h>
  38. /*
  39. * Increment this value if any changes that break userspace ABI
  40. * compatibility are made.
  41. */
  42. #define IB_USER_VERBS_ABI_VERSION 6
  43. enum {
  44. IB_USER_VERBS_CMD_GET_CONTEXT,
  45. IB_USER_VERBS_CMD_QUERY_DEVICE,
  46. IB_USER_VERBS_CMD_QUERY_PORT,
  47. IB_USER_VERBS_CMD_ALLOC_PD,
  48. IB_USER_VERBS_CMD_DEALLOC_PD,
  49. IB_USER_VERBS_CMD_CREATE_AH,
  50. IB_USER_VERBS_CMD_MODIFY_AH,
  51. IB_USER_VERBS_CMD_QUERY_AH,
  52. IB_USER_VERBS_CMD_DESTROY_AH,
  53. IB_USER_VERBS_CMD_REG_MR,
  54. IB_USER_VERBS_CMD_REG_SMR,
  55. IB_USER_VERBS_CMD_REREG_MR,
  56. IB_USER_VERBS_CMD_QUERY_MR,
  57. IB_USER_VERBS_CMD_DEREG_MR,
  58. IB_USER_VERBS_CMD_ALLOC_MW,
  59. IB_USER_VERBS_CMD_BIND_MW,
  60. IB_USER_VERBS_CMD_DEALLOC_MW,
  61. IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL,
  62. IB_USER_VERBS_CMD_CREATE_CQ,
  63. IB_USER_VERBS_CMD_RESIZE_CQ,
  64. IB_USER_VERBS_CMD_DESTROY_CQ,
  65. IB_USER_VERBS_CMD_POLL_CQ,
  66. IB_USER_VERBS_CMD_PEEK_CQ,
  67. IB_USER_VERBS_CMD_REQ_NOTIFY_CQ,
  68. IB_USER_VERBS_CMD_CREATE_QP,
  69. IB_USER_VERBS_CMD_QUERY_QP,
  70. IB_USER_VERBS_CMD_MODIFY_QP,
  71. IB_USER_VERBS_CMD_DESTROY_QP,
  72. IB_USER_VERBS_CMD_POST_SEND,
  73. IB_USER_VERBS_CMD_POST_RECV,
  74. IB_USER_VERBS_CMD_ATTACH_MCAST,
  75. IB_USER_VERBS_CMD_DETACH_MCAST,
  76. IB_USER_VERBS_CMD_CREATE_SRQ,
  77. IB_USER_VERBS_CMD_MODIFY_SRQ,
  78. IB_USER_VERBS_CMD_QUERY_SRQ,
  79. IB_USER_VERBS_CMD_DESTROY_SRQ,
  80. IB_USER_VERBS_CMD_POST_SRQ_RECV,
  81. IB_USER_VERBS_CMD_OPEN_XRCD,
  82. IB_USER_VERBS_CMD_CLOSE_XRCD
  83. };
  84. /*
  85. * Make sure that all structs defined in this file remain laid out so
  86. * that they pack the same way on 32-bit and 64-bit architectures (to
  87. * avoid incompatibility between 32-bit userspace and 64-bit kernels).
  88. * Specifically:
  89. * - Do not use pointer types -- pass pointers in __u64 instead.
  90. * - Make sure that any structure larger than 4 bytes is padded to a
  91. * multiple of 8 bytes. Otherwise the structure size will be
  92. * different between 32-bit and 64-bit architectures.
  93. */
  94. struct ib_uverbs_async_event_desc {
  95. __u64 element;
  96. __u32 event_type; /* enum ib_event_type */
  97. __u32 reserved;
  98. };
  99. struct ib_uverbs_comp_event_desc {
  100. __u64 cq_handle;
  101. };
  102. /*
  103. * All commands from userspace should start with a __u32 command field
  104. * followed by __u16 in_words and out_words fields (which give the
  105. * length of the command block and response buffer if any in 32-bit
  106. * words). The kernel driver will read these fields first and read
  107. * the rest of the command struct based on these value.
  108. */
  109. struct ib_uverbs_cmd_hdr {
  110. __u32 command;
  111. __u16 in_words;
  112. __u16 out_words;
  113. };
  114. struct ib_uverbs_get_context {
  115. __u64 response;
  116. __u64 driver_data[0];
  117. };
  118. struct ib_uverbs_get_context_resp {
  119. __u32 async_fd;
  120. __u32 num_comp_vectors;
  121. };
  122. struct ib_uverbs_query_device {
  123. __u64 response;
  124. __u64 driver_data[0];
  125. };
  126. struct ib_uverbs_query_device_resp {
  127. __u64 fw_ver;
  128. __be64 node_guid;
  129. __be64 sys_image_guid;
  130. __u64 max_mr_size;
  131. __u64 page_size_cap;
  132. __u32 vendor_id;
  133. __u32 vendor_part_id;
  134. __u32 hw_ver;
  135. __u32 max_qp;
  136. __u32 max_qp_wr;
  137. __u32 device_cap_flags;
  138. __u32 max_sge;
  139. __u32 max_sge_rd;
  140. __u32 max_cq;
  141. __u32 max_cqe;
  142. __u32 max_mr;
  143. __u32 max_pd;
  144. __u32 max_qp_rd_atom;
  145. __u32 max_ee_rd_atom;
  146. __u32 max_res_rd_atom;
  147. __u32 max_qp_init_rd_atom;
  148. __u32 max_ee_init_rd_atom;
  149. __u32 atomic_cap;
  150. __u32 max_ee;
  151. __u32 max_rdd;
  152. __u32 max_mw;
  153. __u32 max_raw_ipv6_qp;
  154. __u32 max_raw_ethy_qp;
  155. __u32 max_mcast_grp;
  156. __u32 max_mcast_qp_attach;
  157. __u32 max_total_mcast_qp_attach;
  158. __u32 max_ah;
  159. __u32 max_fmr;
  160. __u32 max_map_per_fmr;
  161. __u32 max_srq;
  162. __u32 max_srq_wr;
  163. __u32 max_srq_sge;
  164. __u16 max_pkeys;
  165. __u8 local_ca_ack_delay;
  166. __u8 phys_port_cnt;
  167. __u8 reserved[4];
  168. };
  169. struct ib_uverbs_query_port {
  170. __u64 response;
  171. __u8 port_num;
  172. __u8 reserved[7];
  173. __u64 driver_data[0];
  174. };
  175. struct ib_uverbs_query_port_resp {
  176. __u32 port_cap_flags;
  177. __u32 max_msg_sz;
  178. __u32 bad_pkey_cntr;
  179. __u32 qkey_viol_cntr;
  180. __u32 gid_tbl_len;
  181. __u16 pkey_tbl_len;
  182. __u16 lid;
  183. __u16 sm_lid;
  184. __u8 state;
  185. __u8 max_mtu;
  186. __u8 active_mtu;
  187. __u8 lmc;
  188. __u8 max_vl_num;
  189. __u8 sm_sl;
  190. __u8 subnet_timeout;
  191. __u8 init_type_reply;
  192. __u8 active_width;
  193. __u8 active_speed;
  194. __u8 phys_state;
  195. __u8 link_layer;
  196. __u8 reserved[2];
  197. };
  198. struct ib_uverbs_alloc_pd {
  199. __u64 response;
  200. __u64 driver_data[0];
  201. };
  202. struct ib_uverbs_alloc_pd_resp {
  203. __u32 pd_handle;
  204. };
  205. struct ib_uverbs_dealloc_pd {
  206. __u32 pd_handle;
  207. };
  208. struct ib_uverbs_open_xrcd {
  209. __u64 response;
  210. __u32 fd;
  211. __u32 oflags;
  212. __u64 driver_data[0];
  213. };
  214. struct ib_uverbs_open_xrcd_resp {
  215. __u32 xrcd_handle;
  216. };
  217. struct ib_uverbs_close_xrcd {
  218. __u32 xrcd_handle;
  219. };
  220. struct ib_uverbs_reg_mr {
  221. __u64 response;
  222. __u64 start;
  223. __u64 length;
  224. __u64 hca_va;
  225. __u32 pd_handle;
  226. __u32 access_flags;
  227. __u64 driver_data[0];
  228. };
  229. struct ib_uverbs_reg_mr_resp {
  230. __u32 mr_handle;
  231. __u32 lkey;
  232. __u32 rkey;
  233. };
  234. struct ib_uverbs_dereg_mr {
  235. __u32 mr_handle;
  236. };
  237. struct ib_uverbs_create_comp_channel {
  238. __u64 response;
  239. };
  240. struct ib_uverbs_create_comp_channel_resp {
  241. __u32 fd;
  242. };
  243. struct ib_uverbs_create_cq {
  244. __u64 response;
  245. __u64 user_handle;
  246. __u32 cqe;
  247. __u32 comp_vector;
  248. __s32 comp_channel;
  249. __u32 reserved;
  250. __u64 driver_data[0];
  251. };
  252. struct ib_uverbs_create_cq_resp {
  253. __u32 cq_handle;
  254. __u32 cqe;
  255. };
  256. struct ib_uverbs_resize_cq {
  257. __u64 response;
  258. __u32 cq_handle;
  259. __u32 cqe;
  260. __u64 driver_data[0];
  261. };
  262. struct ib_uverbs_resize_cq_resp {
  263. __u32 cqe;
  264. __u32 reserved;
  265. __u64 driver_data[0];
  266. };
  267. struct ib_uverbs_poll_cq {
  268. __u64 response;
  269. __u32 cq_handle;
  270. __u32 ne;
  271. };
  272. struct ib_uverbs_wc {
  273. __u64 wr_id;
  274. __u32 status;
  275. __u32 opcode;
  276. __u32 vendor_err;
  277. __u32 byte_len;
  278. union {
  279. __u32 imm_data;
  280. __u32 invalidate_rkey;
  281. } ex;
  282. __u32 qp_num;
  283. __u32 src_qp;
  284. __u32 wc_flags;
  285. __u16 pkey_index;
  286. __u16 slid;
  287. __u8 sl;
  288. __u8 dlid_path_bits;
  289. __u8 port_num;
  290. __u8 reserved;
  291. };
  292. struct ib_uverbs_poll_cq_resp {
  293. __u32 count;
  294. __u32 reserved;
  295. struct ib_uverbs_wc wc[0];
  296. };
  297. struct ib_uverbs_req_notify_cq {
  298. __u32 cq_handle;
  299. __u32 solicited_only;
  300. };
  301. struct ib_uverbs_destroy_cq {
  302. __u64 response;
  303. __u32 cq_handle;
  304. __u32 reserved;
  305. };
  306. struct ib_uverbs_destroy_cq_resp {
  307. __u32 comp_events_reported;
  308. __u32 async_events_reported;
  309. };
  310. struct ib_uverbs_global_route {
  311. __u8 dgid[16];
  312. __u32 flow_label;
  313. __u8 sgid_index;
  314. __u8 hop_limit;
  315. __u8 traffic_class;
  316. __u8 reserved;
  317. };
  318. struct ib_uverbs_ah_attr {
  319. struct ib_uverbs_global_route grh;
  320. __u16 dlid;
  321. __u8 sl;
  322. __u8 src_path_bits;
  323. __u8 static_rate;
  324. __u8 is_global;
  325. __u8 port_num;
  326. __u8 reserved;
  327. };
  328. struct ib_uverbs_qp_attr {
  329. __u32 qp_attr_mask;
  330. __u32 qp_state;
  331. __u32 cur_qp_state;
  332. __u32 path_mtu;
  333. __u32 path_mig_state;
  334. __u32 qkey;
  335. __u32 rq_psn;
  336. __u32 sq_psn;
  337. __u32 dest_qp_num;
  338. __u32 qp_access_flags;
  339. struct ib_uverbs_ah_attr ah_attr;
  340. struct ib_uverbs_ah_attr alt_ah_attr;
  341. /* ib_qp_cap */
  342. __u32 max_send_wr;
  343. __u32 max_recv_wr;
  344. __u32 max_send_sge;
  345. __u32 max_recv_sge;
  346. __u32 max_inline_data;
  347. __u16 pkey_index;
  348. __u16 alt_pkey_index;
  349. __u8 en_sqd_async_notify;
  350. __u8 sq_draining;
  351. __u8 max_rd_atomic;
  352. __u8 max_dest_rd_atomic;
  353. __u8 min_rnr_timer;
  354. __u8 port_num;
  355. __u8 timeout;
  356. __u8 retry_cnt;
  357. __u8 rnr_retry;
  358. __u8 alt_port_num;
  359. __u8 alt_timeout;
  360. __u8 reserved[5];
  361. };
  362. struct ib_uverbs_create_qp {
  363. __u64 response;
  364. __u64 user_handle;
  365. __u32 pd_handle;
  366. __u32 send_cq_handle;
  367. __u32 recv_cq_handle;
  368. __u32 srq_handle;
  369. __u32 max_send_wr;
  370. __u32 max_recv_wr;
  371. __u32 max_send_sge;
  372. __u32 max_recv_sge;
  373. __u32 max_inline_data;
  374. __u8 sq_sig_all;
  375. __u8 qp_type;
  376. __u8 is_srq;
  377. __u8 reserved;
  378. __u64 driver_data[0];
  379. };
  380. struct ib_uverbs_create_qp_resp {
  381. __u32 qp_handle;
  382. __u32 qpn;
  383. __u32 max_send_wr;
  384. __u32 max_recv_wr;
  385. __u32 max_send_sge;
  386. __u32 max_recv_sge;
  387. __u32 max_inline_data;
  388. __u32 reserved;
  389. };
  390. /*
  391. * This struct needs to remain a multiple of 8 bytes to keep the
  392. * alignment of the modify QP parameters.
  393. */
  394. struct ib_uverbs_qp_dest {
  395. __u8 dgid[16];
  396. __u32 flow_label;
  397. __u16 dlid;
  398. __u16 reserved;
  399. __u8 sgid_index;
  400. __u8 hop_limit;
  401. __u8 traffic_class;
  402. __u8 sl;
  403. __u8 src_path_bits;
  404. __u8 static_rate;
  405. __u8 is_global;
  406. __u8 port_num;
  407. };
  408. struct ib_uverbs_query_qp {
  409. __u64 response;
  410. __u32 qp_handle;
  411. __u32 attr_mask;
  412. __u64 driver_data[0];
  413. };
  414. struct ib_uverbs_query_qp_resp {
  415. struct ib_uverbs_qp_dest dest;
  416. struct ib_uverbs_qp_dest alt_dest;
  417. __u32 max_send_wr;
  418. __u32 max_recv_wr;
  419. __u32 max_send_sge;
  420. __u32 max_recv_sge;
  421. __u32 max_inline_data;
  422. __u32 qkey;
  423. __u32 rq_psn;
  424. __u32 sq_psn;
  425. __u32 dest_qp_num;
  426. __u32 qp_access_flags;
  427. __u16 pkey_index;
  428. __u16 alt_pkey_index;
  429. __u8 qp_state;
  430. __u8 cur_qp_state;
  431. __u8 path_mtu;
  432. __u8 path_mig_state;
  433. __u8 sq_draining;
  434. __u8 max_rd_atomic;
  435. __u8 max_dest_rd_atomic;
  436. __u8 min_rnr_timer;
  437. __u8 port_num;
  438. __u8 timeout;
  439. __u8 retry_cnt;
  440. __u8 rnr_retry;
  441. __u8 alt_port_num;
  442. __u8 alt_timeout;
  443. __u8 sq_sig_all;
  444. __u8 reserved[5];
  445. __u64 driver_data[0];
  446. };
  447. struct ib_uverbs_modify_qp {
  448. struct ib_uverbs_qp_dest dest;
  449. struct ib_uverbs_qp_dest alt_dest;
  450. __u32 qp_handle;
  451. __u32 attr_mask;
  452. __u32 qkey;
  453. __u32 rq_psn;
  454. __u32 sq_psn;
  455. __u32 dest_qp_num;
  456. __u32 qp_access_flags;
  457. __u16 pkey_index;
  458. __u16 alt_pkey_index;
  459. __u8 qp_state;
  460. __u8 cur_qp_state;
  461. __u8 path_mtu;
  462. __u8 path_mig_state;
  463. __u8 en_sqd_async_notify;
  464. __u8 max_rd_atomic;
  465. __u8 max_dest_rd_atomic;
  466. __u8 min_rnr_timer;
  467. __u8 port_num;
  468. __u8 timeout;
  469. __u8 retry_cnt;
  470. __u8 rnr_retry;
  471. __u8 alt_port_num;
  472. __u8 alt_timeout;
  473. __u8 reserved[2];
  474. __u64 driver_data[0];
  475. };
  476. struct ib_uverbs_modify_qp_resp {
  477. };
  478. struct ib_uverbs_destroy_qp {
  479. __u64 response;
  480. __u32 qp_handle;
  481. __u32 reserved;
  482. };
  483. struct ib_uverbs_destroy_qp_resp {
  484. __u32 events_reported;
  485. };
  486. /*
  487. * The ib_uverbs_sge structure isn't used anywhere, since we assume
  488. * the ib_sge structure is packed the same way on 32-bit and 64-bit
  489. * architectures in both kernel and user space. It's just here to
  490. * document the ABI.
  491. */
  492. struct ib_uverbs_sge {
  493. __u64 addr;
  494. __u32 length;
  495. __u32 lkey;
  496. };
  497. struct ib_uverbs_send_wr {
  498. __u64 wr_id;
  499. __u32 num_sge;
  500. __u32 opcode;
  501. __u32 send_flags;
  502. union {
  503. __u32 imm_data;
  504. __u32 invalidate_rkey;
  505. } ex;
  506. union {
  507. struct {
  508. __u64 remote_addr;
  509. __u32 rkey;
  510. __u32 reserved;
  511. } rdma;
  512. struct {
  513. __u64 remote_addr;
  514. __u64 compare_add;
  515. __u64 swap;
  516. __u32 rkey;
  517. __u32 reserved;
  518. } atomic;
  519. struct {
  520. __u32 ah;
  521. __u32 remote_qpn;
  522. __u32 remote_qkey;
  523. __u32 reserved;
  524. } ud;
  525. } wr;
  526. };
  527. struct ib_uverbs_post_send {
  528. __u64 response;
  529. __u32 qp_handle;
  530. __u32 wr_count;
  531. __u32 sge_count;
  532. __u32 wqe_size;
  533. struct ib_uverbs_send_wr send_wr[0];
  534. };
  535. struct ib_uverbs_post_send_resp {
  536. __u32 bad_wr;
  537. };
  538. struct ib_uverbs_recv_wr {
  539. __u64 wr_id;
  540. __u32 num_sge;
  541. __u32 reserved;
  542. };
  543. struct ib_uverbs_post_recv {
  544. __u64 response;
  545. __u32 qp_handle;
  546. __u32 wr_count;
  547. __u32 sge_count;
  548. __u32 wqe_size;
  549. struct ib_uverbs_recv_wr recv_wr[0];
  550. };
  551. struct ib_uverbs_post_recv_resp {
  552. __u32 bad_wr;
  553. };
  554. struct ib_uverbs_post_srq_recv {
  555. __u64 response;
  556. __u32 srq_handle;
  557. __u32 wr_count;
  558. __u32 sge_count;
  559. __u32 wqe_size;
  560. struct ib_uverbs_recv_wr recv[0];
  561. };
  562. struct ib_uverbs_post_srq_recv_resp {
  563. __u32 bad_wr;
  564. };
  565. struct ib_uverbs_create_ah {
  566. __u64 response;
  567. __u64 user_handle;
  568. __u32 pd_handle;
  569. __u32 reserved;
  570. struct ib_uverbs_ah_attr attr;
  571. };
  572. struct ib_uverbs_create_ah_resp {
  573. __u32 ah_handle;
  574. };
  575. struct ib_uverbs_destroy_ah {
  576. __u32 ah_handle;
  577. };
  578. struct ib_uverbs_attach_mcast {
  579. __u8 gid[16];
  580. __u32 qp_handle;
  581. __u16 mlid;
  582. __u16 reserved;
  583. __u64 driver_data[0];
  584. };
  585. struct ib_uverbs_detach_mcast {
  586. __u8 gid[16];
  587. __u32 qp_handle;
  588. __u16 mlid;
  589. __u16 reserved;
  590. __u64 driver_data[0];
  591. };
  592. struct ib_uverbs_create_srq {
  593. __u64 response;
  594. __u64 user_handle;
  595. __u32 pd_handle;
  596. __u32 max_wr;
  597. __u32 max_sge;
  598. __u32 srq_limit;
  599. __u64 driver_data[0];
  600. };
  601. struct ib_uverbs_create_srq_resp {
  602. __u32 srq_handle;
  603. __u32 max_wr;
  604. __u32 max_sge;
  605. __u32 reserved;
  606. };
  607. struct ib_uverbs_modify_srq {
  608. __u32 srq_handle;
  609. __u32 attr_mask;
  610. __u32 max_wr;
  611. __u32 srq_limit;
  612. __u64 driver_data[0];
  613. };
  614. struct ib_uverbs_query_srq {
  615. __u64 response;
  616. __u32 srq_handle;
  617. __u32 reserved;
  618. __u64 driver_data[0];
  619. };
  620. struct ib_uverbs_query_srq_resp {
  621. __u32 max_wr;
  622. __u32 max_sge;
  623. __u32 srq_limit;
  624. __u32 reserved;
  625. };
  626. struct ib_uverbs_destroy_srq {
  627. __u64 response;
  628. __u32 srq_handle;
  629. __u32 reserved;
  630. };
  631. struct ib_uverbs_destroy_srq_resp {
  632. __u32 events_reported;
  633. };
  634. #endif /* IB_USER_VERBS_H */