Harry van Haaren aec9c13c52 eal: add function to release internal resources
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 application.

The rte_exit() and rte_panic() functions must be considered,
particularly if they should call rte_eal_cleanup() to release any
resources or not. This patch adds the cleanup to rte_exit(),
but does not clean up on rte_panic(). The reason to not clean
up on panicing is that the developer may wish to inspect the
exact internal state of EAL and hugepages.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Vipin Varghese <vipin.varghese@intel.com>
2018-01-29 20:33:53 +01:00
..
2018-01-11 23:18:24 +01:00
2015-05-12 15:13:15 +02:00
2017-10-27 00:53:07 +02:00
2016-04-01 18:56:27 +02:00
2016-12-06 17:56:04 +01:00
2017-03-15 18:49:41 +01:00
2016-04-11 23:56:34 +02:00
2017-07-20 00:06:07 +03:00
2016-11-07 21:50:27 +01:00
2015-12-15 13:50:42 +01:00
2018-01-11 18:39:54 +01:00
2017-03-29 22:25:34 +02:00
2018-01-11 18:40:20 +01:00
2017-10-09 01:54:29 +02:00
2015-04-29 18:34:58 +02:00