-
Notifications
You must be signed in to change notification settings - Fork 382
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: Check p2p support to use rdma read #10352
Conversation
Do you need similar check for the write path? |
prov/efa/src/rdm/efa_rdm_msg.c
Outdated
@@ -90,7 +90,8 @@ int efa_rdm_msg_select_rtm(struct efa_rdm_ep *efa_rdm_ep, struct efa_rdm_ope *tx | |||
|
|||
if (txe->total_len >= hmem_info[iface].min_read_msg_size && | |||
efa_rdm_interop_rdma_read(efa_rdm_ep, txe->peer) && | |||
(txe->desc[0] || efa_is_cache_available(efa_rdm_ep_domain(efa_rdm_ep)))) | |||
(txe->desc[0] || efa_is_cache_available(efa_rdm_ep_domain(efa_rdm_ep))) && | |||
use_p2p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make more sense to refactor the whole conditional s.t. use_p2p
is first? That way we can short-circuit and avoid the remaining (potentially expensive) logic.
p2p is required for rdma read because the user buffer has to be registered to efa device. Add p2p check for subprotocols that use RDMA read. Signed-off-by: Jessie Yang <[email protected]>
AWS CI failure is unrelated. |
p2p is required for rdma read because the user buffer has to be registered to efa device.
Add p2p check for subprotocols that use RDMA read.