From nobody Thu Apr 2 22:12:32 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DB8235B130; Fri, 13 Feb 2026 11:00:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770980423; cv=none; b=nPkLXJx1S5Ida3z4NcbcMf5hKHmrqQDDtwcrha/HbHF5O2jNIpyKGnnwUnKCsCXRXrPLnFRdBKPFkl5TdYpMHeZH9XCwMr9aQTAxg6WbWMH4fjMRut6Ye9S4fam3DrkQ75z1pgXV3dGbDdKq9QSnoyvcDsF+1+zt8JXcOIUvAcU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770980423; c=relaxed/simple; bh=U6oZSJ7BtAPy0JlnmcsfG4w7q3okdxecgWtK+w3OOF0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JEPnWA+Fn+djB6eSrtHP0k/o0Ya2M2G5EYhld4bWi0r7CRwVO6kcmEks3bnLNIN+Z3H9s0Or5htP0C+C5NIhKxh+my/kX0svTX0doWzid0tsPxl3TMJm9NbSblPl/PS+76rbjin2Foa9MH7nn0C+Z1RGOTDLFIOF31uD7SrMV3E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qTTeoEGS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qTTeoEGS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23A6CC116C6; Fri, 13 Feb 2026 11:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770980423; bh=U6oZSJ7BtAPy0JlnmcsfG4w7q3okdxecgWtK+w3OOF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qTTeoEGS2x15qGfAvIv2C/IL7k78V16eh/LYVSjQIVYQLkgGhePLwe8PBLJjXAmtr klM0DFvNAdirR5fhOY9Uf41RjSY80x5MtqDKqsWx0RugnmUKbS/A9rWYBjFGJnmT/X W61wIgqtsZZaODjUjxY0rMntaz2+0MPJTByvjFdjNTo8A+88ZtIzoifNDFS+pctDuO mRzeBv3rX8w4c0x87CPshiGEc4NFlJOgLCcZulqAY6K/69u9vk3A+nDeMR/PbrruCP Q5HW86GQKaPyv1oPBg99ItJac4wgAEN/bdD8+nmr3BQviRedqwAEFew526ngKI8nqx Xj2kvXHWIQ0ww== From: Leon Romanovsky To: Jason Gunthorpe , Leon Romanovsky , Selvin Xavier , Kalesh AP , Potnuri Bharat Teja , Michael Margolin , Gal Pressman , Yossi Leybovich , Cheng Xu , Kai Shen , Chengchang Tang , Junxian Huang , Abhijit Gangurde , Allen Hubbe , Krzysztof Czurylo , Tatyana Nikolova , Long Li , Konstantin Taranov , Yishai Hadas , Michal Kalderon , Bryan Tan , Vishnu Dasa , Broadcom internal kernel review list , Christian Benvenuti , Nelson Escobar , Dennis Dalessandro , Bernard Metzler , Zhu Yanjun Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: [PATCH rdma-next 24/50] RDMA/usnic: Provide a modern CQ creation interface Date: Fri, 13 Feb 2026 12:58:00 +0200 Message-ID: <20260213-refactor-umem-v1-24-f3be85847922@nvidia.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260213-refactor-umem-v1-0-f3be85847922@nvidia.com> References: <20260213-refactor-umem-v1-0-f3be85847922@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.15-dev-47773 Content-Transfer-Encoding: quoted-printable From: Leon Romanovsky usnic doesn't support kernel verbs and should have only .create_user_cq() callback. Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/usnic/usnic_ib_main.c | 2 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 6 +++--- drivers/infiniband/hw/usnic/usnic_ib_verbs.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniba= nd/hw/usnic/usnic_ib_main.c index 11eca39b73a9..8a3b641d6059 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_main.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c @@ -356,7 +356,7 @@ static const struct ib_device_ops usnic_dev_ops =3D { =20 .alloc_pd =3D usnic_ib_alloc_pd, .alloc_ucontext =3D usnic_ib_alloc_ucontext, - .create_cq =3D usnic_ib_create_cq, + .create_user_cq =3D usnic_ib_create_user_cq, .create_qp =3D usnic_ib_create_qp, .dealloc_pd =3D usnic_ib_dealloc_pd, .dealloc_ucontext =3D usnic_ib_dealloc_ucontext, diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infinib= and/hw/usnic/usnic_ib_verbs.c index ae5df96589d9..2b41ded14a65 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c @@ -576,10 +576,10 @@ int usnic_ib_modify_qp(struct ib_qp *ibqp, struct ib_= qp_attr *attr, return status; } =20 -int usnic_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *a= ttr, - struct uverbs_attr_bundle *attrs) +int usnic_ib_create_user_cq(struct ib_cq *ibcq, const struct ib_cq_init_at= tr *attr, + struct uverbs_attr_bundle *attrs) { - if (attr->flags) + if (attr->flags || ibcq->umem) return -EOPNOTSUPP; =20 return 0; diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.h b/drivers/infinib= and/hw/usnic/usnic_ib_verbs.h index e3031ac32488..15882110a5d5 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_verbs.h +++ b/drivers/infiniband/hw/usnic/usnic_ib_verbs.h @@ -55,8 +55,8 @@ int usnic_ib_create_qp(struct ib_qp *qp, struct ib_qp_ini= t_attr *init_attr, int usnic_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); int usnic_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata); -int usnic_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *a= ttr, - struct uverbs_attr_bundle *attrs); +int usnic_ib_create_user_cq(struct ib_cq *ibcq, const struct ib_cq_init_at= tr *attr, + struct uverbs_attr_bundle *attrs); int usnic_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); struct ib_mr *usnic_ib_reg_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt_addr, int access_flags, --=20 2.52.0