-
Notifications
You must be signed in to change notification settings - Fork 445
fabtests: Fix message sizes in unexpected_msg test #11399
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
base: main
Are you sure you want to change the base?
Conversation
Anything wrong with the original code? These messages are not part of the main test loop. |
@j-xiong the test was passing but the TX and RX sizes were mismatched. Making these sizes |
Tx size and Rx size don't need to match, and testing of arbitrary-size message before |
@j-xiong Tx and Rx sizes don't need to match but it's confusing to have different sizes. Using Do you not like |
It's common to post a fixed size rx buffer (in this case |
@sunkuamzn Yeah I agree with jianxin - the main test loop is the one testing the |
@aingerson @j-xiong are you at least ok with either (1) replacing |
Oh I think I misread the code and missed the actual address exchange is happening OOB which makes sense. I'm fine with changing all the tx sends in this function to 1 but maybe rephrase to explain that the address exchange is OOB so these are just test messages and have nothing to do with address length? Sorry for the confusion! |
(I am also fine with the changes in this PR as is now that I understand it) |
The first two messages were using different message sizes for some reason Signed-off-by: Sai Sunku <[email protected]>
f858843
to
d6afeab
Compare
@aingerson updated Tx message sizes to 1 |
*/ | ||
ret = ft_post_tx_buf(ep, remote_fi_addr, addrlen, 0, &tx_ctx, | ||
tx_buf, mr_desc, ft_tag); | ||
ret = (int) ft_tx(ep, remote_fi_addr, 1, &tx_ctx); |
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.
These both need to stay with the ft_post_tx_buf call which don't wait for the completion. ft_tx waits for it to complete which is going to conflict with the get_tx_comp(2) call on line 249 and make the test hang. The goal here is to post 2 sends and then sync with the other side to ensure that they go to the unexpected queue before the receives are posted.
The first two messages were using different message sizes for some reason