From: Leon Romanovsky <leon@kernel.org>
To: Yishai Hadas <yishaih@mellanox.com>
Cc: linux-rdma@vger.kernel.org, haggaie@mellanox.com,
jgg@mellanox.com, maorg@mellanox.com
Subject: Re: [PATCH rdma-core 2/6] verbs: custom parent-domain allocators
Date: Mon, 28 Oct 2019 11:48:50 +0200 [thread overview]
Message-ID: <20191028094850.GB5146@unreal> (raw)
In-Reply-To: <1572254099-30864-3-git-send-email-yishaih@mellanox.com>
On Mon, Oct 28, 2019 at 11:14:55AM +0200, Yishai Hadas wrote:
> From: Haggai Eran <haggaie@mellanox.com>
>
> Extend the parent domain object with custom allocation callbacks that
> can be used by user-applications to override the provider allocation.
>
> This can be used for example to add NUMA aware allocation.
>
> The new allocator receives context information about the parent domain,
> as well as the requested size and alignment of the buffer. It also
> receives a vendor-specific resource type code to allow customizing it
> for specific resources.
>
> The allocator then allocates the memory or returns an
> IBV_ALLOCATOR_USE_DEFAULT value to request that the provider driver use
> its own allocation method.
>
> Signed-off-by: Haggai Eran <haggaie@mellanox.com>
> Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
> ---
> libibverbs/man/ibv_alloc_parent_domain.3 | 54 ++++++++++++++++++++++++++++++++
> libibverbs/verbs.h | 12 +++++++
> 2 files changed, 66 insertions(+)
>
It is unclear to me how and maybe it is not possible for this API. but I
would expect any changes in public API be accompanied by relevant tests.
Thanks
next prev parent reply other threads:[~2019-10-28 9:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-28 9:14 [PATCH rdma-core 0/6] verbs: Custom parent-domain allocators Yishai Hadas
2019-10-28 9:14 ` [PATCH rdma-core 1/6] Update kernel headers Yishai Hadas
2019-10-28 9:14 ` [PATCH rdma-core 2/6] verbs: custom parent-domain allocators Yishai Hadas
2019-10-28 9:48 ` Leon Romanovsky [this message]
2019-10-29 10:16 ` Yishai Hadas
2019-10-28 9:14 ` [PATCH rdma-core 3/6] mlx5: Extend mlx5_alloc_parent_domain() to support custom allocator Yishai Hadas
2019-10-28 9:14 ` [PATCH rdma-core 4/6] mlx5: Add custom allocation support for QP and RWQ buffers Yishai Hadas
2019-10-28 9:14 ` [PATCH rdma-core 5/6] mlx5: Add custom allocation support for DBR Yishai Hadas
2019-10-28 9:14 ` [PATCH rdma-core 6/6] mlx5: Add custom allocation support for SRQ buffer Yishai Hadas
2019-11-11 7:46 ` [PATCH rdma-core 0/6] verbs: Custom parent-domain allocators Yishai Hadas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191028094850.GB5146@unreal \
--to=leon@kernel.org \
--cc=haggaie@mellanox.com \
--cc=jgg@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
--cc=maorg@mellanox.com \
--cc=yishaih@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox