Commit 7748681b authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Nicholas Bellinger

iser-target: Rename rend/recv completion routines

Make receive/send completion handling routines symmetrical.
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent fd8205e8
...@@ -1543,7 +1543,8 @@ isert_rx_do_work(struct iser_rx_desc *rx_desc, struct isert_conn *isert_conn) ...@@ -1543,7 +1543,8 @@ isert_rx_do_work(struct iser_rx_desc *rx_desc, struct isert_conn *isert_conn)
} }
static void static void
isert_rx_completion(struct iser_rx_desc *desc, struct isert_conn *isert_conn, isert_rcv_completion(struct iser_rx_desc *desc,
struct isert_conn *isert_conn,
u32 xfer_len) u32 xfer_len)
{ {
struct ib_device *ib_dev = isert_conn->conn_cm_id->device; struct ib_device *ib_dev = isert_conn->conn_cm_id->device;
...@@ -1969,7 +1970,7 @@ isert_response_completion(struct iser_tx_desc *tx_desc, ...@@ -1969,7 +1970,7 @@ isert_response_completion(struct iser_tx_desc *tx_desc,
} }
static void static void
isert_send_completion(struct iser_tx_desc *tx_desc, isert_snd_completion(struct iser_tx_desc *tx_desc,
struct isert_conn *isert_conn) struct isert_conn *isert_conn)
{ {
struct ib_device *ib_dev = isert_conn->conn_cm_id->device; struct ib_device *ib_dev = isert_conn->conn_cm_id->device;
...@@ -2061,10 +2062,10 @@ isert_handle_wc(struct ib_wc *wc) ...@@ -2061,10 +2062,10 @@ isert_handle_wc(struct ib_wc *wc)
if (likely(wc->status == IB_WC_SUCCESS)) { if (likely(wc->status == IB_WC_SUCCESS)) {
if (wc->opcode == IB_WC_RECV) { if (wc->opcode == IB_WC_RECV) {
rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id;
isert_rx_completion(rx_desc, isert_conn, wc->byte_len); isert_rcv_completion(rx_desc, isert_conn, wc->byte_len);
} else { } else {
tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id;
isert_send_completion(tx_desc, isert_conn); isert_snd_completion(tx_desc, isert_conn);
} }
} else { } else {
if (wc->status != IB_WC_WR_FLUSH_ERR) if (wc->status != IB_WC_WR_FLUSH_ERR)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment