aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2013-07-01 18:11:21 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-07-07 21:36:46 -0400
commitc5a2adbfcbc1d364371cd81c4180c7a83b73c5a0 (patch)
tree3de7bf549141163dc3e3a8a2b63002571bf0ddbc /drivers/infiniband/ulp
parent8dc8632aa7bf1de7a56daea56a7011cbfff76678 (diff)
iser-target: Add vendor_err debug output
Add output for ib_wc.vendor_err in isert_cq_[t,r]x_work(), which is useful for debugging future issues. Reported-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index d6cc5999d793..66712bd7dc11 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -1487,6 +1487,7 @@ isert_cq_tx_work(struct work_struct *work)
1487 } else { 1487 } else {
1488 pr_debug("TX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n"); 1488 pr_debug("TX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n");
1489 pr_debug("TX wc.status: 0x%08x\n", wc.status); 1489 pr_debug("TX wc.status: 0x%08x\n", wc.status);
1490 pr_debug("TX wc.vendor_err: 0x%08x\n", wc.vendor_err);
1490 atomic_dec(&isert_conn->post_send_buf_count); 1491 atomic_dec(&isert_conn->post_send_buf_count);
1491 isert_cq_comp_err(tx_desc, isert_conn); 1492 isert_cq_comp_err(tx_desc, isert_conn);
1492 } 1493 }
@@ -1526,9 +1527,11 @@ isert_cq_rx_work(struct work_struct *work)
1526 isert_rx_completion(rx_desc, isert_conn, xfer_len); 1527 isert_rx_completion(rx_desc, isert_conn, xfer_len);
1527 } else { 1528 } else {
1528 pr_debug("RX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n"); 1529 pr_debug("RX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n");
1529 if (wc.status != IB_WC_WR_FLUSH_ERR) 1530 if (wc.status != IB_WC_WR_FLUSH_ERR) {
1530 pr_debug("RX wc.status: 0x%08x\n", wc.status); 1531 pr_debug("RX wc.status: 0x%08x\n", wc.status);
1531 1532 pr_debug("RX wc.vendor_err: 0x%08x\n",
1533 wc.vendor_err);
1534 }
1532 isert_conn->post_recv_buf_count--; 1535 isert_conn->post_recv_buf_count--;
1533 isert_cq_comp_err(NULL, isert_conn); 1536 isert_cq_comp_err(NULL, isert_conn);
1534 } 1537 }