diff mbox

[RFC,1/2] IB/uverbs: Add memory type to ib_umem structure

Message ID 20101202190224.13657.94704.stgit@build.ogc.int (mailing list archive)
State New, archived
Headers show

Commit Message

Tom Tucker Dec. 2, 2010, 7:02 p.m. UTC
None
diff mbox

Patch

diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h
index 9ee0d2e..566b07f 100644
--- a/include/rdma/ib_umem.h
+++ b/include/rdma/ib_umem.h
@@ -39,8 +39,14 @@ 
 
 struct ib_ucontext;
 
+enum ib_umem_type {
+	IB_UMEM_MEM_MAP = 0,
+	IB_UMEM_IO_MAP
+};
+
 struct ib_umem {
 	struct ib_ucontext     *context;
+	enum ib_umem_type	type;
 	size_t			length;
 	int			offset;
 	int			page_size;