From 2c796443c7fb78208e9530efb6a8b7f5c313274e Mon Sep 17 00:00:00 2001 From: Wengang Wang Date: Thu, 20 Aug 2015 15:24:12 +0800 Subject: [PATCH] rds: print vendor error on error induced disconnect/re-connect An enhancement to log vendor error when rds connections are disconnected on error and reconnects attempted. Orabug: 21527137 Signed-off-by: Wengang Wang Reviewed-by: Yuval Shaia Reviewed-by: Ajaykumar Hotchandani --- net/rds/ib_send.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c index 0a476fa57e37e..b79e4581502ed 100644 --- a/net/rds/ib_send.c +++ b/net/rds/ib_send.c @@ -307,11 +307,11 @@ 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 */ if (wc->status != IB_WC_SUCCESS && rds_conn_up(conn)) { rds_ib_conn_error(conn, - "send completion <%u.%u.%u.%u,%u.%u.%u.%u,%d> " - "had status %u, disconnecting and reconnecting\n", + "send completion <%u.%u.%u.%u,%u.%u.%u.%u,%d> status " + "%u vendor_err %u, disconnecting and reconnecting\n", NIPQUAD(conn->c_laddr), NIPQUAD(conn->c_faddr), - conn->c_tos, wc->status); + conn->c_tos, wc->status, wc->vendor_err); } else ic->i_last_migration = 0; } -- 2.50.1