aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorTom Talpey <talpey@netapp.com>2008-10-09 15:02:02 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-10-10 15:13:59 -0400
commitb3cd8d45a764e6edb06e7bd386faf99a879569b8 (patch)
treee77218bd80d3b9c6ba64b2ff304375458486e514 /net/sunrpc
parent5f37d561e0f0cd98017c389cbc22080290f11c3c (diff)
RPC/RDMA: optionally emit useful transport info upon connect/disconnect.
Signed-off-by: Tom Talpey <talpey@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprtrdma/transport.c2
-rw-r--r--net/sunrpc/xprtrdma/verbs.c21
2 files changed, 22 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c
index c7d2380bb5e3..c2da680273c5 100644
--- a/net/sunrpc/xprtrdma/transport.c
+++ b/net/sunrpc/xprtrdma/transport.c
@@ -784,7 +784,7 @@ static void __exit xprt_rdma_cleanup(void)
784{ 784{
785 int rc; 785 int rc;
786 786
787 dprintk("RPCRDMA Module Removed, deregister RPC RDMA transport\n"); 787 dprintk(KERN_INFO "RPCRDMA Module Removed, deregister RPC RDMA transport\n");
788#ifdef RPC_DEBUG 788#ifdef RPC_DEBUG
789 if (sunrpc_table_header) { 789 if (sunrpc_table_header) {
790 unregister_sysctl_table(sunrpc_table_header); 790 unregister_sysctl_table(sunrpc_table_header);
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c
index f46fb93f421b..170e69cba6c4 100644
--- a/net/sunrpc/xprtrdma/verbs.c
+++ b/net/sunrpc/xprtrdma/verbs.c
@@ -344,6 +344,27 @@ connected:
344 break; 344 break;
345 } 345 }
346 346
347#ifdef RPC_DEBUG
348 if (connstate == 1) {
349 int ird = attr.max_dest_rd_atomic;
350 int tird = ep->rep_remote_cma.responder_resources;
351 printk(KERN_INFO "rpcrdma: connection to %u.%u.%u.%u:%u "
352 "on %s, memreg %d slots %d ird %d%s\n",
353 NIPQUAD(addr->sin_addr.s_addr),
354 ntohs(addr->sin_port),
355 ia->ri_id->device->name,
356 ia->ri_memreg_strategy,
357 xprt->rx_buf.rb_max_requests,
358 ird, ird < 4 && ird < tird / 2 ? " (low!)" : "");
359 } else if (connstate < 0) {
360 printk(KERN_INFO "rpcrdma: connection to %u.%u.%u.%u:%u "
361 "closed (%d)\n",
362 NIPQUAD(addr->sin_addr.s_addr),
363 ntohs(addr->sin_port),
364 connstate);
365 }
366#endif
367
347 return 0; 368 return 0;
348} 369}
349 370