[openib-general] Register virtual for kernel API?
Roland Dreier
roland at topspin.com
Thu Jul 29 09:32:51 PDT 2004
Sean> My initial thought is to agree. Doesn't iwarp only support
Sean> physical registration? (Meaning, if so, then the iwarp
Sean> designers didn't find it necessary either.)
OK, here's a patch removing ib_reg_mr, ib_rereg_mr and ib_reg_smr (I
don't think shared memory makes sense in the kernel). I also changed
ib_rereg_phys_mr to return an int, since I assume it will update the
struct ib_mr * passed to it without allocating a new one.
- R.
Index: ib_verbs.h
===================================================================
--- ib_verbs.h (revision 539)
+++ ib_verbs.h (working copy)
@@ -616,13 +616,6 @@
int ib_destroy_cq(struct ib_cq *cq);
-struct ib_mr *ib_reg_mr(struct ib_pd *pd,
- void *addr,
- u64 size,
- int mr_access_flags,
- u32 *lkey,
- u32 *rkey);
-
struct ib_mr *ib_reg_phys_mr(struct ib_pd *pd,
struct ib_phys_buf *phys_buf_array,
int num_phys_buf,
@@ -636,32 +629,16 @@
int ib_dereg_mr(struct ib_mr *mr);
-struct ib_mr *ib_rereg_mr(struct ib_mr *mr,
- int mr_rereg_mask,
- struct ib_pd *pd,
- void *addr,
- u64 size,
- int mr_access_flags,
- u32 *lkey,
- u32 *rkey);
+int ib_rereg_phys_mr(struct ib_mr *mr,
+ int mr_rereg_mask,
+ struct ib_pd *pd,
+ struct ib_phys_buf *phys_buf_array,
+ int num_phys_buf,
+ int mr_access_flags,
+ u64 *iova_start,
+ u32 *lkey,
+ u32 *rkey);
-struct ib_mr *ib_rereg_phys_mr(struct ib_mr *mr,
- int mr_rereg_mask,
- struct ib_pd *pd,
- struct ib_phys_buf *phys_buf_array,
- int num_phys_buf,
- int mr_access_flags,
- u64 *iova_start,
- u32 *lkey,
- u32 *rkey);
-
-struct ib_mr *ib_reg_smr(struct ib_mr *mr,
- struct ib_pd *pd,
- int mr_access_flags,
- u64 *iova_start,
- u32 *lkey,
- u32 *rkey);
-
struct ib_mw *ib_alloc_mw(struct ib_pd *pd,
u32 *rkey);
More information about the general
mailing list