On Mon, Jul 24, 2023 at 1:39 PM Amit Prakash Shukla <amitpraka...@marvell.com> wrote: > > Introduce event DMA adapter APIs. This patch provides information > on adapter modes and usage. Application can use this event adapter > interface to transfer packets between DMA device and event device. > > Signed-off-by: Amit Prakash Shukla <amitpraka...@marvell.com>
> +/** > + * DMA event request structure will be filled by application to provide > event request information to > + * the adapter. > + */ > +struct rte_event_dma_request { > + > + int16_t dmadev_id; > + /**< DMA device ID to be used */ > + > + uint16_t queue_pair_id; > + /**< DMA queue pair ID to be used */ dmadev wont have queue pair. Use vchan_id or so > + > + uint32_t rsvd; > + /**< Reserved bits */ > +}; > + > +/** > + * Adapter configuration structure that the adapter configuration callback > function is expected to > + * fill out. > + * > + * @see rte_event_dma_adapter_conf_cb > + */ > +struct rte_event_dma_adapter_conf { > + uint8_t event_port_id; > + /** < Event port identifier, the adapter enqueues events to this port > and dequeues DMA > + * request events in RTE_EVENT_DMA_ADAPTER_OP_FORWARD mode. > + */ > + > + uint32_t max_nb; > + /**< The adapter can return early if it has processed at least max_nb > DMA ops. This isn't DMA -> dma > + * treated as a requirement; batching may cause the adapter to > process more than max_nb DMA > + * ops. > + */ > +}; > + > + rte_event_dma_adapter_create_ext; > + rte_event_dma_adapter_create; > + rte_event_dma_adapter_free; > + rte_event_dma_adapter_queue_pair_add; > + rte_event_dma_adapter_queue_pair_del; > + rte_event_dma_adapter_start; > + rte_event_dma_adapter_stop; > + rte_event_dma_adapter_stats_get; > + rte_event_dma_adapter_stats_reset; Fix the build issues in http://mails.dpdk.org/archives/test-report/2023-July/431120.html by have dummy functions. Since it is very similar to crypto adapter, Could not find more review comments. If there are no review comments, Please send v1 with app changes and driver changes.