From: Wengang Wang Date: Thu, 20 Aug 2015 07:24:12 +0000 (+0800) Subject: rds: print vendor error on error induced disconnect/re-connect X-Git-Tag: v4.1.12-92~293^2^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2c796443c7fb78208e9530efb6a8b7f5c313274e;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c index 0a476fa57e37..b79e4581502e 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; }