diff options
Diffstat (limited to 'net/sunrpc/xprtrdma/verbs.c')
-rw-r--r-- | net/sunrpc/xprtrdma/verbs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index a5fef5e6c323..3b21e0cc5e69 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c | |||
@@ -276,7 +276,9 @@ rpcrdma_conn_upcall(struct rdma_cm_id *id, struct rdma_cm_event *event) | |||
276 | struct rpcrdma_xprt *xprt = id->context; | 276 | struct rpcrdma_xprt *xprt = id->context; |
277 | struct rpcrdma_ia *ia = &xprt->rx_ia; | 277 | struct rpcrdma_ia *ia = &xprt->rx_ia; |
278 | struct rpcrdma_ep *ep = &xprt->rx_ep; | 278 | struct rpcrdma_ep *ep = &xprt->rx_ep; |
279 | #ifdef RPC_DEBUG | ||
279 | struct sockaddr_in *addr = (struct sockaddr_in *) &ep->rep_remote_addr; | 280 | struct sockaddr_in *addr = (struct sockaddr_in *) &ep->rep_remote_addr; |
281 | #endif | ||
280 | struct ib_qp_attr attr; | 282 | struct ib_qp_attr attr; |
281 | struct ib_qp_init_attr iattr; | 283 | struct ib_qp_init_attr iattr; |
282 | int connstate = 0; | 284 | int connstate = 0; |
@@ -323,12 +325,11 @@ rpcrdma_conn_upcall(struct rdma_cm_id *id, struct rdma_cm_event *event) | |||
323 | case RDMA_CM_EVENT_DEVICE_REMOVAL: | 325 | case RDMA_CM_EVENT_DEVICE_REMOVAL: |
324 | connstate = -ENODEV; | 326 | connstate = -ENODEV; |
325 | connected: | 327 | connected: |
326 | dprintk("RPC: %s: %s: %u.%u.%u.%u:%u" | 328 | dprintk("RPC: %s: %s: %pI4:%u (ep 0x%p event 0x%x)\n", |
327 | " (ep 0x%p event 0x%x)\n", | ||
328 | __func__, | 329 | __func__, |
329 | (event->event <= 11) ? conn[event->event] : | 330 | (event->event <= 11) ? conn[event->event] : |
330 | "unknown connection error", | 331 | "unknown connection error", |
331 | NIPQUAD(addr->sin_addr.s_addr), | 332 | &addr->sin_addr.s_addr, |
332 | ntohs(addr->sin_port), | 333 | ntohs(addr->sin_port), |
333 | ep, event->event); | 334 | ep, event->event); |
334 | atomic_set(&rpcx_to_rdmax(ep->rep_xprt)->rx_buf.rb_credits, 1); | 335 | atomic_set(&rpcx_to_rdmax(ep->rep_xprt)->rx_buf.rb_credits, 1); |
@@ -348,18 +349,17 @@ connected: | |||
348 | if (connstate == 1) { | 349 | if (connstate == 1) { |
349 | int ird = attr.max_dest_rd_atomic; | 350 | int ird = attr.max_dest_rd_atomic; |
350 | int tird = ep->rep_remote_cma.responder_resources; | 351 | int tird = ep->rep_remote_cma.responder_resources; |
351 | printk(KERN_INFO "rpcrdma: connection to %u.%u.%u.%u:%u " | 352 | printk(KERN_INFO "rpcrdma: connection to %pI4:%u " |
352 | "on %s, memreg %d slots %d ird %d%s\n", | 353 | "on %s, memreg %d slots %d ird %d%s\n", |
353 | NIPQUAD(addr->sin_addr.s_addr), | 354 | &addr->sin_addr.s_addr, |
354 | ntohs(addr->sin_port), | 355 | ntohs(addr->sin_port), |
355 | ia->ri_id->device->name, | 356 | ia->ri_id->device->name, |
356 | ia->ri_memreg_strategy, | 357 | ia->ri_memreg_strategy, |
357 | xprt->rx_buf.rb_max_requests, | 358 | xprt->rx_buf.rb_max_requests, |
358 | ird, ird < 4 && ird < tird / 2 ? " (low!)" : ""); | 359 | ird, ird < 4 && ird < tird / 2 ? " (low!)" : ""); |
359 | } else if (connstate < 0) { | 360 | } else if (connstate < 0) { |
360 | printk(KERN_INFO "rpcrdma: connection to %u.%u.%u.%u:%u " | 361 | printk(KERN_INFO "rpcrdma: connection to %pI4:%u closed (%d)\n", |
361 | "closed (%d)\n", | 362 | &addr->sin_addr.s_addr, |
362 | NIPQUAD(addr->sin_addr.s_addr), | ||
363 | ntohs(addr->sin_port), | 363 | ntohs(addr->sin_port), |
364 | connstate); | 364 | connstate); |
365 | } | 365 | } |