From 31cd75aec6d035b36537046ae0d034c03009a3fc Mon Sep 17 00:00:00 2001 From: khramshinr Date: Fri, 12 Apr 2024 13:32:52 +0800 Subject: qos: T6035: QoS policy shaper queue-type random-detect requires limit avpkt Added params for configuration red on the shaper policy --- .../include/qos/queue-average-packet.xml.i | 16 ++++++ .../include/qos/queue-mark-probability.xml.i | 16 ++++++ .../include/qos/queue-maximum-threshold.xml.i | 16 ++++++ .../include/qos/queue-minimum-threshold.xml.i | 15 +++++ interface-definitions/qos.xml.in | 67 ++++------------------ 5 files changed, 75 insertions(+), 55 deletions(-) create mode 100644 interface-definitions/include/qos/queue-average-packet.xml.i create mode 100644 interface-definitions/include/qos/queue-mark-probability.xml.i create mode 100644 interface-definitions/include/qos/queue-maximum-threshold.xml.i create mode 100644 interface-definitions/include/qos/queue-minimum-threshold.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/qos/queue-average-packet.xml.i b/interface-definitions/include/qos/queue-average-packet.xml.i new file mode 100644 index 000000000..2f8bfe266 --- /dev/null +++ b/interface-definitions/include/qos/queue-average-packet.xml.i @@ -0,0 +1,16 @@ + + + + Average packet size (bytes) + + u32:16-10240 + Average packet size in bytes + + + + + Average packet size must be between 16 and 10240 + + 1024 + + diff --git a/interface-definitions/include/qos/queue-mark-probability.xml.i b/interface-definitions/include/qos/queue-mark-probability.xml.i new file mode 100644 index 000000000..1a2862845 --- /dev/null +++ b/interface-definitions/include/qos/queue-mark-probability.xml.i @@ -0,0 +1,16 @@ + + + + Mark probability for random detection + + u32 + Numeric value (1/N) + + + + + Mark probability must be greater than 0 + + 10 + + diff --git a/interface-definitions/include/qos/queue-maximum-threshold.xml.i b/interface-definitions/include/qos/queue-maximum-threshold.xml.i new file mode 100644 index 000000000..66d17ccc4 --- /dev/null +++ b/interface-definitions/include/qos/queue-maximum-threshold.xml.i @@ -0,0 +1,16 @@ + + + + Maximum threshold for random detection + + u32:0-4096 + Maximum threshold in packets + + + + + Threshold must be between 0 and 4096 + + 18 + + diff --git a/interface-definitions/include/qos/queue-minimum-threshold.xml.i b/interface-definitions/include/qos/queue-minimum-threshold.xml.i new file mode 100644 index 000000000..81e12d6e2 --- /dev/null +++ b/interface-definitions/include/qos/queue-minimum-threshold.xml.i @@ -0,0 +1,15 @@ + + + + Minimum threshold for random detection + + u32:0-4096 + Minimum threshold in packets + + + + + Threshold must be between 0 and 4096 + + + diff --git a/interface-definitions/qos.xml.in b/interface-definitions/qos.xml.in index 7618c3027..8f9ae3fa6 100644 --- a/interface-definitions/qos.xml.in +++ b/interface-definitions/qos.xml.in @@ -470,61 +470,10 @@ #include - - - Average packet size (bytes) - - u32:16-10240 - Average packet size in bytes - - - - - Average packet size must be between 16 and 10240 - - 1024 - - - - Mark probability for this precedence - - <number> - Numeric value (1/N) - - - - - Mark probability must be greater than 0 - - 10 - - - - Maximum threshold for random detection - - u32:0-4096 - Maximum Threshold in packets - - - - - Threshold must be between 0 and 4096 - - 18 - - - - Minimum threshold for random detection - - u32:0-4096 - Maximum Threshold in packets - - - - - Threshold must be between 0 and 4096 - - + #include + #include + #include + #include @@ -697,6 +646,10 @@ #include #include #include + #include + #include + #include + #include #include #include @@ -759,6 +712,10 @@ 20 + #include + #include + #include + #include #include #include -- cgit v1.2.3