[dpdk-dev] [PATCH v2] ip_frag: free mbufs on reassembly table destroy

Ananyev, Konstantin konstantin.ananyev at intel.com
Tue Jun 6 00:25:31 CEST 2017

> -----Original Message-----
> From: Allain Legacy [mailto:allain.legacy at windriver.com]
> Sent: Monday, June 5, 2017 4:49 PM
> To: Ananyev, Konstantin <konstantin.ananyev at intel.com>
> Cc: dev at dpdk.org; Osman, Dahir (Wind River) <dahir.osman at windriver.com>
> Subject: [PATCH v2] ip_frag: free mbufs on reassembly table destroy
> From: Dahir Osman <dahir.osman at windriver.com>
> The rte_ip_frag_table_destroy procedure simply releases the memory for the
> table without freeing the packet buffers that may be referenced in the hash
> table for in-flight or incomplete packet reassembly operations.  To prevent
> leaked mbufs go through the list of fragments and free each one
> individually.
> Fixes: 416707812c03 ("ip_frag: refactor reassembly code into a proper library")
> Reported-by: Matt Peters <matt.peters at windriver.com>
> Signed-off-by: Allain Legacy <allain.legacy at windriver.com>
> ---

Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>

More information about the dev mailing list