Commit ff3f19a2 authored by Santosh Shilimkar's avatar Santosh Shilimkar

RDS: IB: include faddr in connection log

Also use pr_* for it.
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent bb789763
...@@ -113,19 +113,18 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even ...@@ -113,19 +113,18 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even
} }
if (conn->c_version < RDS_PROTOCOL(3, 1)) { if (conn->c_version < RDS_PROTOCOL(3, 1)) {
printk(KERN_NOTICE "RDS/IB: Connection to %pI4 version %u.%u failed," pr_notice("RDS/IB: Connection <%pI4,%pI4> version %u.%u no longer supported\n",
" no longer supported\n", &conn->c_laddr, &conn->c_faddr,
&conn->c_faddr, RDS_PROTOCOL_MAJOR(conn->c_version),
RDS_PROTOCOL_MAJOR(conn->c_version), RDS_PROTOCOL_MINOR(conn->c_version));
RDS_PROTOCOL_MINOR(conn->c_version));
rds_conn_destroy(conn); rds_conn_destroy(conn);
return; return;
} else { } else {
printk(KERN_NOTICE "RDS/IB: connected to %pI4 version %u.%u%s\n", pr_notice("RDS/IB: connected <%pI4,%pI4> version %u.%u%s\n",
&conn->c_faddr, &conn->c_laddr, &conn->c_faddr,
RDS_PROTOCOL_MAJOR(conn->c_version), RDS_PROTOCOL_MAJOR(conn->c_version),
RDS_PROTOCOL_MINOR(conn->c_version), RDS_PROTOCOL_MINOR(conn->c_version),
ic->i_flowctl ? ", flow control" : ""); ic->i_flowctl ? ", flow control" : "");
} }
/* /*
......
...@@ -980,8 +980,8 @@ void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, ...@@ -980,8 +980,8 @@ void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic,
} else { } else {
/* We expect errors as the qp is drained during shutdown */ /* We expect errors as the qp is drained during shutdown */
if (rds_conn_up(conn) || rds_conn_connecting(conn)) if (rds_conn_up(conn) || rds_conn_connecting(conn))
rds_ib_conn_error(conn, "recv completion on %pI4 had status %u (%s), disconnecting and reconnecting\n", rds_ib_conn_error(conn, "recv completion on <%pI4,%pI4> had status %u (%s), disconnecting and reconnecting\n",
&conn->c_faddr, &conn->c_laddr, &conn->c_faddr,
wc->status, wc->status,
ib_wc_status_msg(wc->status)); ib_wc_status_msg(wc->status));
} }
......
...@@ -300,8 +300,8 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc) ...@@ -300,8 +300,8 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc)
/* We expect errors as the qp is drained during shutdown */ /* We expect errors as the qp is drained during shutdown */
if (wc->status != IB_WC_SUCCESS && rds_conn_up(conn)) { if (wc->status != IB_WC_SUCCESS && rds_conn_up(conn)) {
rds_ib_conn_error(conn, "send completion on %pI4 had status %u (%s), disconnecting and reconnecting\n", rds_ib_conn_error(conn, "send completion on <%pI4,%pI4> had status %u (%s), disconnecting and reconnecting\n",
&conn->c_faddr, wc->status, &conn->c_laddr, &conn->c_faddr, wc->status,
ib_wc_status_msg(wc->status)); ib_wc_status_msg(wc->status));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment