verbs: custom parent-domain allocators#596
Merged
yishaih merged 6 commits intolinux-rdma:masterfrom Nov 11, 2019
Merged
Conversation
To commit 45b268543a8d ("RDMA/uapi: Fix and re-organize the usage of
rdma_driver_id")
Signed-off-by: Yishai Hadas <yishaih@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>
Extend mlx5_alloc_parent_domain() to support custom allocator, downstream patches from this series will use this functionality. Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Add custom allocation support for QP and RWQ buffers by extending the internal allocation flows to consider this option. Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Add custom allocation support for DBR by extending the internal allocation/free flows to consider this option. Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Add custom allocation support for SRQ buffer by extending the internal allocation flow to consider this option. As part of this change other options that were missed as of "extern allocator" became applicable as well. Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This series extends 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 API was introduced in the mailing list by the below RFC and was implemented by mlx5 provider.
https://www.spinics.net/lists/linux-rdma/msg84590.html