Repository navigation
Commit b9e8f9d
net/mlx5: Fix deletion of duplicate rules
[ Upstream commit 465e7ba ]
When a rule is duplicated, the refcount of the rule is increased so only
the second deletion of the rule should cause destruction of the FTE.
Currently, the FTE will be destroyed in the first deletion of rule since
the modify_mask will be 0.
Fix it and call to destroy FTE only if all the rules (FTE's children)
have been removed.
Fixes: 718ce4d ("net/mlx5: Consolidate update FTE for all removal changes")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent e74e514 commit b9e8f9d
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1923 | 1923 | | |
1924 | 1924 | | |
1925 | 1925 | | |
1926 | | - | |
1927 | | - | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
1928 | 1929 | | |
1929 | | - | |
| 1930 | + | |
1930 | 1931 | | |
1931 | 1932 | | |
1932 | 1933 | | |
| |||
0 commit comments