]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Refresh of srq_ex
authorSean Hefty <sean.hefty@intel.com>
Wed, 26 Sep 2012 16:10:39 +0000 (09:10 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 26 Sep 2012 16:10:39 +0000 (09:10 -0700)
include/infiniband/driver.h
include/infiniband/verbs.h

index 46190fe8c7cefbe82a29e2455cd2f6b9e66fadd5..78f71110d0e64a4ee68390e946ac767b2f333cd4 100644 (file)
@@ -64,6 +64,23 @@ struct verbs_xrcd {
        uint32_t                handle;
 };
 
+enum verbs_srq_mask {
+       IBV_SRQ_TYPE            = 1 << 0,
+       IBV_SRQ_XRCD            = 1 << 1,
+       IBV_SRQ_CQ              = 1 << 2,
+       IBV_SRQ_NUM             = 1 << 3,
+       IBV_SRQ_RESERVED        = 1 << 4
+};
+
+struct verbs_srq {
+       struct ibv_srq          srq;
+       uint32_t                comp_mask;
+       enum ibv_srq_type       srq_type;
+       struct ibv_xrcd        *xrcd;
+       struct ibv_cq          *cq;
+       uint32_t                srq_num;
+};
+
 typedef struct ibv_device *(*ibv_driver_init_func)(const char *uverbs_sys_path,
                                                   int abi_version);
 
index d3c666916673e3165e80c27540aacf119a1378e0..e1dcda8ec68aa1726d97b8d200f2f21d22c2f489 100644 (file)
@@ -594,14 +594,6 @@ struct ibv_mw_bind {
        int                     mw_access_flags;
 };
 
-enum ibv_srq_mask {
-       IBV_SRQ_TYPE            = 1 << 0,
-       IBV_SRQ_XRCD            = 1 << 1,
-       IBV_SRQ_CQ              = 1 << 2,
-       IBV_SRQ_NUM             = 1 << 3,
-       IBV_SRQ_RESERVED        = 1 << 4
-};
-
 struct ibv_srq {
        struct ibv_context     *context;
        void                   *srq_context;
@@ -611,12 +603,6 @@ struct ibv_srq {
        pthread_mutex_t         mutex;
        pthread_cond_t          cond;
        uint32_t                events_completed;
-
-       uint32_t                comp_mask;
-       enum ibv_srq_type       srq_type;
-       struct ibv_xrcd        *xrcd;
-       struct ibv_cq          *cq;
-       uint32_t                srq_num;
 };
 
 struct ibv_qp {