mlxsw: spectrum_flower: Remove bogus warns in mlxsw_sp_flower_destroy
Subsystems (3)
PATCH 1/1 mlxsw: spectrum_flower: Remove bogus warns in mlxsw_sp_flower_destroy
From: Jiri Pirko <[email protected]>
This warnings may be hit even in case they should not - in case user puts a TC-flower rule which failed to be offloaded. So just remove them.
Reported-by Petr Machata <[email protected]>
Reported-by Ido Schimmel <[email protected]>
Fixes commit 7aa0f5aa9030 ("mlxsw: spectrum: Implement TC flower offload")
Signed-off-by Jiri Pirko <[email protected]>
Acked-by Ido Schimmel <[email protected]>
--- drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c +2 -2
@@ -303,11 +303,11 @@ void mlxsw_sp_flower_destroy(struct mlxsw_sp_port *mlxsw_sp_port, bool ingress, ruleset =mlxsw_sp_acl_ruleset_get (mlxsw_sp, mlxsw_sp_port->dev, ingress,MLXSW_SP_ACL_PROFILE_FLOWER ); -if (WARN_ON (IS_ERR (ruleset))) +if (IS_ERR (ruleset))return ; rule =mlxsw_sp_acl_rule_lookup (mlxsw_sp, ruleset, f->cookie); -if (!WARN_ON (!rule)) { +if (rule) {mlxsw_sp_acl_rule_del (mlxsw_sp, rule);mlxsw_sp_acl_rule_destroy (mlxsw_sp, rule); }
Signature · 1 line
2.7.4
From: Jiri Pirko <[email protected]>
Date: Mon, 6 Mar 2017 21:22:09 +0100
Quoted 10 lines
From: Jiri Pirko <[email protected]>
This warnings may be hit even in case they should not - in case user puts a TC-flower rule which failed to be offloaded. So just remove them.
Reported-by Petr Machata <[email protected]>Reported-by Ido Schimmel <[email protected]>Fixes commit 7aa0f5aa9030 ("mlxsw: spectrum: Implement TC flower offload")Signed-off-by Jiri Pirko <[email protected]>Acked-by Ido Schimmel <[email protected]>
Applied.