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

libhns: One optimization and one bugfix #1462

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

hginjgerx
Copy link

The first patch optimizes cqe inline in srq scenario.
The second one is a bugfix that add checks for input param.

Junxian Huang added 2 commits May 20, 2024 14:35
In the srq scenario of cqe inline, the user buffer can be obtained
from wqes directly, so actually there is no need to store an
additional copy to srq_rinl_buf.

Remove this copy can optimize both latency and memory usage.
Besides, the release of srq wqes needs to be delayed until the
processing of cqe inline payload is finished since the user buffer
is obtained from srq wqes now.

Fixes: 22cd430 ("libhns: Support cqe inline")
Signed-off-by: Junxian Huang <[email protected]>
Add check for input param of hnsdv_query_device() to avoid null ptr.

Fixes: cf6d914 ("libhns: Introduce hns direct verbs")
Signed-off-by: Junxian Huang <[email protected]>
@rleon rleon merged commit 2b0f69b into linux-rdma:master May 30, 2024
14 checks passed
@nmorey
Copy link
Contributor

nmorey commented May 30, 2024

Is there an actual fix in 88d6ac1 ?
if not, please avoid using Fixes in commits that do not fix issues :)

@hginjgerx
Copy link
Author

Is there an actual fix in 88d6ac1 ? if not, please avoid using Fixes in commits that do not fix issues :)

Indeed, it's more of an optimization than a fix. Thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants