diff options
author | Santosh Shilimkar <santosh.shilimkar@oracle.com> | 2016-03-14 10:43:55 -0400 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@oracle.com> | 2017-01-02 17:02:41 -0500 |
commit | ff3f19a2f608ee406331e8c7b60d7376e75c2157 (patch) | |
tree | 8b819c244dfa3d4d83295d362b8adf240dfaf395 /net/rds | |
parent | bb7897631d2379ec198635cc24bf1e8c629d0bda (diff) |
RDS: IB: include faddr in connection log
Also use pr_* for it.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib_cm.c | 19 | ||||
-rw-r--r-- | net/rds/ib_recv.c | 4 | ||||
-rw-r--r-- | net/rds/ib_send.c | 4 |
3 files changed, 13 insertions, 14 deletions
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index 5b2ab95afa07..b9da1e59ecc1 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c | |||
@@ -113,19 +113,18 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even | |||
113 | } | 113 | } |
114 | 114 | ||
115 | if (conn->c_version < RDS_PROTOCOL(3, 1)) { | 115 | if (conn->c_version < RDS_PROTOCOL(3, 1)) { |
116 | printk(KERN_NOTICE "RDS/IB: Connection to %pI4 version %u.%u failed," | 116 | pr_notice("RDS/IB: Connection <%pI4,%pI4> version %u.%u no longer supported\n", |
117 | " no longer supported\n", | 117 | &conn->c_laddr, &conn->c_faddr, |
118 | &conn->c_faddr, | 118 | RDS_PROTOCOL_MAJOR(conn->c_version), |
119 | RDS_PROTOCOL_MAJOR(conn->c_version), | 119 | RDS_PROTOCOL_MINOR(conn->c_version)); |
120 | RDS_PROTOCOL_MINOR(conn->c_version)); | ||
121 | rds_conn_destroy(conn); | 120 | rds_conn_destroy(conn); |
122 | return; | 121 | return; |
123 | } else { | 122 | } else { |
124 | printk(KERN_NOTICE "RDS/IB: connected to %pI4 version %u.%u%s\n", | 123 | pr_notice("RDS/IB: connected <%pI4,%pI4> version %u.%u%s\n", |
125 | &conn->c_faddr, | 124 | &conn->c_laddr, &conn->c_faddr, |
126 | RDS_PROTOCOL_MAJOR(conn->c_version), | 125 | RDS_PROTOCOL_MAJOR(conn->c_version), |
127 | RDS_PROTOCOL_MINOR(conn->c_version), | 126 | RDS_PROTOCOL_MINOR(conn->c_version), |
128 | ic->i_flowctl ? ", flow control" : ""); | 127 | ic->i_flowctl ? ", flow control" : ""); |
129 | } | 128 | } |
130 | 129 | ||
131 | /* | 130 | /* |
diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 606a11f681d2..6803b75eb8bd 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c | |||
@@ -980,8 +980,8 @@ void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, | |||
980 | } else { | 980 | } else { |
981 | /* We expect errors as the qp is drained during shutdown */ | 981 | /* We expect errors as the qp is drained during shutdown */ |
982 | if (rds_conn_up(conn) || rds_conn_connecting(conn)) | 982 | if (rds_conn_up(conn) || rds_conn_connecting(conn)) |
983 | rds_ib_conn_error(conn, "recv completion on %pI4 had status %u (%s), disconnecting and reconnecting\n", | 983 | rds_ib_conn_error(conn, "recv completion on <%pI4,%pI4> had status %u (%s), disconnecting and reconnecting\n", |
984 | &conn->c_faddr, | 984 | &conn->c_laddr, &conn->c_faddr, |
985 | wc->status, | 985 | wc->status, |
986 | ib_wc_status_msg(wc->status)); | 986 | ib_wc_status_msg(wc->status)); |
987 | } | 987 | } |
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c index 84d90c97332f..19eca5c4c00c 100644 --- a/net/rds/ib_send.c +++ b/net/rds/ib_send.c | |||
@@ -300,8 +300,8 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc) | |||
300 | 300 | ||
301 | /* We expect errors as the qp is drained during shutdown */ | 301 | /* We expect errors as the qp is drained during shutdown */ |
302 | if (wc->status != IB_WC_SUCCESS && rds_conn_up(conn)) { | 302 | if (wc->status != IB_WC_SUCCESS && rds_conn_up(conn)) { |
303 | rds_ib_conn_error(conn, "send completion on %pI4 had status %u (%s), disconnecting and reconnecting\n", | 303 | rds_ib_conn_error(conn, "send completion on <%pI4,%pI4> had status %u (%s), disconnecting and reconnecting\n", |
304 | &conn->c_faddr, wc->status, | 304 | &conn->c_laddr, &conn->c_faddr, wc->status, |
305 | ib_wc_status_msg(wc->status)); | 305 | ib_wc_status_msg(wc->status)); |
306 | } | 306 | } |
307 | } | 307 | } |