Hi, > -----Original Message----- > From: Viacheslav Ovsiienko <viachesl...@nvidia.com> > Sent: Saturday, April 17, 2021 8:14 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh <rasl...@nvidia.com>; Matan > Azrad <ma...@nvidia.com>; Ori Kam <or...@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: sta...@dpdk.org > > Signed-off-by: Viacheslav Ovsiienko <viachesl...@nvidia.com>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh