21 #ifndef DOCA_UROM_PLUGIN_H_
22 #define DOCA_UROM_PLUGIN_H_
26 #include <ucs/datastruct/list.h>
35 #define DOCA_UROM_PLUGIN_NAME_MAX_LEN 48
65 #pragma clang diagnostic push
66 #pragma clang diagnostic ignored "-Wflexible-array-extensions"
102 #pragma clang diagnostic pop
205 return ctx->domain_iface.addr_lookup(
ctx, domain_id,
addr);
231 return ctx->domain_iface.seg_lookup(
ctx, domain_id, va, seg);
260 return ctx->domain_iface.memh_lookup(
ctx, domain_id, seg,
len, memh);
289 return ctx->domain_iface.mkey_lookup(
ctx, domain_id, seg,
len, rkey);
enum doca_error doca_error_t
DOCA API return codes.
static doca_error_t doca_urom_worker_domain_memh_lookup(struct urom_worker_ctx *ctx, uint64_t domain_id, int seg, size_t *len, void **memh)
Worker domain segment memory handle lookup according to the domain and segment ids.
#define DOCA_UROM_PLUGIN_NAME_MAX_LEN
static doca_error_t doca_urom_worker_domain_mkey_lookup(struct urom_worker_ctx *ctx, uint64_t domain_id, int seg, size_t *len, void **rkey)
Worker domain segment remote memory key lookup according to the segment and seg ids.
static doca_error_t doca_urom_worker_domain_seg_lookup(struct urom_worker_ctx *ctx, uint64_t domain_id, uint64_t va, int *seg)
Worker domain segment id lookup according to the domain id and segment virtual address.
static doca_error_t doca_urom_worker_domain_addr_lookup(struct urom_worker_ctx *ctx, uint64_t domain_id, void **addr)
Worker domain address lookup.
char plugin_name[DOCA_UROM_PLUGIN_NAME_MAX_LEN]
UROM Worker domain lookups interface.
doca_error_t(* memh_lookup)(struct urom_worker_ctx *ctx, uint64_t domain_id, int seg, size_t *len, void **memh)
doca_error_t(* mkey_lookup)(struct urom_worker_ctx *ctx, uint64_t domain_id, int seg, size_t *len, void **rkey)
doca_error_t(* seg_lookup)(struct urom_worker_ctx *ctx, uint64_t domain_id, uint64_t va, int *seg)
doca_error_t(* addr_lookup)(struct urom_worker_ctx *ctx, uint64_t domain_id, void **addr)
UROM Worker plugin interface.
doca_error_t(* open)(struct urom_worker_ctx *ctx)
doca_error_t(* worker_cmd)(struct urom_worker_ctx *ctx, ucs_list_link_t *cmd_list)
doca_error_t(* progress)(struct urom_worker_ctx *ctx, ucs_list_link_t *notif_list)
doca_error_t(* notif_pack)(struct urom_worker_notify *notif, size_t *packed_notif_len, void *packed_notif)
doca_error_t(* addr)(struct urom_worker_ctx *ctx, void *addr, size_t *addr_len)
void(* close)(struct urom_worker_ctx *ctx)
UROM Worker command descriptor structure.
struct urom_worker_cmd worker_cmd
UROM Worker command structure.
struct urom_domain_lookups_iface domain_iface
struct urom_plugin_iface iface
UROM Worker notification descriptor structure.
struct urom_worker_notify worker_notif
UROM Worker notification structure.
struct upf_accel_ctx * ctx