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

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

index e1acb18..53d204e 100644 (file)
@@ -1839,8 +1839,8 @@ lnet_handle_send(struct lnet_send_data *sd)
-       best_ni->ni_seq++;
+       best_ni->ni_seq = best_ni->ni_net->net_seq;
        CDEBUG(D_NET, "%s NI seq info: [%d:%d:%d:%u] %s LPNI seq info [%d:%d:%d:%u]\n",