Re: [dpdk-dev] [PATCH v5 2/4] eal: add function to release internal resources

2018-01-29 Thread Thomas Monjalon
29/01/2018 17:37, Harry van Haaren: > @@ -79,6 +80,10 @@ rte_exit(int exit_code, const char *format, ...) > va_end(ap); > > #ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR > + int ret = rte_eal_cleanup(); You should not declare a variable in the middle of the function. Will fix on apply. > +

[dpdk-dev] [PATCH v5 2/4] eal: add function to release internal resources

2018-01-29 Thread Harry van Haaren
This commit adds a new function rte_eal_cleanup(). The function serves as a hook to allow DPDK to release internal resources (e.g.: hugepage allocations). This function allows DPDK to become more like an ordinary library, where the library context itself can be initialized and cleaned up by the ap