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: do not do copy for inline send #10067

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

shijin-aws
Copy link
Contributor

Efa can directly access memory if the buffer is host memory and the pkt size (hdr + data) is within inline buf size. Libfabric doesn't need to memcpy in this case.

@shijin-aws shijin-aws requested a review from a team June 7, 2024 23:28
* and the pkt size (hdr + data) is within inline buf size.
*/
} else if (!efa_mr_is_hmem(iov_mr) &&
payload_offset + data_size <= efa_rdm_ep_domain(pke->ep)->device->efa_attr.inline_buf_size){
Copy link
Contributor

Choose a reason for hiding this comment

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

nit missing space between ) and {

Copy link
Contributor

@wenduwan wenduwan Jun 10, 2024

Choose a reason for hiding this comment

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

ignore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

Efa can directly access memory if the buffer is host memory
and the pkt size (hdr + data) is within inline buf size.
Libfabric doesn't need to memcpy in this case.

Signed-off-by: Shi Jin <sjina@amazon.com>
@shijin-aws shijin-aws merged commit 7f7c94d into ofiwg:main Jun 10, 2024
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.

None yet

2 participants