Whamcloud - gitweb
LU-13575 lnet: Ensure round robin selection of local NIs
authorChris Horn <chris.horn@hpe.com>
Fri, 27 Aug 2021 21:29:09 +0000 (16:29 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 14 Oct 2023 10:50:49 +0000 (10:50 +0000)
Use the net sequence number to set the NI sequence number to ensure
round robin selection of NIs on each net.

Lustre-change: https://review.whamcloud.com/45003
Lustre-commit: a18c4a16246e6185919eda805eca52772bbc3efe

Test-Parameters: trivial
HPE-bug-id: LUS-10349
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I6ce0b088fcad6312186e6fbad4ab14283aee55eb
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52470
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
lnet/lnet/lib-move.c

index cd88279..ca04d9c 100644 (file)
@@ -1820,8 +1820,8 @@ lnet_handle_send(struct lnet_send_data *sd)
         */
        best_lpni->lpni_seq++;
        best_lpni->lpni_peer_net->lpn_seq++;
-       best_ni->ni_seq++;
        best_ni->ni_net->net_seq++;
+       best_ni->ni_seq = best_ni->ni_net->net_seq;
 
        CDEBUG(D_NET, "%s NI seq info: [%d:%d:%d] %s LPNI seq info [%d:%d:%d]\n",
               libcfs_nid2str(best_ni->ni_nid),