public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-core 0/4] pyverbs: Introduce parent domain
@ 2019-11-14  9:37 Noa Osherovich
  2019-11-14  9:37 ` [PATCH rdma-core 1/4] pyverbs: Add memory allocation class Noa Osherovich
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Noa Osherovich @ 2019-11-14  9:37 UTC (permalink / raw)
  To: dledford@redhat.com, Jason Gunthorpe, Leon Romanovsky
  Cc: linux-rdma@vger.kernel.org, Noa Osherovich

Parent domains extend protection domains with custom allocators
callbacks given by the user and override the provider's allocation.

This series adds support for parent domain in pyverbs, including
a basic test and a documentation.

In order to allow Python users to provide Python allocators, pyverbs
is using the pd_context object and an internal wrapper that makes the
Python functions to be called from the provider.

Edward Srouji (4):
  pyverbs: Add memory allocation class
  pyverbs: Introduce ParentDomain class
  pyverbs: Document ParentDomain class and add a simple example
  tests: Add a test for parent domain

 Documentation/pyverbs.md                |  27 +++++
 pyverbs/base.pxd                        |   3 +
 pyverbs/base.pyx                        |  26 ++++
 pyverbs/libibverbs.pxd                  |  11 ++
 pyverbs/libibverbs_enums.pxd            |   7 ++
 pyverbs/pd.pxd                          |  17 +++
 pyverbs/pd.pyx                          | 150 ++++++++++++++++++++++--
 pyverbs/providers/mlx5/mlx5dv_enums.pxd |  11 ++
 pyverbs/srq.pyx                         |   2 +-
 tests/CMakeLists.txt                    |   1 +
 tests/test_parent_domain.py             |  86 ++++++++++++++
 11 files changed, 330 insertions(+), 11 deletions(-)
 create mode 100644 tests/test_parent_domain.py

-- 
2.21.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-11-21 16:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-14  9:37 [PATCH rdma-core 0/4] pyverbs: Introduce parent domain Noa Osherovich
2019-11-14  9:37 ` [PATCH rdma-core 1/4] pyverbs: Add memory allocation class Noa Osherovich
2019-11-14 13:33   ` Jason Gunthorpe
2019-11-14 17:00     ` Edward Srouji
2019-11-14 17:04       ` Jason Gunthorpe
2019-11-14  9:37 ` [PATCH rdma-core 2/4] pyverbs: Introduce ParentDomain class Noa Osherovich
2019-11-14 13:39   ` Jason Gunthorpe
2019-11-14 16:49     ` Edward Srouji
2019-11-14 16:50       ` Jason Gunthorpe
     [not found]         ` <VI1PR05MB4157C8E9CA220454969633A6D74E0@VI1PR05MB4157.eurprd05.prod.outlook.com>
2019-11-21 16:31           ` Jason Gunthorpe
2019-11-14  9:37 ` [PATCH rdma-core 3/4] pyverbs: Document ParentDomain class and add a simple example Noa Osherovich
2019-11-14  9:37 ` [PATCH rdma-core 4/4] tests: Add a test for parent domain Noa Osherovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox