Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The original version used only the first GID of a specific network interface. This fix puts in a vector all GIDs it can find for a given interface, then it finds the first interface name and uses it to run the tests.
In order to show the GIDs of a Mellanox ConnectX-6 adapter use:
[root@localhost ~]# show_gids mlx5_0
DEV PORT INDEX GID IPv4 VER DEV
mlx5_0 1 0 fe80:0000:0000:0000:0e42:a1ff:fe5d:4db8 v1 ens1f0
mlx5_0 1 1 fe80:0000:0000:0000:0e42:a1ff:fe5d:4db8 v2 ens1f0
mlx5_0 1 2 fe80:0000:0000:0000:1186:a6b1:3f0b:c441 v1 ens1f0
mlx5_0 1 3 fe80:0000:0000:0000:1186:a6b1:3f0b:c441 v2 ens1f0
mlx5_0 1 4 0000:0000:0000:0000:0000:ffff:ac13:003c 172.19.0.60 v1 ens1f0
mlx5_0 1 5 0000:0000:0000:0000:0000:ffff:ac13:003c 172.19.0.60 v2 ens1f0
n_gids_found=6
Note that in this case the original nsdperf version fails because it uses only the first GID and nsdperf exists with this error below:
[root@localhost ~]# ./nsdperf-rdma -r mlx5_0/1 -s -d
05:32:39.904017 nsdperf-rdma 1.28 server started
Connection from 172.19.4.2
05:32:49.594867 got msg Version ID 2 len 0 from 172.19.4.2/0
05:32:49.620581 got msg Parms ID 4 len 56 from 172.19.4.2/0
05:32:49.642896 RDMA port mlx5_0:1 has no address
05:32:49.643393 sending msg ReplyErr ID 4 len 24 to 172.19.4.2/0
05:33:22.192687 got msg Kill ID 6 len 0 from 172.19.4.2/0
Connection to 172.19.4.2/0 broken
05:33:22.193039 Closed connection to 172.19.4.2/0