-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme: add low-level APIs to map prp/sgl without @rq
Add low-level helpers to map PRP and SGL data and data list which contains the actual prp and sgl entries within a memory page. nvme_rq_map* helpers use datalist as @rq->page.vaddr which is allocated at the initial time. Some applications might want to locate the datalist memory page in another location such as CMB (Controller Memory Buffer) rather than the host memory. In that case, application should update @rq->page, but it's not a good idea since it's a too much libvfn-specific data structure and it has its own policy. To give more flexible options to upper layer application, this patch adds low-level APIs which are much more generic than nvme_rq_map* helpers by receving a @prplist and @seg for PRP and SGL list from the caller. The newly added public helpers are: - nvme_map_prp - nvme_mapv_prp - nvme_mapv_sgl This commit does not have functional changes of the existing APIs. Signed-off-by: Minwoo Im <[email protected]>
- Loading branch information
Showing
4 changed files
with
310 additions
and
215 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
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
Oops, something went wrong.