【infiniband】用udaddy测试RDMA_CM API通过GID连接

1. 运行ibv_devinfo -vv

找到GID[  0]。

2.udaddy用1.找到的GID[  0]测试连接

服务器:

root@debian:~/infiniband/rdma-core-50mlnx1# build/bin/udaddy -f gid -b fe80:0000:0000:0000:e41d:2e03:0051:26d1
udaddy: starting server
test.rai->ai_src_addr->sa_family:27
receiving data transfers
sending replies
data transfers complete
test complete
return status 0

客户端:

root@debian:~/infiniband/rdma-core-50mlnx1# build/bin/udaddy -f gid -s fe80:0000:0000:0000:e41d:2e03:0051:26d1
udaddy: starting client
udaddy: connecting
initiating data transfers
receiving data transfers
data transfers complete
test complete
return status 0

你可能感兴趣的:(网络,linux,编程,linux,infiniband,网络)