path: root/drivers/infiniband/ulp/iser/iscsi_iser.h
diff options
authorErez Zilber <erezz@voltaire.com>2006-09-27 16:43:06 +0300
committerRoland Dreier <rolandd@cisco.com>2006-09-28 10:53:18 -0700
commit74a2078061409e027ccb51a28cf6174c31ab8f99 (patch)
tree281557a02ff3c5fe33e0d2dbf52fe77b6eaab474 /drivers/infiniband/ulp/iser/iscsi_iser.h
parent87e8df7a273c7c1acb864c90b5253609c44375a6 (diff)
IB/iser: DMA unmap unaligned for RDMA data before touching it
iSER uses the DMA mapping api to map the page holding the SCSI command data to the HCA DMA address space. When the command data is not aligned for RDMA, the data is copied to/from an allocated buffer which in turn is used for executing this command. The pages associated with the command must be unmapped before being touched. Signed-off-by: Erez Zilber <erezz@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index 2826540d2f2..9c53916f28c 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -355,4 +355,11 @@ int iser_post_send(struct iser_desc *tx_desc);
int iser_conn_state_comp(struct iser_conn *ib_conn,
enum iser_ib_conn_state comp);
+int iser_dma_map_task_data(struct iscsi_iser_cmd_task *iser_ctask,
+ struct iser_data_buf *data,
+ enum iser_data_dir iser_dir,
+ enum dma_data_direction dma_dir);
+void iser_dma_unmap_task_data(struct iscsi_iser_cmd_task *iser_ctask);