diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rdma/ib_verbs.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index d0c2dc034054..516647a22135 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -524,7 +524,8 @@ enum ib_cq_notify_flags { | |||
524 | }; | 524 | }; |
525 | 525 | ||
526 | enum ib_srq_type { | 526 | enum ib_srq_type { |
527 | IB_SRQT_BASIC | 527 | IB_SRQT_BASIC, |
528 | IB_SRQT_XRC | ||
528 | }; | 529 | }; |
529 | 530 | ||
530 | enum ib_srq_attr_mask { | 531 | enum ib_srq_attr_mask { |
@@ -543,6 +544,13 @@ struct ib_srq_init_attr { | |||
543 | void *srq_context; | 544 | void *srq_context; |
544 | struct ib_srq_attr attr; | 545 | struct ib_srq_attr attr; |
545 | enum ib_srq_type srq_type; | 546 | enum ib_srq_type srq_type; |
547 | |||
548 | union { | ||
549 | struct { | ||
550 | struct ib_xrcd *xrcd; | ||
551 | struct ib_cq *cq; | ||
552 | } xrc; | ||
553 | } ext; | ||
546 | }; | 554 | }; |
547 | 555 | ||
548 | struct ib_qp_cap { | 556 | struct ib_qp_cap { |
@@ -895,6 +903,14 @@ struct ib_srq { | |||
895 | void *srq_context; | 903 | void *srq_context; |
896 | enum ib_srq_type srq_type; | 904 | enum ib_srq_type srq_type; |
897 | atomic_t usecnt; | 905 | atomic_t usecnt; |
906 | |||
907 | union { | ||
908 | struct { | ||
909 | struct ib_xrcd *xrcd; | ||
910 | struct ib_cq *cq; | ||
911 | u32 srq_num; | ||
912 | } xrc; | ||
913 | } ext; | ||
898 | }; | 914 | }; |
899 | 915 | ||
900 | struct ib_qp { | 916 | struct ib_qp { |