Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx4: fix buffer leakage on device close
[ upstream commit b014c6b ] 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: a2ce212 ("net/mlx4: separate Tx configuration functions") Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
- Loading branch information