Hi,

> -----Original Message-----
> From: Viacheslav Ovsiienko <[email protected]>
> Sent: Saturday, April 17, 2021 8:14 PM
> To: [email protected]
> Cc: [email protected]; Raslan Darawsheh <[email protected]>; Matan
> Azrad <[email protected]>; Ori Kam <[email protected]>
> 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: [email protected]
> 
> Signed-off-by: Viacheslav Ovsiienko <[email protected]>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

Reply via email to