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>
* 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;