[dpdk-dev] [PATCH] net/mlx4: fix buffer leakage on device close
Raslan Darawsheh
rasland at nvidia.com
Wed Apr 28 11:15:42 CEST 2021
Hi,
> -----Original Message-----
> From: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> Sent: Saturday, April 17, 2021 8:14 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Matan
> Azrad <matan at nvidia.com>; Ori Kam <orika at nvidia.com>
> Subject: [PATCH] net/mlx4: fix buffer leakage on device close
>
> The mlx4 PMD tracks the buffers (mbufs) for the packets being transmitted
> in the dedicated array named as "elts". The tx_burst routine frees the mbufs
> from this array once it needs to rearm the hardware descriptor and store the
> new mbuf, so it looks like as replacement mbuf pointer in the elts array.
>
> On the device stop mlx4 PMD freed only the part of elts according tail and
> head pointers, leaking the rest of buffers, remained in the elts array.
>
> Fixes: a2ce2121c01c ("net/mlx4: separate Tx configuration functions")
> Cc: stable at dpdk.org
>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list