]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Reject zero CQE count
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 13 Feb 2026 10:57:44 +0000 (12:57 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Wed, 25 Feb 2026 13:15:30 +0000 (08:15 -0500)
commita2917582887ac7c3aaccad60cb5eb876b1a83594
treea79ba1587684c57c4f79cbd965283a8cbe095a5d
parent584ec74748e6fea9042dbd4fd516b025fbe38372
RDMA/core: Reject zero CQE count

All drivers already ensure that the number of CQEs is at least 1.
Add this validation to the core so drivers no longer need to repeat it.
Future patches converting to the .create_user_cq() interface will remove
the per‑driver checks.

Link: https://patch.msgid.link/20260213-refactor-umem-v1-8-f3be85847922@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/cq.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/core/verbs.c