net/mlx5: CT: Remove extra rhashtable remove on tuple entries
authorPaul Blakey <paulb@nvidia.com>
Wed, 23 Feb 2022 13:37:50 +0000 (15:37 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 17 Mar 2022 18:51:58 +0000 (11:51 -0700)
commitebf04231cf14bca969a187a37a85bb64ffe0b54d
tree803fc1d107aaf7775267b89bd5921232a14cc82b
parent0d7f1595bb96bcf1d673d6541eb453bec800f051
net/mlx5: CT: Remove extra rhashtable remove on tuple entries

On tuple offload del command, tuples are tried to be removed twice
from the hashtable, once directly via mlx5_tc_ct_entry_remove_from_tuples()
and a second time in the following mlx5_tc_ct_entry_put()->
mlx5_tc_ct_entry_del()->mlx5_tc_ct_entry_remove_from_tuples() call.

This doesn't cause any issue since rhashtable first checks if the
removed object exists in the hashtable.

Remove the extra mlx5_tc_ct_entry_remove_from_tuples().

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c