@@ -87,7 +87,7 @@ struct lnet_rsp_tracker {
/* cpt to lock */
int rspt_cpt;
/* nid of next hop */
- lnet_nid_t rspt_next_hop_nid;
+ struct lnet_nid rspt_next_hop_nid;
/* deadline of the REPLY/ACK */
ktime_t rspt_deadline;
/* parent MD */
@@ -1755,9 +1755,9 @@ void lnet_usr_translate_stats(struct lnet_ioctl_element_msg_stats *msg_stats,
rspt = msg->msg_md->md_rspt_ptr;
if (rspt) {
rspt->rspt_next_hop_nid =
- lnet_nid_to_nid4(&msg->msg_txpeer->lpni_nid);
+ msg->msg_txpeer->lpni_nid;
CDEBUG(D_NET, "rspt_next_hop_nid = %s\n",
- libcfs_nid2str(rspt->rspt_next_hop_nid));
+ libcfs_nidstr(&rspt->rspt_next_hop_nid));
}
}
@@ -2969,7 +2969,7 @@ struct lnet_mt_event_info {
if (ktime_compare(now, rspt->rspt_deadline) >= 0 ||
the_lnet.ln_mt_state == LNET_MT_STATE_SHUTDOWN) {
struct lnet_peer_ni *lpni;
- lnet_nid_t nid;
+ struct lnet_nid nid;
md = lnet_handle2md(&rspt->rspt_mdh);
if (!md) {
@@ -3028,14 +3028,14 @@ struct lnet_mt_event_info {
CDEBUG(D_NET,
"Response timeout: md = %p: nid = %s\n",
- md, libcfs_nid2str(nid));
+ md, libcfs_nidstr(&nid));
/* If there is a timeout on the response
* from the next hop decrement its health
* value so that we don't use it
*/
lnet_net_lock(0);
- lpni = lnet_find_peer_ni_locked(nid);
+ lpni = lnet_peer_ni_find_locked(&nid);
if (lpni) {
lnet_handle_remote_failure_locked(lpni);
lnet_peer_ni_decref_locked(lpni);