summaryrefslogtreecommitdiff
path: root/shaping/src/shaper_maat.cpp
diff options
context:
space:
mode:
authorroot <[email protected]>2024-01-11 03:56:10 +0000
committerroot <[email protected]>2024-01-11 03:56:10 +0000
commitc2dff5b069cbc7567d406493c65d63381122bc60 (patch)
treefc619dc01717e6facf3e6488d116b0afec734358 /shaping/src/shaper_maat.cpp
parent969082ccf054b6a087ef22513b48dd5d53a9a519 (diff)
TSG-18176: revert change
Diffstat (limited to 'shaping/src/shaper_maat.cpp')
-rw-r--r--shaping/src/shaper_maat.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/shaping/src/shaper_maat.cpp b/shaping/src/shaper_maat.cpp
index f48f68e..f159c2f 100644
--- a/shaping/src/shaper_maat.cpp
+++ b/shaping/src/shaper_maat.cpp
@@ -358,20 +358,6 @@ static int shaper_rules_dup_remove(struct shaping_flow *sf, long long *rule_comp
return rule_num_remove_dup;
}
-static void shaper_rules_dup_profile_check(struct shaping_flow *sf)
-{
- for (int i = 0; i < sf->rule_num; i++) {
- for (int j = i + 1; j < sf->rule_num; j++) {
- if (sf->matched_rule_infos[i].primary.id == sf->matched_rule_infos[j].primary.id) {
- sf->matched_rule_infos[j].has_dup_profile = 1;
- LOG_INFO("%s: shaping rule %d and %d have same primary profile %d", LOG_TAG_MAAT, sf->matched_rule_infos[i].id, sf->matched_rule_infos[j].id, sf->matched_rule_infos[i].primary.id);
- }
- }
- }
-
- return;
-}
-
void shaper_rules_update(struct shaping_thread_ctx *ctx, struct shaping_flow *sf, long long *rule_compile_ids, int rule_num)
{
int i, j;
@@ -413,8 +399,6 @@ void shaper_rules_update(struct shaping_thread_ctx *ctx, struct shaping_flow *sf
sf->rule_num += rule_num_remove_dup;
shaper_profiles_priority_update(sf);
- shaper_rules_dup_profile_check(sf);
-
return;
}