Whamcloud - gitweb
LU-13575 lnet: Ensure round robin selection of peer NIs 04/45004/4
authorChris Horn <chris.horn@hpe.com>
Fri, 27 Aug 2021 21:59:33 +0000 (16:59 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 10 Oct 2021 03:32:15 +0000 (03:32 +0000)
Use the peer net sequence number to set the peer NI sequence number to
ensure round robin selection of peer NIs on each peer net.

HPE-bug-id: LUS-10349
Test-Parameters: trivial
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I1fa14ad675ead4ae2c5b1d4edad250caa4498df2
Reviewed-on: https://review.whamcloud.com/45004
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

index 53d204e..6117ccb 100644 (file)
@@ -1837,8 +1837,8 @@ lnet_handle_send(struct lnet_send_data *sd)
         * local ni and local net so that we pick the next ones
         * in Round Robin.
-       best_lpni->lpni_seq++;
+       best_lpni->lpni_seq = best_lpni->lpni_peer_net->lpn_seq;
        best_ni->ni_seq = best_ni->ni_net->net_seq;