> -----Original Message----- > From: Richardson, Bruce <bruce.richard...@intel.com> > Sent: Thursday, August 31, 2023 8:34 PM > To: dev@dpdk.org > Cc: Richardson, Bruce <bruce.richard...@intel.com>; Lu, Wenzhuo > <wenzhuo...@intel.com>; Wu, Jingjing <jingjing...@intel.com>; > sta...@dpdk.org > Subject: [PATCH v2 2/4] net/iavf: fix buffer leak on Tx queue stop > > When a queue is stopped all buffers are meant to released from it, and then a > new set of buffers reallocated on start. For the iavf code when using vector > Tx, > some buffers were left in the ring, and so those buffers were leaked. The > buffers were missed as the release code only handled one side of a > wrap-around case in the ring. > > Fix the issue by doing a single iteration of the ring freeing all buffers in > it, > handling wraparound through a simple post-increment check. > > Fixes: 319c421f3890 ("net/avf: enable SSE Rx Tx") > Fixes: 9ab9514c150e ("net/iavf: enable AVX512 for Tx") > Cc: wenzhuo...@intel.com > Cc: jingjing...@intel.com > Cc: sta...@dpdk.org > > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> Acked-by: Wenzhuo Lu <wenzhuo...@intel.com>
- [PATCH 0/4] Fix i40e/iavf queue reconfig and restarting Bruce Richardson
- [PATCH 1/4] net/i40e: fix buffer leak on Rx reconfig... Bruce Richardson
- [PATCH 2/4] net/iavf: fix buffer leak on Tx queue st... Bruce Richardson
- [PATCH 3/4] net/iavf: fix restart of Rx queue on rec... Bruce Richardson
- [PATCH 4/4] net/iavf: add support for runtime queue ... Bruce Richardson
- [PATCH v2 0/4] Fix i40e/iavf queue reconfig and rest... Bruce Richardson
- [PATCH v2 1/4] net/i40e: fix buffer leak on Rx r... Bruce Richardson
- RE: [PATCH v2 1/4] net/i40e: fix buffer leak... Zhang, Qi Z
- [PATCH v2 2/4] net/iavf: fix buffer leak on Tx q... Bruce Richardson
- RE: [PATCH v2 2/4] net/iavf: fix buffer leak... Lu, Wenzhuo
- RE: [PATCH v2 2/4] net/iavf: fix buffer ... Zhang, Qi Z
- [PATCH v2 3/4] net/iavf: fix restart of Rx queue... Bruce Richardson
- RE: [PATCH v2 3/4] net/iavf: fix restart of ... Zhang, Qi Z
- RE: [PATCH v2 3/4] net/iavf: fix restart... Zhang, Qi Z
- Re: [PATCH v2 3/4] net/iavf: fix re... Bruce Richardson
- RE: [PATCH v2 3/4] net/iavf: fi... Zhang, Qi Z
- [PATCH v2 4/4] net/iavf: add support for runtime... Bruce Richardson
- RE: [PATCH v2 4/4] net/iavf: add support for... Zhang, Qi Z