[PATCH rdma-core 5/8] pyverbs: Expose MR's length property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



MR's length is needed for testing purposes.

Signed-off-by: Noa Osherovich <noaos@xxxxxxxxxxxx>
Reviewed-by: Edward Srouji <edwards@xxxxxxxxxxxx>
---
 pyverbs/mr.pyx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyverbs/mr.pyx b/pyverbs/mr.pyx
index 9b1277f0882f..234e864209a2 100644
--- a/pyverbs/mr.pyx
+++ b/pyverbs/mr.pyx
@@ -116,6 +116,10 @@ cdef class MR(PyverbsCM):
     def rkey(self):
         return self.mr.rkey
 
+    @property
+    def length(self):
+        return self.mr.length
+
 
 cdef class MWBindInfo(PyverbsCM):
     def __init__(self, MR mr not None, addr, length, mw_access_flags):
-- 
2.21.0





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux