141dc943 | 17-Jul-2024 |
Alexey Marchuk <alexeymar@nvidia.com> |
lib/dma: Add API to get user context
When a memory domain is created, the user can pass a pointer to a context which contains another pointer to a domain-specific context (aka user context). For RDM
lib/dma: Add API to get user context
When a memory domain is created, the user can pass a pointer to a context which contains another pointer to a domain-specific context (aka user context). For RDMA memory domain this user context contains a pointer to a protection domain. Further patches will use this user context in IO path, but with current API we'll have to dereference two pointers whcih isn't a performance way. To have less pointer dereferences, embed the user context at the end of memory domain structure and add API to get opaque pointer to the context
Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com> Change-Id: I55c247e21c6e990dc3c2d7a02b2ff6e73548a898 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24690 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <ben@nvidia.com>
show more ...
|
9eb0413c | 21-Feb-2024 |
Jacek Kalwas <jacek.kalwas@intel.com> |
dma: remove runtime domain check
The user shall not set callbacks on invalid (NULL) domain hence replace with assertion. This also alignes with what was done for _set_invalidate.
Change-Id: I9eb5f1
dma: remove runtime domain check
The user shall not set callbacks on invalid (NULL) domain hence replace with assertion. This also alignes with what was done for _set_invalidate.
Change-Id: I9eb5f108cb5f0e883bf23eb58702c45b9d0bdf46 Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21963 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
293f5ea8 | 08-Mar-2023 |
Ben Walker <benjamin.walker@intel.com> |
dma: add support for invalidate data
This operation is optional and is meant to be executed on the translation result.
Change-Id: Ib0568310180e3443f56bba847226d40a370805f7 Signed-off-by: Ben Walker
dma: add support for invalidate data
This operation is optional and is meant to be executed on the translation result.
Change-Id: Ib0568310180e3443f56bba847226d40a370805f7 Signed-off-by: Ben Walker <ben@nvidia.com> Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21911 Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|