struct lnet_ping_iter pi;
struct lnet_nid nid;
u32 *stp;
- struct lnet_nid primary = {};
bool want_large_primary;
unsigned int flags;
int ncurnis;
*/
ping_iter_first(&pi, pbuf, NULL);
stp = ping_iter_next(&pi, &nid);
- if (stp)
- primary = nid;
want_large_primary = (pbuf->pb_info.pi_features &
LNET_PING_FEAT_PRIMARY_LARGE);
for (; stp; stp = ping_iter_next(&pi, &nid)) {
addnis[naddnis].ns_status = *stp;
naddnis += 1;
}
- if (want_large_primary && nid.nid_size) {
- primary = nid;
+ if (want_large_primary && nid.nid_size)
want_large_primary = false;
- }
}
/*
* Check for NIDs in curnis[] not present in pbuf.