From: Erez Shitrit <ere...@nvidia.com>

This patch fixes the matcher disconnection handling, by removing the RTC
references from flow table if the currently removed matcher was the last
one for the given table. As a result RTC in this matcher can be
correctly freed, since there are no dangling references to the RTC.

Fixes: c467608215b2 ("net/mlx5/hws: add matcher object")
Cc: sta...@dpdk.org

Signed-off-by: Erez Shitrit <ere...@nvidia.com>
Signed-off-by: Dariusz Sosnowski <dsosnow...@nvidia.com>
Reviewed-by: Alex Vesker <va...@nvidia.com>
Acked-by: Matan Azrad <ma...@nvidia.com>
---
 drivers/net/mlx5/hws/mlx5dr_matcher.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/net/mlx5/hws/mlx5dr_matcher.c 
b/drivers/net/mlx5/hws/mlx5dr_matcher.c
index 32bf3f5886..a0297c9787 100644
--- a/drivers/net/mlx5/hws/mlx5dr_matcher.c
+++ b/drivers/net/mlx5/hws/mlx5dr_matcher.c
@@ -346,12 +346,6 @@ static int mlx5dr_matcher_disconnect(struct mlx5dr_matcher 
*matcher)
                }
        }
 
-       ret = mlx5dr_matcher_shared_update_local_ft(tbl);
-       if (ret) {
-               DR_LOG(ERR, "Failed to update local_ft in shared table");
-               return ret;
-       }
-
        return 0;
 }
 
-- 
2.18.1

Reply via email to