linux-imx/drivers/infiniband
Chandramohan Akula f52e649e93 RDMA/bnxt_re: Refactor the queue index update
[ Upstream commit 3a4304d826 ]

The queue index wrap around logic is based on power of 2 size depth.
All queues are created with power of 2 depth. This increases the
memory usage by the driver. This change is required for the next
patches that avoids the power of 2 depth requirement for each of
the queues.

Update the function that increments producer index and consumer
index during wrap around. Also, changes the index handling across
multiple functions.

Signed-off-by: Chandramohan Akula <chandramohan.akula@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://lore.kernel.org/r/1698069803-1787-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Stable-dep-of: 78cfd17142 ("bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:10 +02:00
..
core RDMA/cm: Print the old state when cm_destroy_id gets timeout 2024-04-27 17:11:34 +02:00
hw RDMA/bnxt_re: Refactor the queue index update 2024-06-12 11:12:10 +02:00
sw RDMA/rxe: Fix incorrect rxe_put in error path 2024-06-12 11:12:07 +02:00
ulp RDMA/rtrs-clt: Check strnlen return len in sysfs mpath_policy_store() 2024-03-26 18:20:01 -04:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile