DPDK  21.08.0
Data Fields
rte_vhost_async_channel_ops Struct Reference

#include <rte_vhost_async.h>

Data Fields

int32_t(* transfer_data )(int vid, uint16_t queue_id, struct rte_vhost_async_desc *descs, struct rte_vhost_async_status *opaque_data, uint16_t count)
 
int32_t(* check_completed_copies )(int vid, uint16_t queue_id, struct rte_vhost_async_status *opaque_data, uint16_t max_packets)
 

Detailed Description

dma operation callbacks to be implemented by applications

Examples:
examples/vhost/main.c.

Definition at line 47 of file rte_vhost_async.h.

Field Documentation

◆ transfer_data

int32_t(* transfer_data) (int vid, uint16_t queue_id, struct rte_vhost_async_desc *descs, struct rte_vhost_async_status *opaque_data, uint16_t count)

instruct async engines to perform copies for a batch of packets

Parameters
vidid of vhost device to perform data copies
queue_idqueue id to perform data copies
descsan array of DMA transfer memory descriptors
opaque_dataopaque data pair sending to DMA engine
countnumber of elements in the "descs" array
Returns
number of descs processed, negative value means error
Examples:
examples/vhost/main.c.

Definition at line 64 of file rte_vhost_async.h.

◆ check_completed_copies

int32_t(* check_completed_copies) (int vid, uint16_t queue_id, struct rte_vhost_async_status *opaque_data, uint16_t max_packets)

check copy-completed packets from the async engine

Parameters
vidid of vhost device to check copy completion
queue_idqueue id to check copy completion
opaque_databuffer to receive the opaque data pair from DMA engine
max_packetsmax number of packets could be completed
Returns
number of async descs completed, negative value means error
Examples:
examples/vhost/main.c.

Definition at line 81 of file rte_vhost_async.h.


The documentation for this struct was generated from the following file: