RDMA/bnxt_re: Update ABI to pass wqe-mode to user space
[linux-2.6-microblaze.git] / drivers / infiniband / hw / bnxt_re / ib_verbs.c
index a113d8d..5955713 100644 (file)
@@ -3882,6 +3882,9 @@ int bnxt_re_alloc_ucontext(struct ib_ucontext *ctx, struct ib_udata *udata)
        resp.max_cqd = dev_attr->max_cq_wqes;
        resp.rsvd    = 0;
 
+       resp.comp_mask |= BNXT_RE_UCNTX_CMASK_HAVE_MODE;
+       resp.mode = rdev->chip_ctx->modes.wqe_mode;
+
        rc = ib_copy_to_udata(udata, &resp, min(udata->outlen, sizeof(resp)));
        if (rc) {
                ibdev_err(ibdev, "Failed to copy user context");