The first iteration of the route selection loop compares the first
route in the list with itself.
Test-Parameters: trivial
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I1a51b04b248dbaa9a47a7a69e2995c21e515fb2b
Reviewed-on: https://review.whamcloud.com/36535
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
if (lp_best == NULL) {
best_route = last_route = route;
lp_best = lp;
+ best_gw_ni = lnet_find_best_lpni_on_net(NULL,
+ LNET_NID_ANY,
+ route->lr_gateway,
+ route->lr_lnet);
+ LASSERT(best_gw_ni);
+ continue;
}
/* no protection on below fields, but it's harmless */