]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Refresh of srq_ex
authorSean Hefty <sean.hefty@intel.com>
Wed, 19 Sep 2012 19:03:22 +0000 (12:03 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 19 Sep 2012 19:03:22 +0000 (12:03 -0700)
include/infiniband/verbs.h
src/cmd.c
src/verbs.c

index 58d6927dc6687c533da206ff700ac3fea36854f1..8756fed3a5822c99a44be9610a7cf139b3fbad2c 100644 (file)
@@ -443,7 +443,7 @@ enum ibv_srq_type {
 };
 
 enum ibv_srq_init_attr_mask {
-       IBV_SRQ_INIT_ATTR_SRQ_TYPE      = 1 << 0,
+       IBV_SRQ_INIT_ATTR_TYPE          = 1 << 0,
        IBV_SRQ_INIT_ATTR_XRCD          = 1 << 1,
        IBV_SRQ_INIT_ATTR_CQ            = 1 << 2,
        IBV_SRQ_INIT_ATTR_RESERVED      = 1 << 3
index 2a64a2b677ef071f79e5e49b03e3ea957014b7a5..58326c7d91dbf33038dda0bb6565d763f4cb8611 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -493,7 +493,7 @@ int ibv_cmd_create_srq_ex(struct ibv_pd *pd,
        cmd->max_sge     = attr_ex->attr.max_sge;
        cmd->srq_limit   = attr_ex->attr.srq_limit;
 
-       cmd->srq_type = (attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_SRQ_TYPE) ?
+       cmd->srq_type = (attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_TYPE) ?
                        attr_ex->srq_type : IBV_SRQT_BASIC;
        if (attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_XRCD)
                cmd->xrcd_handle = attr_ex->xrcd->handle;
index 2690b2904f07d9bb8ca3d0f18426823b0575f7c9..a645173978fe01d7eeffb5d1f55b973528803c89 100644 (file)
@@ -409,8 +409,8 @@ struct ibv_srq *__ibv_create_srq_ex(struct ibv_pd *pd,
                pthread_mutex_init(&srq->mutex, NULL);
                pthread_cond_init(&srq->cond, NULL);
 
-               srq->comp_mask |= IBV_SRQ_INIT_ATTR_SRQ_TYPE;
-               srq->srq_type = (srq_init_attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_SRQ_TYPE) ?
+               srq->comp_mask |= IBV_SRQ_INIT_ATTR_TYPE;
+               srq->srq_type = (srq_init_attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_TYPE) ?
                                srq_init_attr_ex->srq_type : IBV_SRQT_BASIC;
                if (srq_init_attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_XRCD) {
                        srq->comp_mask |= IBV_SRQ_XRCD;