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

The device name printed via ctx_print_test_info is not the same as the actual used device name when rdma_cm is enabled #142

Open
sjc2870 opened this issue Feb 25, 2022 · 2 comments

Comments

@sjc2870
Copy link

sjc2870 commented Feb 25, 2022

I modified the code to print the device name through the parameters inside the struct ibv_context.I found the device name printed by ctx_print_test_info is not the same as the parameters inside the struct ibv_context, further I found ctx_print_test_info just print the user parameter... Why is this?
My code is like this:
image
image
image

The execution result is as follows
server:
1RIKvWjKSQ

client:
1645774916(1)

Looking forward to reply from you when it is convenient, any reply will be helpful for me, thanks!!

@HassanKhadour
Copy link
Contributor

Hi,

I didn't manage to repro it , are you sure that you are not passing mlx5_0 ip to perftest ?
can you please provide more information about your setup ?

Thanks

@sjc2870
Copy link
Author

sjc2870 commented Mar 23, 2022

Hi,

I didn't manage to repro it , are you sure that you are not passing mlx5_0 ip to perftest ? can you please provide more information about your setup ?

Thanks

Thanks for your kind reply.
Sry, I passed the mlx5_0 ip of server to perftest in client side. It's my bad, so the output printed by server is expected.
But the main problem is that I try to use mlx5_1 to connect server in client side, but perftest just print device name passed by user(mlx5_1), instead the real used(mlx5_0). I used -R which means use rdma_cm, and I learned that rdma_cm seems like cannot choose device in client side, is that true?

Thanks

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

No branches or pull requests

2 participants