diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-03-29 08:52:13 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-08 02:27:54 -0400 |
commit | 7748681bb8100f24571a53d42f180e9f4fe8f39f (patch) | |
tree | 36107fa9cbf6c52eebd8a8787a69222983f3ccbb /drivers/infiniband | |
parent | fd8205e883cd3a7ca4ca86baecf44be3114bafcf (diff) |
iser-target: Rename rend/recv completion routines
Make receive/send completion handling routines symmetrical.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 0bab74bc28e9..f01502353ae2 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -1543,8 +1543,9 @@ isert_rx_do_work(struct iser_rx_desc *rx_desc, struct isert_conn *isert_conn) | |||
1543 | } | 1543 | } |
1544 | 1544 | ||
1545 | static void | 1545 | static void |
1546 | isert_rx_completion(struct iser_rx_desc *desc, struct isert_conn *isert_conn, | 1546 | isert_rcv_completion(struct iser_rx_desc *desc, |
1547 | u32 xfer_len) | 1547 | struct isert_conn *isert_conn, |
1548 | u32 xfer_len) | ||
1548 | { | 1549 | { |
1549 | struct ib_device *ib_dev = isert_conn->conn_cm_id->device; | 1550 | struct ib_device *ib_dev = isert_conn->conn_cm_id->device; |
1550 | struct iscsi_hdr *hdr; | 1551 | struct iscsi_hdr *hdr; |
@@ -1969,7 +1970,7 @@ isert_response_completion(struct iser_tx_desc *tx_desc, | |||
1969 | } | 1970 | } |
1970 | 1971 | ||
1971 | static void | 1972 | static void |
1972 | isert_send_completion(struct iser_tx_desc *tx_desc, | 1973 | isert_snd_completion(struct iser_tx_desc *tx_desc, |
1973 | struct isert_conn *isert_conn) | 1974 | struct isert_conn *isert_conn) |
1974 | { | 1975 | { |
1975 | struct ib_device *ib_dev = isert_conn->conn_cm_id->device; | 1976 | struct ib_device *ib_dev = isert_conn->conn_cm_id->device; |
@@ -2061,10 +2062,10 @@ isert_handle_wc(struct ib_wc *wc) | |||
2061 | if (likely(wc->status == IB_WC_SUCCESS)) { | 2062 | if (likely(wc->status == IB_WC_SUCCESS)) { |
2062 | if (wc->opcode == IB_WC_RECV) { | 2063 | if (wc->opcode == IB_WC_RECV) { |
2063 | rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; | 2064 | rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; |
2064 | isert_rx_completion(rx_desc, isert_conn, wc->byte_len); | 2065 | isert_rcv_completion(rx_desc, isert_conn, wc->byte_len); |
2065 | } else { | 2066 | } else { |
2066 | tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; | 2067 | tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; |
2067 | isert_send_completion(tx_desc, isert_conn); | 2068 | isert_snd_completion(tx_desc, isert_conn); |
2068 | } | 2069 | } |
2069 | } else { | 2070 | } else { |
2070 | if (wc->status != IB_WC_WR_FLUSH_ERR) | 2071 | if (wc->status != IB_WC_WR_FLUSH_ERR) |