Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bnxt_re/lib: Optimize memory usage by the HW resources #1400

Merged
merged 2 commits into from Nov 19, 2023

Conversation

selvintxavier
Copy link
Contributor

Optimize the memory usage of the driver and library. Avoids some of the power of 2 rounding up code while creating the resources like QP/CQ/MRs.

selvintxavier and others added 2 commits November 15, 2023 05:42
To commit: 48f996d4adf1 ("RDMA/bnxt_re: Remove roundup_pow_of_two depth
for all hardware queue resources").

Signed-off-by: Selvin Xavier <[email protected]>
…esources

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

Implements a mask to maintain backward compatibility with older
drivers.

Signed-off-by: Chandramohan Akula <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
@rleon rleon merged commit 282a4ac into linux-rdma:master Nov 19, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants