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

prov/efa: Fix the max_msg_size reporting for efa-direct #10802

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

shijin-aws
Copy link
Contributor

Currently, efa-direct always return the max of rdma size and mtu size when device rdma is supported. This is wrong because when FI_RMA is not requested, only send/recv will be used, and the max_msg_size should be returned as the mtu size only. This patch fixes this issue by moving the max_msg_size change to alter_direct_info based on hints->caps.

Also adjust and introduces more unit tests.

Currently, efa-direct always return the max of rdma size
and mtu size when device rdma is supported. This is wrong
because when FI_RMA is not requested, only send/recv will
be used, and the max_msg_size should be returned as the
mtu size only. This patch fixes this issue by moving
the max_msg_size change to alter_direct_info based on
hints->caps.

Also adjust and introduces more unit tests.

Signed-off-by: Shi Jin <sjina@amazon.com>
@shijin-aws shijin-aws requested a review from a team February 20, 2025 03:40
Copy link
Contributor

@sunkuamzn sunkuamzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I had an almost similar commit that I was going to push today

Signed-off-by: Shi Jin <sjina@amazon.com>
@shijin-aws shijin-aws merged commit b135e2e into ofiwg:main Feb 20, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants