1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox
Maor Gottlieb b9e8f9d139 net/mlx5: Fix deletion of duplicate rules
[ Upstream commit 465e7baab6 ]

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: 718ce4d601 ("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>
2020-11-18 19:20:26 +01:00
..
mlx4 mlx4: handle non-napi callers to napi_poll 2020-10-29 09:57:23 +01:00
mlx5/core net/mlx5: Fix deletion of duplicate rules 2020-11-18 19:20:26 +01:00
mlxfw net/mlxfw: Fix out-of-memory error in mfa2 flash burning 2020-01-04 19:18:44 +01:00
mlxsw mlxsw: core: Fix use-after-free in mlxsw_emad_trans_finish() 2020-11-05 11:43:12 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00