]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
winverbs: add mr interface
authorSean Hefty <sean.hefty@intel.com>
Tue, 13 Jul 2010 18:51:32 +0000 (11:51 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 14 Jul 2010 21:29:02 +0000 (14:29 -0700)
The lkey isn't guaranteed to be unique.  To ensure that we track
memory registrations properly, associate MRs with their own data
structure.  Deregistration will reference the data structure, rather
than just the lkey from the registration.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/core/winverbs/kernel/wv_pd.h

index f30cf4e537de37b6600421c33c8b9fc096a25483..c45b40e4f5fbc50a167f9fe020095ea58021d5dc 100644 (file)
@@ -49,10 +49,10 @@ typedef struct _WV_PROTECTION_DOMAIN
 \r
        LIST_ENTRY                      QpList;\r
        LIST_ENTRY                      SrqList;\r
+       LIST_ENTRY                      MrList;\r
        LIST_ENTRY                      MwList;\r
        LIST_ENTRY                      AhList;\r
        KGUARDED_MUTEX          Lock;\r
-       cl_qmap_t                       MrMap;\r
 \r
        KEVENT                          Event;\r
        LONG                            Ref;\r
@@ -73,8 +73,9 @@ void WvPdRemoveHandler(WV_PROTECTION_DOMAIN *pPd);
 \r
 typedef struct _WV_MEMORY_REGION\r
 {\r
+       WV_PROTECTION_DOMAIN    *pPd;\r
        ib_mr_handle_t                  hVerbsMr;\r
-       cl_map_item_t                   Item;\r
+       LIST_ENTRY                              Entry;\r
 \r
 }      WV_MEMORY_REGION;\r
 \r