summaryrefslogtreecommitdiff
path: root/net/rds/ib_send.c
diff options
context:
space:
mode:
authorSudhakar Dindukurti <sudhakar.dindukurti@oracle.com>2019-10-02 02:33:14 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-03 02:25:49 +0300
commitfab401e1ee96efc58dc3891c6a9e9ee3cc6ba0f8 (patch)
treef81da73dabd9cc4d2867eebeb8fb4051831611fa /net/rds/ib_send.c
parent80f60a911e5ea4de9e25b539bec4f597af7b2ff4 (diff)
downloadlinux-fab401e1ee96efc58dc3891c6a9e9ee3cc6ba0f8.tar.xz
net/rds: Log vendor error if send/recv Work requests fail
Log vendor error if work requests fail. Vendor error provides more information that is used for debugging the issue. Signed-off-by: Sudhakar Dindukurti <sudhakar.dindukurti@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib_send.c')
-rw-r--r--net/rds/ib_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index dfe6237dafe2..102c5c535977 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -300,10 +300,10 @@ 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 on <%pI6c,%pI6c,%d> had status %u (%s), disconnecting and reconnecting\n",
+ rds_ib_conn_error(conn, "send completion on <%pI6c,%pI6c,%d> had status %u (%s), vendor err 0x%x, disconnecting and reconnecting\n",
&conn->c_laddr, &conn->c_faddr,
conn->c_tos, wc->status,
- ib_wc_status_msg(wc->status));
+ ib_wc_status_msg(wc->status), wc->vendor_err);
}
}