[PATCH 4/5] app/testpmd: stop and close dmadevs at exit
Bruce Richardson
bruce.richardson at intel.com
Tue Apr 12 15:36:48 CEST 2022
On Fri, Apr 08, 2022 at 03:15:03PM +0100, Kevin Laatz wrote:
> DMA devices are created during PCI probe in EAL init. In order to
> perform cleanup for those devices, they need to be stopped and closed.
> This patch adds the necessary cleanup to ensure clean exit.
>
> Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> ---
> app/test-pmd/testpmd.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> index fe2ce19f99..438749c5b8 100644
> --- a/app/test-pmd/testpmd.c
> +++ b/app/test-pmd/testpmd.c
> @@ -45,6 +45,7 @@
> #include <rte_pci.h>
> #include <rte_ether.h>
> #include <rte_ethdev.h>
> +#include <rte_dmadev.h>
This addition triggers a build error for me, as the header is not found.
Does dmadev need to be added as a testpmd dependency in this case?
More information about the dev
mailing list