Hi, > -----Original Message----- > From: Bing Zhao <bi...@nvidia.com> > Sent: Thursday, October 26, 2023 12:15 PM > To: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko > <viachesl...@nvidia.com>; Raslan Darawsheh <rasl...@nvidia.com>; > Suanming Mou <suanmi...@nvidia.com>; Ori Kam <or...@nvidia.com> > Cc: dev@dpdk.org; Gregory Etelson <getel...@nvidia.com>; > sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix the workspace double free in Windows > > The thread specific variable workspace indicated by "key_workspace" > should be freed explicitly when closing a device. For example, in > Linux, when exiting an application, the thread will not exit > explicitly and the thread resources will not be deconstructed. > > The commit to solve this introduced a global list to manage the > workspace resources as a garbage collector. It will also be executed > in Windows, but the workspaces have already been freed in the > function mlx5_flow_os_release_workspace(). > > With this commit, the garbage collector will only be executed in > Linux. The workspace resources management in Windows will remain > the same with some stub function when needed. > > Fixes: dc7c5e0aa905 ("net/mlx5: fix flow workspace destruction") > Cc: getel...@nvidia.com > Cc: sta...@dpdk.org > > Signed-off-by: Bing Zhao <bi...@nvidia.com> > Acked-by: Matan Azrad <ma...@nvidia.com>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh