From: Chris Horn Date: Fri, 27 Aug 2021 21:29:09 +0000 (-0500) Subject: LU-13575 lnet: Ensure round robin selection of local NIs X-Git-Tag: 2.14.56~175 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a18c4a16246e6185919eda805eca52772bbc3efe LU-13575 lnet: Ensure round robin selection of local NIs 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 Change-Id: I6ce0b088fcad6312186e6fbad4ab14283aee55eb Reviewed-on: https://review.whamcloud.com/45003 Tested-by: jenkins Reviewed-by: Serguei Smirnov Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c index e1acb18..53d204e 100644 --- a/lnet/lnet/lib-move.c +++ b/lnet/lnet/lib-move.c @@ -1839,8 +1839,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:%u] %s LPNI seq info [%d:%d:%d:%u]\n", libcfs_nidstr(&best_ni->ni_nid),