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: Remove inline write logic for efa_rma inject #10679

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

jiaxiyan
Copy link
Contributor

@jiaxiyan jiaxiyan commented Jan 6, 2025

We previously set the inject size to 0 to prevent using inline write, but application can use inject rma for 0 size message. Make rma inject temporarily return FI_ENOSYS before firmware supports inline write.

@jiaxiyan jiaxiyan requested a review from a team January 6, 2025 21:17
#else
/* MSVC compiler does not support array declarations with runtime size, so hardcode
* the expected iov_limit/max_sq_sge from the lower-level efa provider.
*/
struct ibv_sge sge_list[EFA_DEV_ATTR_MAX_WR_SGE];
struct ibv_data_buf inline_data_list[EFA_DEV_ATTR_MAX_WR_SGE];
#endif
size_t len;
int i, err = 0;

Copy link
Contributor

Choose a reason for hiding this comment

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

You also need to raise error when flags has FI_INJECT

Copy link
Contributor

Choose a reason for hiding this comment

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

Also add a unit test for it.

@jiaxiyan jiaxiyan force-pushed the inline_write branch 2 times, most recently from 906e465 to 80455a5 Compare January 7, 2025 00:41
@shijin-aws shijin-aws changed the title prov/efa: Remove inline write logic for rma inject prov/efa: Remove inline write logic for efa_rma inject Jan 7, 2025
shijin-aws
shijin-aws previously approved these changes Jan 7, 2025
@shijin-aws
Copy link
Contributor

need to resolve the merge conflict

We previously set the inject size to 0 to prevent using inline write,
but fabtests can use inject rma for 0 size message.
Make rma inject temporarily return FI_ENOSYS before firmware
supports inline write.

Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
@shijin-aws shijin-aws merged commit d0d2725 into ofiwg:main Jan 9, 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.

2 participants