]> www.infradead.org Git - users/hch/misc.git/commit
RDMA/bnxt_re: Refactor NQ allocation
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 14 Nov 2024 09:49:06 +0000 (01:49 -0800)
committerLeon Romanovsky <leon@kernel.org>
Thu, 14 Nov 2024 14:52:37 +0000 (09:52 -0500)
commit30b871338c3ebab4c5efb74f6b23b59f1ac4ca1f
treee5bfc2f4fc4216823d4a5a0ea64212507e0ffe34
parent65ecee132774e0f15cd76a766eb39ec21118bffc
RDMA/bnxt_re: Refactor NQ allocation

Move NQ related data structures from rdev to a new structure
named "struct bnxt_re_nq_record" by keeping a pointer to in
the rdev structure. Allocate the memory for it dynamically.
This change is needed for subsequent patches in the series.

Also, removed the nq_task variable from rdev structure as it
is redundant and no longer used.

This change would help to reduce the size of the driver private
structure as well.

Reviewed-by: Chandramohan Akula <chandramohan.akula@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1731577748-1804-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/bnxt_re.h
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/main.c