[PATCH v4 2/5] net/mlx5/hws: fix disconnecting matcher
Viacheslav Ovsiienko
viacheslavo at nvidia.com
Mon Feb 13 14:37:37 CET 2023
From: Erez Shitrit <erezsh at 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: stable at dpdk.org
Signed-off-by: Erez Shitrit <erezsh at nvidia.com>
Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Reviewed-by: Alex Vesker <valex at nvidia.com>
Acked-by: Matan Azrad <matan at 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 6af493d87a..1fe7ec1bc3 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
More information about the stable
mailing list