Skip to content

Commit

Permalink
pyverbs: Add support for address handle creation
Browse files Browse the repository at this point in the history
This patch adds the needed classes for Address Handle creation: GRH,
GlobalRoute, AHAttr and AH.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
  • Loading branch information
noaos committed May 6, 2019
1 parent be35d95 commit db06a33
Show file tree
Hide file tree
Showing 7 changed files with 466 additions and 19 deletions.
3 changes: 2 additions & 1 deletion pyverbs/CMakeLists.txt
Expand Up @@ -12,9 +12,10 @@ rdma_cython_module(pyverbs
)

rdma_python_module(pyverbs
pyverbs_error.py
__init__.py
pyverbs_error.py
run_tests.py
utils.py
)

rdma_python_test(pyverbs/tests
Expand Down
16 changes: 15 additions & 1 deletion pyverbs/addr.pxd
@@ -1,9 +1,23 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2018, Mellanox Technologies. All rights reserved. See COPYING file

from .base cimport PyverbsObject
from .base cimport PyverbsObject, PyverbsCM
from pyverbs cimport libibverbs as v


cdef class GID(PyverbsObject):
cdef v.ibv_gid gid

cdef class GRH(PyverbsObject):
cdef v.ibv_grh grh

cdef class GlobalRoute(PyverbsObject):
cdef v.ibv_global_route gr

cdef class AHAttr(PyverbsObject):
cdef v.ibv_ah_attr ah_attr

cdef class AH(PyverbsCM):
cdef v.ibv_ah *ah
cdef object pd
cpdef close(self)

0 comments on commit db06a33

Please sign in to comment.