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: Use SHM's full inject size #9511

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

a-szegel
Copy link
Contributor

@a-szegel a-szegel commented Nov 3, 2023

Previously, we were subtracting EFA max header size from SHM inject size. Now that we use SHM as a peer provider, we can use SHM's full inject size of 4096. Also cleanup old deprecated env variable, and move hard coded value in place.

Previously, we were subtracting EFA max header size from SHM inject
size. Now that we use SHM as a peer provider, we can use SHM's full
inject size of 4096. Also cleanup old deprecated env variable, and move
hard coded value in place.

Signed-off-by: Seth Zegelstein <szegel@amazon.com>
@a-szegel a-szegel requested a review from a team November 3, 2023 19:47
Copy link
Contributor

@j-xiong j-xiong left a comment

Choose a reason for hiding this comment

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

Is it needed for 1.20?

@@ -647,14 +647,15 @@ int efa_prov_info_alloc_for_rdm(struct fi_info **prov_info_rdm_ptr,
* pkt_entry_size - maximum_header_size.
*/
if (efa_env.enable_shm_transfer)
min_pkt_size = MIN(device->rdm_info->ep_attr->max_msg_size, efa_env.shm_max_medium_size);
min_pkt_size = MIN(device->rdm_info->ep_attr->max_msg_size - efa_rdm_pkt_type_get_max_hdr_size(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Line too long

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The EFA provider has historically not enforced line length.

else
min_pkt_size = device->rdm_info->ep_attr->max_msg_size;
min_pkt_size = device->rdm_info->ep_attr->max_msg_size - efa_rdm_pkt_type_get_max_hdr_size();
Copy link
Contributor

Choose a reason for hiding this comment

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

Line too long.

@j-xiong j-xiong merged commit 387a733 into ofiwg:main Nov 6, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants