Re: [dpdk-dev] [PATCH v3 2/2] eal/malloc: fix RTE malloc element free

2017-10-09 Thread Thomas Monjalon
13/09/2017 14:06, Sergio Gonzalez Monroy: > On 09/09/2017 08:33, Xueming Li wrote: > > malloc_elem_free() is clearing(setting to 0) the trailer cookie when > > RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, > > part of joined memory is not getting cleared due to missing the

Re: [dpdk-dev] [PATCH v3 2/2] eal/malloc: fix RTE malloc element free

2017-09-13 Thread Sergio Gonzalez Monroy
On 09/09/2017 08:33, Xueming Li wrote: malloc_elem_free() is clearing(setting to 0) the trailer cookie when RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, part of joined memory is not getting cleared due to missing the length of trailer cookie in the middle. This patch fi

[dpdk-dev] [PATCH v3 2/2] eal/malloc: fix RTE malloc element free

2017-09-09 Thread Xueming Li
malloc_elem_free() is clearing(setting to 0) the trailer cookie when RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, part of joined memory is not getting cleared due to missing the length of trailer cookie in the middle. This patch fixes calculation of free memory length to