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>
This commit is contained in:
Nicholas Bellinger 2013-07-01 15:11:21 -07:00
Родитель 8dc8632aa7
Коммит c5a2adbfcb
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1487,6 +1487,7 @@ isert_cq_tx_work(struct work_struct *work)
} else { } else {
pr_debug("TX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n"); pr_debug("TX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n");
pr_debug("TX wc.status: 0x%08x\n", wc.status); pr_debug("TX wc.status: 0x%08x\n", wc.status);
pr_debug("TX wc.vendor_err: 0x%08x\n", wc.vendor_err);
atomic_dec(&isert_conn->post_send_buf_count); atomic_dec(&isert_conn->post_send_buf_count);
isert_cq_comp_err(tx_desc, isert_conn); isert_cq_comp_err(tx_desc, isert_conn);
} }
@ -1526,9 +1527,11 @@ isert_cq_rx_work(struct work_struct *work)
isert_rx_completion(rx_desc, isert_conn, xfer_len); isert_rx_completion(rx_desc, isert_conn, xfer_len);
} else { } else {
pr_debug("RX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n"); pr_debug("RX wc.status != IB_WC_SUCCESS >>>>>>>>>>>>>>\n");
if (wc.status != IB_WC_WR_FLUSH_ERR) if (wc.status != IB_WC_WR_FLUSH_ERR) {
pr_debug("RX wc.status: 0x%08x\n", wc.status); pr_debug("RX wc.status: 0x%08x\n", wc.status);
pr_debug("RX wc.vendor_err: 0x%08x\n",
wc.vendor_err);
}
isert_conn->post_recv_buf_count--; isert_conn->post_recv_buf_count--;
isert_cq_comp_err(NULL, isert_conn); isert_cq_comp_err(NULL, isert_conn);
} }