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