Skip to content

Commit dff3110

Browse files
SantoshShilimkarSomasundaram Krishnasamy
authored andcommitted
RDS: IB: log associates connection details for setup failures
Orabug: 22347191 Signed-off-by: Santosh Shilimkar <[email protected]> Reviewed-by: Mukesh Kacker <[email protected]> Tested-by: Michael Nowak <[email protected]> Tested-by: Rafael Alejandro Peralez <[email protected]> Tested-by: Liwen Huang <[email protected]> Tested-by: Hong Liu <[email protected]> Orabug: 27364391 (cherry picked from commit 49d10bb) cherry-pick-repo=linux-uek.git Signed-off-by: Gerd Rausch <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent d255706 commit dff3110

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

net/rds/ib_cm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,8 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
995995

996996
err = rds_ib_setup_qp(conn);
997997
if (err) {
998-
pr_warn("RDS/IB: rds_ib_setup_qp failed (%d)\n", err);
998+
pr_warn("RDS/IB: rds_ib_setup_qp failed with err(%d) for conn <%pI4,%pI4,%d>\n",
999+
err, &conn->c_laddr, &conn->c_faddr, conn->c_tos);
9991000
rds_conn_drop(conn, DR_IB_PAS_SETUP_QP_FAIL);
10001001
goto out;
10011002
}
@@ -1008,7 +1009,8 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
10081009
/* rdma_accept() calls rdma_reject() internally if it fails */
10091010
err = rdma_accept(cm_id, &conn_param);
10101011
if (err) {
1011-
pr_warn("RDS/IB: rdma_accept failed (%d)\n", err);
1012+
pr_warn("RDS/IB: rdma_accept failed with err(%d) for conn <%pI4,%pI4,%d>\n",
1013+
err, &conn->c_laddr, &conn->c_faddr, conn->c_tos);
10121014
rds_conn_drop(conn, DR_IB_RDMA_ACCEPT_FAIL);
10131015
}
10141016

0 commit comments

Comments
 (0)