Hi, <snip> > + > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice. > + * > + * Close a DMA device. > + * > + * The device cannot be restarted after this call. > + * > + * @param dev_id > + * The identifier of the device. > + * > + * @return > + * 0 on success. Otherwise negative value is returned. > + */ > +__rte_experimental > +int > +rte_dmadev_close(uint16_t dev_id); > + > +/** > + * rte_dma_direction - DMA transfer direction defines. > + */ > +enum rte_dma_direction { > + RTE_DMA_DIR_MEM_TO_MEM, > + /**< DMA transfer direction - from memory to memory. > + * > + * @see struct rte_dmadev_vchan_conf::direction > + */ > + RTE_DMA_DIR_MEM_TO_DEV, > + /**< DMA transfer direction - from memory to device. > + * In a typical scenario, the SoCs are installed on host servers as > + * iNICs through the PCIe interface. In this case, the SoCs works in > + * EP(endpoint) mode, it could initiate a DMA move request from > memory > + * (which is SoCs memory) to device (which is host memory). > + * > + * @see struct rte_dmadev_vchan_conf::direction > + */ > + RTE_DMA_DIR_DEV_TO_MEM, > + /**< DMA transfer direction - from device to memory. > + * In a typical scenario, the SoCs are installed on host servers as > + * iNICs through the PCIe interface. In this case, the SoCs works in > + * EP(endpoint) mode, it could initiate a DMA move request from device > + * (which is host memory) to memory (which is SoCs memory). > + * > + * @see struct rte_dmadev_vchan_conf::direction > + */ > + RTE_DMA_DIR_DEV_TO_DEV, > + /**< DMA transfer direction - from device to device. > + * In a typical scenario, the SoCs are installed on host servers as > + * iNICs through the PCIe interface. In this case, the SoCs works in > + * EP(endpoint) mode, it could initiate a DMA move request from device > + * (which is host memory) to the device (which is another host memory). > + * > + * @see struct rte_dmadev_vchan_conf::direction > + */ > +}; > + > +/** >.. The enum rte_dma_direction must have a member RTE_DMA_DIR_ANY for a channel that supports all 4 directions. <snip>
Regards, Gagan