Hi, > -----Original Message----- > From: Bing Zhao <bi...@nvidia.com> > Sent: Monday, July 3, 2023 12:51 PM > To: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko > <viachesl...@nvidia.com>; Ori Kam <or...@nvidia.com>; Suanming Mou > <suanmi...@nvidia.com>; Raslan Darawsheh <rasl...@nvidia.com> > Cc: dev@dpdk.org; Gregory Etelson <getel...@nvidia.com>; > sta...@dpdk.org; David Marchand <david.march...@redhat.com> > Subject: [PATCH v3] net/mlx5: fix flow workspace destruction > > From: Gregory Etelson <getel...@nvidia.com> > > PMD uses pthread key to allocate and access per thread flow workspace > memory buffers. > > PMD registered a key destructor function to clean up flow workspace buffers. > However, the key destructor was not called by the pthread library. > > The patch keeps track of per-thread flow workspaces in PMD. > Flow workspaces memory release is activated from PMD destructor. > > In the meanwhile, workspace buffer and RSS queues array are allocated in a > single memory chunk with this patch. The maximal number of queues > RTE_ETH_RSS_RETA_SIZE_512 is chosen. Then the workspace adjustment can > be removed to reduce the software hiccup: > 1. realloc and content copy > 2. spinlock acquire and release > > Bugzilla ID: 1255 > > Fixes: 5d55a494f4e6 ("net/mlx5: split multi-thread flow handling per OS") > Cc: sta...@dpdk.org > > Reported-by: David Marchand <david.march...@redhat.com> > Signed-off-by: Gregory Etelson <getel...@nvidia.com> > Signed-off-by: Bing Zhao <bi...@nvidia.com> > Acked-by: Matan Azrad <ma...@nvidia.com> > --- > v2: fix typo and code style > v3: add bugzilla information
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh