[dpdk-dev] [PATCH v3] service: fix memory leak by rte_service_init

Van Haaren, Harry harry.van.haaren at intel.com
Fri Jan 26 16:20:47 CET 2018


> From: Varghese, Vipin
> Sent: Friday, January 26, 2018 8:56 PM
> To: Van Haaren, Harry <harry.van.haaren at intel.com>; dev at dpdk.org
> Cc: stable at dpdk.org; Varghese, Vipin <vipin.varghese at intel.com>
> Subject: [PATCH v3] service: fix memory leak by rte_service_init
> 
> The rte_service_finalize routine checks if service is initialized
> or not. If yes; releases internal memory for services and lcore
> states are freed. This routine is to be invoked at end of application
> termination.
> 
> Fixes: 21698354c832 ("service: introduce service cores concept")
> Cc: harry.van.haaren at intel.com
> 
> Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>


Thanks Vipin!

@Stable - this patches allows for fixes secondary processes that
init and quit often, to avoid leaking hugepages memory. As such,
I think it is valuable to include in stable.

Acked-by: Harry van Haaren <harry.van.haaren at intel.com>


> V2 Changes:
> - renamed routine to finalize (Bruce)
> - improved code flow (Harry)
> 
> V3 Changes:
> - fix order of function in map file


More information about the dev mailing list