Skip to content

Commit 49d10bb

Browse files
RDS: IB: log associates connection details for setup failures
Orabug: 22347191 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]> Reviewed-by: Mukesh Kacker <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
1 parent 1695087 commit 49d10bb

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
@@ -974,7 +974,8 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
974974

975975
err = rds_ib_setup_qp(conn);
976976
if (err) {
977-
pr_warn("RDS/IB: rds_ib_setup_qp failed (%d)\n", err);
977+
pr_warn("RDS/IB: rds_ib_setup_qp failed with err(%d) for conn <%pI4,%pI4,%d>\n",
978+
err, &conn->c_laddr, &conn->c_faddr, conn->c_tos);
978979
rds_conn_drop(conn, DR_IB_PAS_SETUP_QP_FAIL);
979980
goto out;
980981
}
@@ -987,7 +988,8 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
987988
/* rdma_accept() calls rdma_reject() internally if it fails */
988989
err = rdma_accept(cm_id, &conn_param);
989990
if (err) {
990-
pr_warn("RDS/IB: rdma_accept failed (%d)\n", err);
991+
pr_warn("RDS/IB: rdma_accept failed with err(%d) for conn <%pI4,%pI4,%d>\n",
992+
err, &conn->c_laddr, &conn->c_faddr, conn->c_tos);
991993
rds_conn_drop(conn, DR_IB_RDMA_ACCEPT_FAIL);
992994
}
993995

0 commit comments

Comments
 (0)