diff options
| author | liuchang <[email protected]> | 2023-04-03 11:09:45 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-04-04 02:33:50 +0000 |
| commit | 72ed9151b6dfa000b413e667e52d59498c7aaad7 (patch) | |
| tree | e0a50bc4b28eaa0de5cb9aef6e6388181cd76098 /shaping/include/shaper_stat.h | |
| parent | 5e9d5418d1c0950352e3ab704285f8a371a7bae5 (diff) | |
add global metric
Diffstat (limited to 'shaping/include/shaper_stat.h')
| -rw-r--r-- | shaping/include/shaper_stat.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/shaping/include/shaper_stat.h b/shaping/include/shaper_stat.h index eada87d..a7a89e7 100644 --- a/shaping/include/shaper_stat.h +++ b/shaping/include/shaper_stat.h @@ -1,40 +1,6 @@ #include <netinet/in.h> #include "uthash.h" -#include <MESA/fieldstat.h> - -#define SHAPER_STAT_COLUMN_NUM_MAX 20 -struct shaping_stat_data_dir { - unsigned long long tx_pkts; - unsigned long long tx_bytes; - unsigned long long drop_pkts; - unsigned long long max_latency; - long long queue_len;//num of queueing pkts -}; - -struct shaping_stat_data_key { - int rule_id; - int profile_id; - int priority; - int profile_type; -}; - -struct shaping_stat_data { - struct shaping_stat_data_key key; - int queueing_session_num; - int split_num; - struct shaping_stat_data_dir incoming; - struct shaping_stat_data_dir outgoing; - UT_hash_handle hh; -}; - -#if 0 -struct shaping_stat { - int sock_fd; - struct sockaddr_in sock_addr; - struct timespec update_time; - struct shaping_stat_data *stat_hashtbl; -}; -#endif +#include <fieldstat.h> enum shaping_stat_tags_index { TAG_RULE_ID_IDX = 0, |
