RE: [PATCH] net/af_xdp: fix resources leak when xsk configure fails

2024-02-22 Thread wangyunjian
> -Original Message- > From: Loftus, Ciara [mailto:ciara.lof...@intel.com] > Sent: Thursday, February 22, 2024 7:06 PM > To: Tahhan, Maryam ; wangyunjian > > Cc: dev@dpdk.org; ferruh.yi...@amd.com; sta...@dpdk.org > Subject: RE: [PATCH] net/af_xdp: fix resources le

RE: [PATCH] net/af_xdp: fix resources leak when xsk configure fails

2024-02-22 Thread Loftus, Ciara
> > On 22/02/2024 03:07, Yunjian Wang wrote: > In xdp_umem_configure() allocated some resources for the > xsk umem, we should delete them when xsk configure fails, > otherwise it will lead to resources leak. > > Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD") > Cc: mailto:sta...@dpdk.org

Re: [PATCH] net/af_xdp: fix resources leak when xsk configure fails

2024-02-22 Thread Maryam Tahhan
On 22/02/2024 03:07, Yunjian Wang wrote: In xdp_umem_configure() allocated some resources for the xsk umem, we should delete them when xsk configure fails, otherwise it will lead to resources leak. Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD") Cc:sta...@dpdk.org Signed-off-by: Yunjia