From c51763948abfdbdc8e3f3ea7e73f2632320a095a Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Fri, 27 Aug 2021 16:59:33 -0500 Subject: [PATCH] LU-13575 lnet: Ensure round robin selection of peer NIs 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 Change-Id: I1fa14ad675ead4ae2c5b1d4edad250caa4498df2 Reviewed-on: https://review.whamcloud.com/45004 Reviewed-by: Serguei Smirnov Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lnet/lnet/lib-move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c index 53d204e..6117ccb 100644 --- a/lnet/lnet/lib-move.c +++ b/lnet/lnet/lib-move.c @@ -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_peer_net->lpn_seq++; + best_lpni->lpni_seq = best_lpni->lpni_peer_net->lpn_seq; best_ni->ni_net->net_seq++; best_ni->ni_seq = best_ni->ni_net->net_seq; -- 1.8.3.1