summaryrefslogtreecommitdiff
path: root/shaping/include/shaper_stat.h
diff options
context:
space:
mode:
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 {