]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/irdma: Set irdma_cq cq_num field during CQ create
authorJacob Moroni <jmoroni@google.com>
Tue, 23 Sep 2025 14:24:39 +0000 (14:24 +0000)
committerLeon Romanovsky <leon@kernel.org>
Sun, 19 Oct 2025 11:02:11 +0000 (07:02 -0400)
commit5575b7646b94c0afb0f4c0d86e00e13cf3397a62
treefd472b48c4ff163f772a877001dcb8c33a2ab4fb
parent8d158f47f1f33d8747e80c3afbea5aa337e59d41
RDMA/irdma: Set irdma_cq cq_num field during CQ create

The driver maintains a CQ table that is used to ensure that a CQ is
still valid when processing CQ related AEs. When a CQ is destroyed,
the table entry is cleared, using irdma_cq.cq_num as the index. This
field was never being set, so it was just always clearing out entry
0.

Additionally, the cq_num field size was increased to accommodate HW
supporting more than 64K CQs.

Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Jacob Moroni <jmoroni@google.com>
Link: https://patch.msgid.link/20250923142439.943930-1-jmoroni@google.com
Acked-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/verbs.c
drivers/infiniband/hw/irdma/verbs.h