};
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
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;
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;