diff options
| author | Sean Hefty <sean.hefty@intel.com> | 2011-05-23 19:31:36 -0400 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2011-10-13 12:13:26 -0400 |
| commit | 96104eda01695a26da2c8f7423ec0ba3509c8c97 (patch) | |
| tree | 04e38bfe564245ebd9a62738d54a111b2d24da4a /include/rdma | |
| parent | 59991f94eb32e954aa767f659eb642461e9e8b37 (diff) | |
RDMA/core: Add SRQ type field
Currently, there is only a single ("basic") type of SRQ, but with XRC
support we will add a second. Prepare for this by defining an SRQ type
and setting all current users to IB_SRQT_BASIC.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
| -rw-r--r-- | include/rdma/ib_verbs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index d2a5c9b991d1..d0c2dc034054 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
| @@ -523,6 +523,10 @@ enum ib_cq_notify_flags { | |||
| 523 | IB_CQ_REPORT_MISSED_EVENTS = 1 << 2, | 523 | IB_CQ_REPORT_MISSED_EVENTS = 1 << 2, |
| 524 | }; | 524 | }; |
| 525 | 525 | ||
| 526 | enum ib_srq_type { | ||
| 527 | IB_SRQT_BASIC | ||
| 528 | }; | ||
| 529 | |||
| 526 | enum ib_srq_attr_mask { | 530 | enum ib_srq_attr_mask { |
| 527 | IB_SRQ_MAX_WR = 1 << 0, | 531 | IB_SRQ_MAX_WR = 1 << 0, |
| 528 | IB_SRQ_LIMIT = 1 << 1, | 532 | IB_SRQ_LIMIT = 1 << 1, |
| @@ -538,6 +542,7 @@ struct ib_srq_init_attr { | |||
| 538 | void (*event_handler)(struct ib_event *, void *); | 542 | void (*event_handler)(struct ib_event *, void *); |
| 539 | void *srq_context; | 543 | void *srq_context; |
| 540 | struct ib_srq_attr attr; | 544 | struct ib_srq_attr attr; |
| 545 | enum ib_srq_type srq_type; | ||
| 541 | }; | 546 | }; |
| 542 | 547 | ||
| 543 | struct ib_qp_cap { | 548 | struct ib_qp_cap { |
| @@ -888,6 +893,7 @@ struct ib_srq { | |||
| 888 | struct ib_uobject *uobject; | 893 | struct ib_uobject *uobject; |
| 889 | void (*event_handler)(struct ib_event *, void *); | 894 | void (*event_handler)(struct ib_event *, void *); |
| 890 | void *srq_context; | 895 | void *srq_context; |
| 896 | enum ib_srq_type srq_type; | ||
| 891 | atomic_t usecnt; | 897 | atomic_t usecnt; |
| 892 | }; | 898 | }; |
| 893 | 899 | ||
