aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@redhat.com>2021-12-08 13:45:17 +0100
committerDavid Ahern <dsahern@kernel.org>2021-12-13 20:19:37 -0700
commit4b301b87d774a85b01a965f7c8b73449a8e551be (patch)
treea8e428787266e36bb47c5aff4a3e2f550e7d9107 /man
parent99d09ee9a637b13f2123ba0154212afb81fafc43 (diff)
downloadiproute2-4b301b87d774a85b01a965f7c8b73449a8e551be.tar.gz
tc: Add support for ce_threshold_value/mask in fq_codel
Commit dfcb63ce1de6 ("fq_codel: generalise ce_threshold marking for subset of traffic") added support in fq_codel for setting a value and mask that will be applied to the diffserv/ECN byte to turn on the ce_threshold feature for a subset of traffic. This adds support to iproute for setting these values. The parameter is called ce_threshold_selector and takes a value followed by a slash-separated mask. Some examples: # apply ce_threshold to ECT(1) traffic tc qdisc replace dev eth0 root fq_codel ce_threshold 1ms ce_threshold_selector 0x1/0x3 # apply ce_threshold to ECN-capable traffic marked as diffserv AF22 tc qdisc replace dev eth0 root fq_codel ce_threshold 1ms ce_threshold_selector 0x50/0xfc Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: David Ahern <dsahern@kernel.org>
Diffstat (limited to 'man')
-rw-r--r--man/man8/tc-fq_codel.811
1 files changed, 11 insertions, 0 deletions
diff --git a/man/man8/tc-fq_codel.8 b/man/man8/tc-fq_codel.8
index 7ee6c269e..84340fe57 100644
--- a/man/man8/tc-fq_codel.8
+++ b/man/man8/tc-fq_codel.8
@@ -20,6 +20,8 @@ BYTES ] [
] [
.B ce_threshold
TIME ] [
+.B ce_threshold_selector
+VALUE/MASK ] [
.B memory_limit
BYTES ]
@@ -89,6 +91,15 @@ sets a threshold above which all packets are marked with ECN Congestion
Experienced. This is useful for DCTCP-style congestion control algorithms that
require marking at very shallow queueing thresholds.
+.SS ce_threshold_selector
+sets a filter so that the
+.B ce_threshold
+feature is applied to only a subset of the traffic seen by the qdisc. If set, the MASK value
+will be applied as a bitwise AND to the diffserv/ECN byte of the IP header, and only if the
+result of this masking equals VALUE, will the
+.B ce_threshold
+logic be applied to the packet.
+
.SH EXAMPLES
#tc qdisc add dev eth0 root fq_codel
.br