]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/bnxt_re: Refactor hw context memory allocation
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Fri, 22 Aug 2025 04:07:54 +0000 (09:37 +0530)
committerLeon Romanovsky <leon@kernel.org>
Thu, 11 Sep 2025 06:18:03 +0000 (02:18 -0400)
commit2419b16a3db539ce5c506a60ee4b85723ce78bd5
treeaaec562e4ba3f70bcf4eb107b9d710bc72c26673
parent8f47f12db518af43bc24f7fd14e4fc84aeb043b6
RDMA/bnxt_re: Refactor hw context memory allocation

This patch is in preparation for other patches in this series.
There is no functional changes intended.

1. Rename bnxt_qplib_alloc_ctx() to bnxt_qplib_alloc_hwctx().
2. Rename bnxt_qplib_free_ctx() to bnxt_qplib_free_hwctx().
3. Reduce the number of arguments of bnxt_qplib_alloc_hwctx()
   by moving a check outside of it.

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20250822040801.776196-4-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/bnxt_re/qplib_res.c
drivers/infiniband/hw/bnxt_re/qplib_res.h