Skip to contentSkip to conversation

libibmad/rpc.c: On receive, add debug info for dumping incoming MAD address

PATCH Applied Hal Rosenstock 2 participants 2 messages Nov 10, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libibmad/rpc.c: On receive, add debug info for dumping incoming MAD address

---

src/rpc.c +2 -0
index 19a5a70..6312d42 100644
@@ -166,6 +166,8 @@ _do_madrpc(int port_id, void *sndbuf, void *rcvbuf, int agentid, int len,
 				return -1;
 			}
 
+			if (ibdebug > 2)
+				umad_addr_dump(umad_get_mad_addr(rcvbuf));
 			if (ibdebug > 1) {
 				IBWARN("rcv buf:");
 				xdump(stderr, "rcv buf\n", umad_get_mad(rcvbuf),

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4EBBD63E.7090405-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 2 lines · On Thu, 10 Nov 2011 05:48:46 -0800 Hal Rosenstock…

Thanks, applied,
Ira

Quoted 14 lines

---

src/rpc.c +2 -0
index 19a5a70..6312d42 100644
@@ -166,6 +166,8 @@ _do_madrpc(int port_id, void *sndbuf, void *rcvbuf, int agentid, int len,
 				return -1;
 			}
 
+			if (ibdebug > 2)
+				umad_addr_dump(umad_get_mad_addr(rcvbuf));
 			if (ibdebug > 1) {
 				IBWARN("rcv buf:");
 				xdump(stderr, "rcv buf\n", umad_get_mad(rcvbuf),
Signature · 9 lines
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html