From: Harry van Haaren Date: Mon, 29 Jan 2018 16:37:31 +0000 (+0000) Subject: app/pdump: call EAL cleanup before exit X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=295d71095a541bfe11ad77fe4065ab7de3ce8ce5;p=dpdk.git app/pdump: call EAL cleanup before exit This patch adds a call to the newly introduced cleanup() function just before quitting the pdump app. Adding this function call before quitting from a secondary processes is important, as otherwise it will leak hugepage memory. For a secondary process that is run multiple times, this could cause hugepage memory to become depleted and stop a secondary process from starting. Signed-off-by: Harry van Haaren Acked-by: Vipin Varghese --- diff --git a/app/pdump/main.c b/app/pdump/main.c index 0f70c750c2..f6865bdbd1 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -882,5 +882,9 @@ main(int argc, char **argv) /* dump debug stats */ print_pdump_stats(); + ret = rte_eal_cleanup(); + if (ret) + printf("Error from rte_eal_cleanup(), %d\n", ret); + return 0; }