On 3/27/2018 4:48 AM, Gaetan Rivet wrote:
Signed-off-by: Gaetan Rivet <[email protected]> --- lib/librte_eal/common/include/rte_class.h | 5 +++++ 1 file changed, 5 insertions(+)diff --git a/lib/librte_eal/common/include/rte_class.h b/lib/librte_eal/common/include/rte_class.h index 59b578e3e..95107d937 100644 --- a/lib/librte_eal/common/include/rte_class.h +++ b/lib/librte_eal/common/include/rte_class.h @@ -112,6 +112,11 @@ static void classinitfn_ ##nm(void) \ {\ (cls).name = RTE_STR(nm);\ rte_class_register(&cls); \ +} \ +RTE_FINI_PRIO(classfinifn_ ##nm, CLASS); \ +static void classfinifn_ ##nm(void) \ +{ \ + rte_class_unregister(&cls); \ }#ifdef __cplusplus
I think this can be merged with the Patch 05/20 - isn't it?

