@@ -1723,6 +1723,16 @@
rc = lnet_post_send_locked(msg, 0);
+ if (!rc)
+ CDEBUG(D_NET, "TRACE: %s(%s:%s) -> %s(%s:%s) : %s\n",
+ libcfs_nid2str(msg->msg_hdr.src_nid),
+ libcfs_nid2str(msg->msg_txni->ni_nid),
+ libcfs_nid2str(src_nid),
+ libcfs_nid2str(msg->msg_hdr.dest_nid),
+ libcfs_nid2str(dst_nid),
+ libcfs_nid2str(msg->msg_txpeer->lpni_nid),
+ lnet_msgtyp2str(msg->msg_type));
+
lnet_net_unlock(cpt);
return rc;
@@ -2195,6 +2205,12 @@
for_me = (ni->ni_nid == dest_nid);
cpt = lnet_cpt_of_nid(from_nid, ni);
+ CDEBUG(D_NET, "TRACE: %s(%s) <- %s : %s\n",
+ libcfs_nid2str(dest_nid),
+ libcfs_nid2str(ni->ni_nid),
+ libcfs_nid2str(src_nid),
+ lnet_msgtyp2str(type));
+
switch (type) {
case LNET_MSG_ACK:
case LNET_MSG_GET:
@@ -187,7 +187,7 @@
counters->route_length += msg->msg_len;
counters->route_count++;
- goto out;
+ goto incr_stats;
case LNET_EVENT_PUT:
/* should have been decommitted */
@@ -215,6 +215,8 @@
}
counters->send_count++;
+
+incr_stats:
if (msg->msg_txpeer)
atomic_inc(&msg->msg_txpeer->lpni_stats.send_count);
if (msg->msg_txni)
@@ -241,7 +243,7 @@
default:
LASSERT(!ev->type);
LASSERT(msg->msg_routing);
- goto out;
+ goto incr_stats;
case LNET_EVENT_ACK:
LASSERT(msg->msg_type == LNET_MSG_ACK);
@@ -274,6 +276,8 @@
}
counters->recv_count++;
+
+incr_stats:
if (msg->msg_rxpeer)
atomic_inc(&msg->msg_rxpeer->lpni_stats.recv_count);
if (msg->msg_rxni)