-
Notifications
You must be signed in to change notification settings - Fork 401
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: Introduce efa_base_ep, change directory structure, clean up efa_ep and fix a bug in debug path #8406
Conversation
Can we change the name rxr to be rdm? RXR seems legacy now. This can happen in a future patch. |
56b64fa
to
43e0093
Compare
Yes, we will do that in future commits. Don't want to put everything in one commit or PR. |
bot:aws:retest |
43e0093
to
0726a59
Compare
All fixed |
4d90823
to
bbb5ac1
Compare
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.
Thank you! LGTM.
I think it would be better to add more information in the commit message of the commit that introduced efa_base_ep
. In the commit, "rxr_ep" has base_ep
in it, but rxr_ep
did not actually use the qp
inside base_ep
. It is still using qp
inside rdm_ep
.
Next PR will get rid of rdm_ep
inside rxr_ep
and make it use base_ep.qp
Looks like there are still conflict with |
Signed-off-by: Sai Sunku <sunkusa@amazon.com>
This commit fixes a bug that was introduced in ofiwg#8391 Signed-off-by: Sai Sunku <sunkusa@amazon.com>
This struct contains members that are common to both efa_ep and rxr_ep In this commit, rxr_ep has a member efa_base_ep but it does not use the members of efa_base_ep (CQ, AV, QP, etc) for sending and receiving messages. rxr_ep still uses rxr_ep->rdm_ep->base_ep In future commits, rxr_ep->rdm_ep will be removed and rxr_ep will use the members of efa_base_ep Signed-off-by: Sai Sunku <sunkusa@amazon.com>
The DGRAM endpoint doesn't support HMEM, so efa_ep doesn't need the member Signed-off-by: Sai Sunku <sunkusa@amazon.com>
bbb5ac1
to
32e415d
Compare
Added
Conflict was because of Darryl's commit which was merged this morning. But the rebase was clean, so it should be fine. |
Thanks! waiting for CI to finish |
This PR is for several changes
Introduce
struct efa_base_ep
This struct contains members common to both DGRAM and RDM endpoints and will be the first member in both endpoints. The RDM endpoint is still defined in
rxr.h
. The DGRAM endpoint is now defined in a new file calledefa_dgram.h
Change directory structure
The intended directory structure is that files related to DGRAM provider only should go in
prov/efa/src/dgram
. Files related to RDM provider only should go inprov/efa/src/rdm
. Only files shared by both providers should remain inprov/efa/src
.This PR doesn't fully accomplish this change.
prov/efa/src
and separate out the code that is only used RDM/DGRAM and move that into their respective folders.rxr_ep
still hasrdm_ep
as a member. So we still need to importdgram/efa_dgram.h
in a few places in RDM code. Therdm_ep
member and those imports will be removed in future commits.Remove
efa_ep->hmem_p2p_opt
andefa_ep->util_ep_initialized
hmem_p2p_opt
is only used in RDM codeandutil_ep_initialized
doesn't seem to be necessaryAnd a fix for a bug introduced in #8391