summaryrefslogtreecommitdiff
path: root/shaping/include/shaper_stat.h
diff options
context:
space:
mode:
author刘畅 <[email protected]>2024-06-14 01:38:18 +0000
committer刘畅 <[email protected]>2024-06-14 01:38:18 +0000
commit23ddf75eaad60fd42693dbf6b9558806247dc519 (patch)
treee3251f57fda271f7b1bfc1f4f36514591081999f /shaping/include/shaper_stat.h
parentf91407a5524365bb93dc6e8f96ef2b08ef3fe8a0 (diff)
parentcfc13ad17d6dd65239b6acc85417fdd804d3d267 (diff)
Merge branch 'separate_swarmkv_priority_len_in_out' into 'rel'v3.1.38
separate in out direction for queue_len stored in swarmkv See merge request tango/shaping-engine!98
Diffstat (limited to 'shaping/include/shaper_stat.h')
-rw-r--r--shaping/include/shaper_stat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/shaping/include/shaper_stat.h b/shaping/include/shaper_stat.h
index 5c720a3..e6feeb3 100644
--- a/shaping/include/shaper_stat.h
+++ b/shaping/include/shaper_stat.h
@@ -4,6 +4,12 @@
#include "uthash.h"
#include <fieldstat.h>
+enum shaping_packet_dir {
+ SHAPING_DIR_IN = 0,
+ SHAPING_DIR_OUT,
+ SHAPING_DIR_MAX
+};
+
enum shaping_stat_tags_index {
TAG_VSYS_ID_IDX = 0,
TAG_RULE_ID_IDX,
@@ -37,7 +43,7 @@ struct shaping_stat_for_profile_dir {
struct shaping_stat_for_profile {
struct shaping_stat_for_profile_dir in;
struct shaping_stat_for_profile_dir out;
- long long priority_queue_len;
+ long long priority_queue_len[SHAPING_DIR_MAX];
};
struct shaping_stat {