Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyverbs: Add support for address handle creation
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
Showing
7 changed files
with
466 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
Oops, something went wrong.