[dpdk-dev] [PATCH v3 08/17] dma/idxd: add configure and info_get functions

Conor Walsh conor.walsh at intel.com
Thu Sep 9 13:23:43 CEST 2021


> Add functions for device configuration. The info_get function is included
> here since it can be useful for checking successful configuration.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>

<snip>

> +The following code shows how the device is configured in
> +``test_dmadev.c``:
> +
> +.. literalinclude:: ../../../app/test/test_dmadev.c
> +   :language: c
> +   :start-after: Setup of the dmadev device. 8<
> +   :end-before: >8 End of setup of the dmadev device.
> +   :dedent: 1
> +
> +Once configured, the device can then be made ready for use by calling the
> +``rte_dmadev_start()`` API.

Last line should be in the next patch, but it doesn't really matter.

Reviewed-by: Conor Walsh <conor.walsh at intel.com>



More information about the dev mailing list