@@ -936,7 +936,7 @@ void lnet_peer_primary_nid_locked(struct lnet_nid *nid,
void lnet_peer_tables_cleanup(struct lnet_net *net);
void lnet_peer_uninit(void);
int lnet_peer_tables_create(void);
-void lnet_debug_peer(lnet_nid_t nid);
+void lnet_debug_peer(struct lnet_nid *nid);
struct lnet_peer_net *lnet_peer_get_net_locked(struct lnet_peer *peer,
u32 net_id);
bool lnet_peer_is_pref_nid_locked(struct lnet_peer_ni *lpni,
@@ -5257,7 +5257,7 @@ static int lnet_net_cmd(struct sk_buff *skb, struct genl_info *info)
void LNetDebugPeer(struct lnet_processid *id)
{
- lnet_debug_peer(lnet_nid_to_nid4(&id->nid));
+ lnet_debug_peer(&id->nid);
}
EXPORT_SYMBOL(LNetDebugPeer);
@@ -3966,21 +3966,19 @@ void lnet_peer_discovery_stop(void)
/* Debugging */
void
-lnet_debug_peer(lnet_nid_t nid4)
+lnet_debug_peer(struct lnet_nid *nid)
{
char *aliveness = "NA";
struct lnet_peer_ni *lp;
- struct lnet_nid nid;
int cpt;
- lnet_nid4_to_nid(nid4, &nid);
- cpt = lnet_nid2cpt(&nid, NULL);
+ cpt = lnet_nid2cpt(nid, NULL);
lnet_net_lock(cpt);
- lp = lnet_peerni_by_nid_locked(&nid, NULL, cpt);
+ lp = lnet_peerni_by_nid_locked(nid, NULL, cpt);
if (IS_ERR(lp)) {
lnet_net_unlock(cpt);
- CDEBUG(D_WARNING, "No peer %s\n", libcfs_nidstr(&nid));
+ CDEBUG(D_WARNING, "No peer %s\n", libcfs_nidstr(nid));
return;
}