net/mlx5e: CT: Use own workqueue instead of mlx5e priv
authorRoi Dayan <roid@nvidia.com>
Tue, 21 Jun 2022 07:43:55 +0000 (10:43 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 6 Jul 2022 23:11:55 +0000 (16:11 -0700)
commit6c4e8fa03fde7e5b304594294e397a9ba92feaf6
tree591e3bada28b5a8e8c9bdec8687795c6310982ff
parent1afbd1e283d6a5449d8c24ce8ccae8ccb15ee943
net/mlx5e: CT: Use own workqueue instead of mlx5e priv

Allocate a ct priv workqueue instead of using mlx5e priv one
so flushing will only be of related CT entries.
Also move flushing of the workqueue before rhashtable destroy
otherwise entries won't be valid.

Fixes: b069e14fff46 ("net/mlx5e: CT: Fix queued up restore put() executing after relevant ft release")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c