diff options
author | Erez Zilber <erezz@voltaire.com> | 2006-09-11 05:26:33 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:52 -0400 |
commit | d81110285f7f6c07a0ce8f99a5ff158a647cd649 (patch) | |
tree | 7ecbae2d81a7464114a7d57e1a7d0230aaa21071 /drivers/infiniband/ulp/iser/iscsi_iser.h | |
parent | e981f1d4b8288072ba7cf6b7141cd4aefb404383 (diff) |
IB/iser: Do not use FMR for a single dma entry sg
Fast Memory Registration (fmr) is used to register for rdma an sg whose
elements are not linearly sequential after dma mapping.
The IB verbs layer provides an "all dma memory MR (memory region)" which
can be used for RDMA-ing a dma linearly sequential buffer.
Change the code to use the dma mr instead of doing fmr when dma mapping
produces a single dma entry sg.
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')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h index 0ba02abb0414..7e1a411db2a3 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.h +++ b/drivers/infiniband/ulp/iser/iscsi_iser.h | |||
@@ -175,6 +175,7 @@ struct iser_mem_reg { | |||
175 | u64 va; | 175 | u64 va; |
176 | u64 len; | 176 | u64 len; |
177 | void *mem_h; | 177 | void *mem_h; |
178 | int is_fmr; | ||
178 | }; | 179 | }; |
179 | 180 | ||
180 | struct iser_regd_buf { | 181 | struct iser_regd_buf { |