Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: Enable non page aligned QP ring buffer allocation
HCA supports non page aligned ring buffer allocation for QP. Currently even for a QP which requires small amount of ring buffer (e.g. 320 bytes) a page aligned buffer size allocation is requested. This results in system memory wastage on an embedded platform where custom allocator has very small ring buffer memory budget. To make efficient use of custom allocator memory, request only needed amount of memory instead of page aligned memory. Note: The external custom allocator is responsible to consider fork() in case it's applicable for his case, as defined by the man page. Signed-off-by: Shay Drory <shayd@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 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