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

[v1.20.x] prov/efa: Make runt_size aligned #9628

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

shijin-aws
Copy link
Contributor

backport #9626

Currently, txe->runt_size can be non-multiple of the
memory alignment, which caused the following issues:

1. It caused the data size to be copied on the receiver side
not a multiple of memory alignment. This not only caused
non-performant data copy (gdrcopy or local read), but also
breaks the LL128 protocol for send/recv, which requires the
data size to be copied must be a multiple of 128 (the memory
alignment in this case).

2. It caused the single_pkt_entry_data_size variable in
efa_rdm_ope_prepare_to_post_send() to be 0 after doing
the alignment trim.

This patch makes the runt size always aligned before we
decide whether to use runting read protocol. If the
aligned runt size is 0, we won't do runting read.

Also added a series of unit test to validate this change

Signed-off-by: Shi Jin <[email protected]>
(cherry picked from commit 1604521)
@shijin-aws shijin-aws requested a review from a team December 6, 2023 23:13
@shijin-aws
Copy link
Contributor Author

bot:aws:retest

@shijin-aws shijin-aws merged commit 3636ebf into ofiwg:v1.20.x Dec 7, 2023
11 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.

2 participants