From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.56.66 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796385019; b=QUIgjrz8bjJZ17GjPZwDN0rquccz2Aal5kKY1fKh0KxUJzYWfr5z+BGqy6zIU3yQg1uW 0YTyn53u3TsccXZoZ6KteJ255GrjGY2f8YO7jk7CVqv7fYRADlwYJMPCxP7wkkyF7MfKI +erQAH0KTBFbZ/rRoIlgVXMoKlySMplgi5dCS8CPpiUM/+nh2w0Kb0ew9iqHL1A5r9SVh CALa461jvqPzz/n2KGI9y7e3od0VDCxJnbqm+YgjuDXD1XCVDQ67NgKF9qMr+q3Zeu819 sLHHGnaYBaJ5sh21B4BNcbxoWJtbymaUeN8eQ+Bww7dprp9iHUF4RWwI9jH5lJYFZxA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385019; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:Content-Type: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=EqCAC0RNl+x2NpuKU1lnZbmog9R/uRyCfjCh4FImTdI=; b=vYxaOqIfAk741l8+qF/pFd4Y45gB8JOHbakqb3VhTGrD773Xi+GRFd9srgvwutS6Cukf 48FfrSTLpdOwCfO/dimmEfDET1+YReYjBkimRDxr2VAqnwDAshkJTPrhWnNYSCmF9IvUt EkkGgDWyr6ZfE1IVQ+bckdKLWBqxqiMjwwkzbc/3Yv/vTTBAAqdMRcbtn+N4LVsQ8PMOk 8i1fGAo4tOb4Hp8FkOrEGgejqiA8rvqCgMoGm5surbiv8hAx350263uyBbhelbnEBvtZr TcFs5JvxZQLG6cDuXt2WHmqy1QRYaJCoZMXZtM8DKG6vOgWbPHsNgMNr80qVW5Qn7dQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=AYCNNVrx; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.56.66 Received: from BN1PR04CU002.outbound.protection.outlook.com (mail-eastus2azon11010066.outbound.protection.outlook.com [52.101.56.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1248606A32D; Fri, 4 Dec 2026 11:50:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1248606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=AYCNNVrx ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V7pSpxz2TZbnqYlE7+eAN986fbHECFqficvc3Z08krjirOxJbSFB2ZjN9/1SNqdYTK/gLxGr83wCcEsSs1wlGCVPl+g2AHcFZqODjiaBCL83RWwo+l2sQCiJ2uCYuE/uLXj6uW35cxJPaR2lYsk2GuqYuu7ZRH2CTHzfSTlc2T9kpV8grmOMzQ5b9CxGHH2iq5jiPgE80fNJyLwhGgRubGyS4SGr9pCedQHbOvqQHIlr95u2EDmO4Z81c8Ke+al7U4ouG2R7qAK3dp3ULe8/W5AkVp8OtkgHY7CmhznKEetKffhKUJ+uJZZ/VIp2ASqKsPoUIgw9IkpX8pYg30Y/OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EqCAC0RNl+x2NpuKU1lnZbmog9R/uRyCfjCh4FImTdI=; b=mWGzq9Z6erBwU8yjfaX2oU0VTGh3wZ1ruAn6DTiHKojaVH20P675qp1j7Ck7GDe+ONk2VokT3/3wUIs51IIQ9CR23UkRlw3D6Miv5QHW+3WbrFH2Fy8fCngHj2szNq/DZlEMFVZ4FXp9nS+Zp+O2Pv1SlgToeOZq6kc5AeFe8RU+1iwlFqeof0lcmtSZyS9A6VUsJDTWjiF6j3FQYCwtWGkoGQw7zdzCShhu1rTlDgI29n96r1Q9BWgK5jpTp7xyKX0pZkin+YlsglIB4oS9r0f0Uw/L6pjekYVr5Aqd69F1oMLa0v1PvWJtvY/UswPHtYgI4dw5eiWklTmgCF4Ojw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=ziepe.ca smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EqCAC0RNl+x2NpuKU1lnZbmog9R/uRyCfjCh4FImTdI=; b=AYCNNVrxcD3l5E1ajF+zVk/0po26/0kONIRdrhe2OUK2b5ApM2nIY9OMSwyGVTF3hWAhZnibbreHTF1FEK4hF0aRjKWERjIsWPFhiI2AY5lwZyptwnuU92yPRAgi4VSwFl0k+TpCaMckPHZ124g3mozkfUJQmiZiH2WCN/g1fIc= Received: from CY5PR15CA0066.namprd15.prod.outlook.com (2603:10b6:930:18::10) by CY5PR12MB6575.namprd12.prod.outlook.com (2603:10b6:930:41::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Fri, 4 Dec 2026 11:50:14 +0000 Received: from CY5PEPF00000E86.namprd05.prod.outlook.com (2603:10b6:930:18:cafe::e) by CY5PR15CA0066.outlook.office365.com (2603:10b6:930:18::10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Fri, 4 Dec 2026 11:50:13 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by CY5PEPF00000E86.mail.protection.outlook.com (10.167.247.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 11:50:13 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Fri, 4 Dec 2026 05:50:09 -0600 Received: from xhdipdslab46.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Fri, 4 Dec 2026 05:50:07 -0600 From: Abhijit Gangurde To: , CC: , , , , "Abhijit Gangurde" , Jiri Pirko Subject: [for-next v5 4/4] RDMA/ionic: Accept QP SQ and RQ rings as ioctl umem attributes Date: Fri, 4 Dec 2026 17:19:43 +0530 Message-ID: <20261204114943.3530599-5-abhijit.gangurde@amd.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204114943.3530599-1-abhijit.gangurde@amd.com> References: <20261204114943.3530599-1-abhijit.gangurde@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PEPF00000E86:EE_|CY5PR12MB6575:EE_ X-MS-Office365-Filtering-Correlation-Id: 08e17059-dfbe-4d89-5941-08df51fcc218 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|376014|82310400026|22082099003|18002099003|56012099006|261028144727099003|261102123227099003|261026140227099003|10067099003|261021135927099003|261026121527099003|261021123027099003|261022105027099003|261021121427099003|261009223027099003|5023799004|11063799006; X-Microsoft-Antispam-Message-Info: hfoJPImxgcYPb1UX9JWVGMHlz1asLkKcvLX5tCcPhE46llSjzKI/4VN1GoAZ+aqwtx24oud5GVA6ox9ckme22sN1tg5B/dKhYnRAj6MFHukpOoOul6ckWTiFAHccSeFn36GV4BHUluM+wFFMXJUSoArWg1Z9qI7gjyv9Pc+L4paHqw4Z8uwiO51NFEKbDUpVju3rH+tk84O76uy53wkaBYq4wYI28eFXWCUr5WKRCvcvhbtheqYPvBP7qzzuDLaRWvKNb+/gJJCWAIVercRCEqEtBsM1E/NOOLyB7sJ6pApugXe/4wbUWt6EjWh35ygosl0Wj3DjYOSdK6SxtJiIzIjgo0G3sZ4g3U7dxdXYUIKKP5GsoBhf9IlgWtftqyRalMGeqbBWbcqRcVUYzDkpDwKUOnDDzS/JmIEiayYnNJ0tJb8R2SXtAt6ulyIFYjxrmNCAPZPdHuH7i5pyphmTDEkro9FOSfQ17ops1dbD+OwA8WoQmv99krCzJ2Q6JD4GF4vyg1MV0dxggQqjr52Xr2NLGhFOeijc1ugr1QJWnrnK1rIi6gGG1itL39hUiCCVZw2dQxKNg77ubu/cdVWo1bjfLMl1e/WcipgHsOuf3bG1Ufiplm5PkUjjUMvK2eHpIOImiS7cEtggN6n1f+iPH6JAX7SGldZ4mEsEHIa3dQAIKHqSbHO0EaxQ7uQEF1kogNIkY+0yJUQogYRP7SkORA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(376014)(82310400026)(22082099003)(18002099003)(56012099006)(261028144727099003)(261102123227099003)(261026140227099003)(10067099003)(261021135927099003)(261026121527099003)(261021123027099003)(261022105027099003)(261021121427099003)(261009223027099003)(5023799004)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SnY9JB3c8tphKKmr+R2mS1yCiDZFZfTioyteypZ6dQLCpNdSIzuCU0zKAu2u+4WtFzIxMkSKHIQef4eJWqLHxZwiWzCXYt7ODC5OBCXfW8MB1xR8Aex3qNvko56yzIRdivwWJ60RXSqIwgGoSsVc6NvQ2R+axY4XqZaFouMG8OyyXSxYKWFIhcHOLWyXR/Iaf7lfje8idzhxUig3or4m8C3WeA5AZXAPNLZovlq2/mBcatkr5hxL9eCQVvrEAqC1rP4aGqZXSsK1QOcqi9HqBWhv3LMC4ug28bPm3kDXG1OItb7K0Y56lP3kKayo4oYkdzeT9T+Shfj2YNXvIlhEVNwoqKjHhMsJQc2lH2TVgWx+DIUVrzmyZ5vatAb4BOFJ794XmeToZclYHcK0ygEIPHKZLI+5/iCY57Z9qSJBbdPofkcQj23qt3QBHpjCnlp4 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 11:50:13.9242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08e17059-dfbe-4d89-5941-08df51fcc218 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY5PEPF00000E86.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6575 Userspace passes each QP ring to create_qp as a struct ib_uverbs_buffer_desc on the core attributes UVERBS_ATTR_CREATE_QP_SQ_BUF_UMEM and UVERBS_ATTR_CREATE_QP_RQ_BUF_UMEM. Those attributes are already optional on UVERBS_METHOD_QP_CREATE. ionic_get_user_q_umem() now pins a ring with ib_umem_get_attr_or_va(). The core resolves the descriptor, so the ring can be a virtual address or a dma-buf and the driver does not look inside it. The qdesc address is not used when the attribute is present. Without the attribute the ring is pinned from the qdesc address, as before. A ring passed in the attribute must be exactly the qdesc size, so the page table given to the device covers the ring and nothing else. Any other length is rejected with -EINVAL. As for CQ rings, the pinned ring must map as whole PAGE_SIZE blocks, so a dma-buf whose DMA segments are not page aligned is rejected with -EINVAL. Access is 0, so the VA mapping direction stays DMA_TO_DEVICE. SRQ creation passes no attribute bundle and still pins the qdesc address. A QP on an SRQ has no RQ ring, so an RQ attribute on it is rejected with -EINVAL, like a non-zero RQ qdesc. Now that both CQ and QP rings are handled, advertise support with IONIC_CTX_CMASK_CQ_QP_BUF_UMEM in the get_context response. Bits 1 and 2 of comp_mask are already used by the out-of-tree ionic driver, so they are left reserved and the new capability takes bit 3. ionic_qp_req is not changed, so a provider that does not send the attributes still creates a QP on the write path. Reviewed-by: Jiri Pirko Signed-off-by: Abhijit Gangurde --- .../infiniband/hw/ionic/ionic_controlpath.c | 48 +++++++++++++------ include/uapi/rdma/ionic-abi.h | 2 + 2 files changed, 36 insertions(+), 14 deletions(-) diff --git a/drivers/infiniband/hw/ionic/ionic_controlpath.c b/drivers/infiniband/hw/ionic/ionic_controlpath.c index b15494ace1f4..02915fec79c7 100644 --- a/drivers/infiniband/hw/ionic/ionic_controlpath.c +++ b/drivers/infiniband/hw/ionic/ionic_controlpath.c @@ -466,7 +466,8 @@ int ionic_alloc_ucontext(struct ib_ucontext *ibctx, struct ib_udata *udata) resp.udma_count = dev->lif_cfg.udma_count; resp.expdb_mask = dev->lif_cfg.expdb_mask; resp.rcq_sign_bit = dev->lif_cfg.rcq_sign_bit; - resp.comp_mask |= IONIC_CTX_CMASK_IONIC_FLAGS; + resp.comp_mask |= IONIC_CTX_CMASK_IONIC_FLAGS | + IONIC_CTX_CMASK_CQ_QP_BUF_UMEM; if (dev->lif_cfg.sq_expdb) resp.expdb_qtypes |= IONIC_EXPDB_SQ; @@ -2013,7 +2014,8 @@ static void ionic_qp_sq_destroy_cmb(struct ionic_ibdev *dev, } static int ionic_get_user_q_umem(struct ionic_ibdev *dev, struct ionic_qdesc *q, - struct ib_umem **umem_out) + const struct uverbs_attr_bundle *attrs, + u16 attr_id, struct ib_umem **umem_out) { struct ib_umem *umem; int rc; @@ -2022,12 +2024,14 @@ static int ionic_get_user_q_umem(struct ionic_ibdev *dev, struct ionic_qdesc *q, if (rc) return rc; - umem = ib_umem_get_va(&dev->ibdev, q->addr, q->size, 0); + umem = ib_umem_get_attr_or_va(&dev->ibdev, attrs, attr_id, + q->addr, q->size, 0); if (IS_ERR(umem)) return PTR_ERR(umem); - /* The ring is given to the device as whole pages */ - if (ib_umem_offset(umem)) { + /* The device is given whole pages, and only those of the ring */ + if (umem->length != q->size || ib_umem_offset(umem) || + !ib_umem_find_best_pgsz(umem, PAGE_SIZE, 0)) { ib_umem_release(umem); return -EINVAL; } @@ -2039,7 +2043,8 @@ static int ionic_get_user_q_umem(struct ionic_ibdev *dev, struct ionic_qdesc *q, static int ionic_qp_sq_init(struct ionic_ibdev *dev, struct ionic_ctx *ctx, struct ionic_qp *qp, struct ionic_qdesc *sq, struct ionic_tbl_buf *buf, int max_wr, int max_sge, - int max_data, int sq_spec, struct ib_udata *udata) + int max_data, int sq_spec, struct ib_udata *udata, + const struct uverbs_attr_bundle *attrs) { u32 wqe_size; int rc = 0; @@ -2083,7 +2088,9 @@ static int ionic_qp_sq_init(struct ionic_ibdev *dev, struct ionic_ctx *ctx, return rc; if (udata) { - rc = ionic_get_user_q_umem(dev, sq, &qp->sq_umem); + rc = ionic_get_user_q_umem(dev, sq, attrs, + UVERBS_ATTR_CREATE_QP_SQ_BUF_UMEM, + &qp->sq_umem); if (rc) return rc; @@ -2298,7 +2305,8 @@ static void ionic_rq_destroy_cmb(struct ionic_ibdev *dev, static int ionic_rq_init(struct ionic_ibdev *dev, struct ionic_ctx *ctx, struct ionic_rq *rq, struct ionic_qdesc *qdesc, struct ionic_tbl_buf *buf, int max_wr, int max_sge, - int rq_spec, struct ib_udata *udata) + int rq_spec, struct ib_udata *udata, + const struct uverbs_attr_bundle *attrs) { u32 wqe_size; int rc = 0; @@ -2316,7 +2324,9 @@ static int ionic_rq_init(struct ionic_ibdev *dev, struct ionic_ctx *ctx, return rc; if (udata) { - rc = ionic_get_user_q_umem(dev, qdesc, &rq->umem); + rc = ionic_get_user_q_umem(dev, qdesc, attrs, + UVERBS_ATTR_CREATE_QP_RQ_BUF_UMEM, + &rq->umem); if (rc) return rc; @@ -2414,6 +2424,7 @@ int ionic_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr, struct ionic_qp *qp = to_ionic_qp(ibqp); struct ionic_ctx *ctx = rdma_udata_to_drv_context(udata, struct ionic_ctx, ibctx); + const struct uverbs_attr_bundle *attrs = NULL; struct ionic_qp_resp resp = {}; struct ionic_qp_req req = {}; struct ionic_cq *cq; @@ -2422,6 +2433,8 @@ int ionic_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr, int rc; if (udata) { + attrs = rdma_udata_to_uverbs_attr_bundle(udata); + rc = ib_copy_validate_udata_in(udata, req, rsvd); if (rc) return rc; @@ -2500,7 +2513,8 @@ int ionic_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr, rc = ionic_qp_sq_init(dev, ctx, qp, &req.sq, &sq_buf, attr->cap.max_send_wr, attr->cap.max_send_sge, - attr->cap.max_inline_data, req.sq_spec, udata); + attr->cap.max_inline_data, req.sq_spec, udata, + attrs); if (rc) goto err_sq; @@ -2509,8 +2523,14 @@ int ionic_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr, rq_buf.tbl_limit = 0; rq_buf.tbl_pages = 0; - if (udata) - rc = ionic_validate_qdesc_zero(&req.rq); + /* A QP on an SRQ has no RQ ring of its own */ + if (udata) { + if (uverbs_attr_is_valid(attrs, + UVERBS_ATTR_CREATE_QP_RQ_BUF_UMEM)) + rc = -EINVAL; + else + rc = ionic_validate_qdesc_zero(&req.rq); + } } else { if (udata && (req.rq_cmb & IONIC_CMB_ENABLE)) qp->rq.cmb = req.rq_cmb; @@ -2519,7 +2539,7 @@ int ionic_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr, qp->rq.qid = qp->qpid; rc = ionic_rq_init(dev, ctx, &qp->rq, &req.rq, &rq_buf, attr->cap.max_recv_wr, attr->cap.max_recv_sge, - req.rq_spec, udata); + req.rq_spec, udata, attrs); } if (rc) goto err_rq; @@ -3126,7 +3146,7 @@ int ionic_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *attr, rc = ionic_rq_init(dev, ctx, &srq->rq, &req.rq, &buf, attr->attr.max_wr, attr->attr.max_sge, - req.rq_spec, udata); + req.rq_spec, udata, NULL); if (rc) return rc; diff --git a/include/uapi/rdma/ionic-abi.h b/include/uapi/rdma/ionic-abi.h index ac48fcd19a4f..abfc4c1e6001 100644 --- a/include/uapi/rdma/ionic-abi.h +++ b/include/uapi/rdma/ionic-abi.h @@ -24,6 +24,8 @@ enum ionic_ctx_resp_comp_mask { IONIC_CTX_CMASK_IONIC_FLAGS = 1 << 0, + /* bits 1 and 2 are reserved */ + IONIC_CTX_CMASK_CQ_QP_BUF_UMEM = 1 << 3, }; struct ionic_ctx_req { -- 2.43.0