RDMA/bnxt_re: Remove roundup_pow_of_two depth for all hardware queue resources
authorChandramohan Akula <chandramohan.akula@broadcom.com>
Mon, 23 Oct 2023 14:03:23 +0000 (07:03 -0700)
committerLeon Romanovsky <leon@kernel.org>
Mon, 13 Nov 2023 08:27:14 +0000 (10:27 +0200)
commit48f996d4adf15a0a0af8b8184d3ec6042a684ea4
tree35496fb583430e041dda626021ad940e7b2adbe2
parent3a4304d82695015d0703ee0c3331458d22e3ba7c
RDMA/bnxt_re: Remove roundup_pow_of_two depth for all hardware queue resources

Rounding up the queue depth to power of two is not a hardware requirement.
In order to optimize the per connection memory usage, removing drivers
implementation which round up to the queue depths to the power of 2.

Implements a mask to maintain backward compatibility with older
library.

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-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/ib_verbs.h
include/uapi/rdma/bnxt_re-abi.h