X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Finclude%2Flnet%2Flib-types.h;h=87867ada8e5350fad2a65442a829567eb7439d8f;hp=3b1e46f13234c7a19a01b6cb7fb3a91ea6da4cd9;hb=dce2f7d1987711dfdced903b13e67091cffe9628;hpb=b77281bfd01367d29766496a8d511e3c7a189af2 diff --git a/lnet/include/lnet/lib-types.h b/lnet/include/lnet/lib-types.h index 3b1e46f..87867ad 100644 --- a/lnet/include/lnet/lib-types.h +++ b/lnet/include/lnet/lib-types.h @@ -473,6 +473,13 @@ struct lnet_ni { /* Recovery state. Protected by lnet_ni_lock() */ __u32 ni_recovery_state; + /* When to send the next recovery ping */ + time64_t ni_next_ping; + /* How many pings sent during current recovery period did not receive + * a reply. NB: reset whenever _any_ message arrives on this NI + */ + unsigned int ni_ping_count; + /* per NI LND tunables */ struct lnet_lnd_tunables ni_lnd_tunables; @@ -645,6 +652,8 @@ struct lnet_peer { /* source NID to use during discovery */ lnet_nid_t lp_disc_src_nid; + /* destination NID to use during discovery */ + lnet_nid_t lp_disc_dst_nid; /* net to perform discovery on */ __u32 lp_disc_net_id; @@ -803,8 +812,8 @@ struct lnet_peer_net { /* peer net health */ int lpn_healthv; - /* time of last router net check attempt */ - time64_t lpn_rtrcheck_timestamp; + /* time of next router ping on this net */ + time64_t lpn_next_ping; /* selection sequence number */ __u32 lpn_seq;