[openib-general] [PATCH] Change ib_map_fmr to ib_map_phys_fmr

Sean Hefty mshefty at ichips.intel.com
Wed Sep 1 16:54:54 PDT 2004


This patch replaces ib_map_fmr with ib_map_phys_fmr.

- Sean
-- 
Index: ib_verbs.h
===================================================================
--- ib_verbs.h	(revision 718)
+++ ib_verbs.h	(working copy)
@@ -710,10 +710,10 @@
 	struct ib_fmr *	 (*alloc_fmr)(struct ib_pd *pd,
 				      int mr_access_flags,
 				      struct ib_fmr_attr *fmr_attr);
-	int		 (*map_fmr)(struct ib_fmr *fmr, void *addr, u64 size);
 	int		 (*map_phys_fmr)(struct ib_fmr *fmr,
 					 struct ib_phys_buf *phys_buf_array,
-					 int num_phys_buf);
+					 int num_phys_buf,
+					 u64 *iova_start);
 	int		 (*unmap_fmr)(struct ib_fmr **fmr_array, int fmr_cnt);
 	int		 (*dealloc_fmr)(struct ib_fmr *fmr);
 	int		 (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid,
@@ -879,11 +879,13 @@
 			    int mr_access_flags,
 			    struct ib_fmr_attr *fmr_attr);
 
-static inline int ib_map_fmr(struct ib_fmr *fmr,
-			     void *addr,
-			     u64 size)
+static inline int ib_map_phys_fmr(struct ib_fmr *fmr,
+				  struct ib_phys_buf *phys_buf_array,
+				  int num_phys_buf,
+				  u64 *iova_start)
 {
-	return fmr->device->map_fmr(fmr, addr, size);
+	return fmr->device->map_phys_fmr(fmr, phys_buf_array, num_phys_buf,
+					 iova_start);
 }
 
 static inline int ib_unmap_fmr(struct ib_fmr **fmr_array,



More information about the general mailing list