There's no point in checking the links of a host with a LOOPBACK
link - it's always up and reachable.
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
int best_priority = -1;
int reachable = 0;
- host->active_link_entries = 0;
+ if (knet_h->host_id == host->host_id && knet_h->has_loop_link) {
+ host->active_link_entries = 1;
+ return 0;
+ }
+ host->active_link_entries = 0;
for (link_idx = 0; link_idx < KNET_MAX_LINK; link_idx++) {
if (host->link[link_idx].status.enabled != 1) /* link is not enabled */
continue;