summaryrefslogtreecommitdiff
path: root/shaping/include
diff options
context:
space:
mode:
authorroot <[email protected]>2024-02-23 10:20:48 +0000
committerroot <[email protected]>2024-02-23 10:20:48 +0000
commit1e252eae6a7e1bf4fc49ddd215616befdeec14c2 (patch)
tree6e50bd6c6fd5b5d29d091ae381b7bee8d3216148 /shaping/include
parent8e612e54c54aab5504ad48e8151efd5f6073abc0 (diff)
add feature dscp
Diffstat (limited to 'shaping/include')
-rw-r--r--shaping/include/shaper.h2
-rw-r--r--shaping/include/shaper_maat.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/shaping/include/shaper.h b/shaping/include/shaper.h
index 215f6c4..9276c98 100644
--- a/shaping/include/shaper.h
+++ b/shaping/include/shaper.h
@@ -188,6 +188,8 @@ struct shaping_flow {
int rule_num;
struct shaping_rule_info matched_rule_infos[SHAPING_RULE_NUM_MAX];
int priority;
+ unsigned char dscp_enable;
+ unsigned char dscp_value;
struct addr_tuple4 tuple4;
int anchor;//rule_idx
int ref_cnt;
diff --git a/shaping/include/shaper_maat.h b/shaping/include/shaper_maat.h
index 1c8cb62..dc170e5 100644
--- a/shaping/include/shaper_maat.h
+++ b/shaping/include/shaper_maat.h
@@ -13,6 +13,8 @@ struct shaping_rule {
int borrow_pf_id_array[SHAPING_REF_PROFILE_NUM_MAX];
int borrow_pf_num;
int fair_factor;
+ unsigned char dscp_enable;
+ unsigned char dscp_value;
};
struct shaping_profile {