|
|
@@ -397,8 +397,6 @@ int mlxsw_sp_flower_stats(struct mlxsw_sp_port *mlxsw_sp_port, bool ingress,
|
|
|
struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp;
|
|
|
struct mlxsw_sp_acl_ruleset *ruleset;
|
|
|
struct mlxsw_sp_acl_rule *rule;
|
|
|
- struct tc_action *a;
|
|
|
- LIST_HEAD(actions);
|
|
|
u64 packets;
|
|
|
u64 lastuse;
|
|
|
u64 bytes;
|
|
|
@@ -419,13 +417,7 @@ int mlxsw_sp_flower_stats(struct mlxsw_sp_port *mlxsw_sp_port, bool ingress,
|
|
|
if (err)
|
|
|
goto err_rule_get_stats;
|
|
|
|
|
|
- preempt_disable();
|
|
|
-
|
|
|
- tcf_exts_to_list(f->exts, &actions);
|
|
|
- list_for_each_entry(a, &actions, list)
|
|
|
- tcf_action_stats_update(a, bytes, packets, lastuse);
|
|
|
-
|
|
|
- preempt_enable();
|
|
|
+ tcf_exts_stats_update(f->exts, bytes, packets, lastuse);
|
|
|
|
|
|
mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset);
|
|
|
return 0;
|