diff options
author | David Ahern <dsahern@kernel.org> | 2023-04-24 19:41:19 -0600 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2023-04-24 19:41:19 -0600 |
commit | f57ac749b0359c9239b09a6c80573d5a94245b5b (patch) | |
tree | 5ae1ca0d1abab382ab0a5680743f24503f0f5fd5 | |
parent | a08205b62f5e22792bed9cbbb306aab14eb8f202 (diff) | |
parent | b54a4c9fc0cb9d382b1d4e479a43fd7675804c20 (diff) | |
download | iproute2-f57ac749b0359c9239b09a6c80573d5a94245b5b.tar.gz |
Merge remote-tracking branch 'main/main' into next
Signed-off-by: David Ahern <dsahern@kernel.org>
-rw-r--r-- | man/man8/tc-mqprio.8 | 58 | ||||
-rw-r--r-- | man/man8/tc-taprio.8 | 16 | ||||
-rw-r--r-- | tc/q_taprio.c | 8 |
3 files changed, 52 insertions, 30 deletions
diff --git a/man/man8/tc-mqprio.8 b/man/man8/tc-mqprio.8 index 16ecb9a1..3441cb68 100644 --- a/man/man8/tc-mqprio.8 +++ b/man/man8/tc-mqprio.8 @@ -3,29 +3,35 @@ MQPRIO \- Multiqueue Priority Qdisc (Offloaded Hardware QOS) .SH SYNOPSIS .B tc qdisc ... dev -dev -.B ( parent -classid -.B | root) [ handle -major: -.B ] mqprio [ num_tc -tcs -.B ] [ map -P0 P1 P2... -.B ] [ queues -count1@offset1 count2@offset2 ... -.B ] [ hw -1|0 -.B ] [ mode -dcb|channel] -.B ] [ shaper -dcb| -.B [ bw_rlimit +dev ( +.B parent +classid | root) [ +.B handle +major: ] +.B mqprio +.ti +8 +[ +.B num_tc +tcs ] [ +.B map +P0 P1 P2... ] [ +.B queues +count1@offset1 count2@offset2 ... ] +.ti +8 +[ +.B hw +1|0 ] [ +.B mode +dcb|channel ] [ +.B shaper +dcb|bw_rlimit ] +.ti +8 +[ .B min_rate -min_rate1 min_rate2 ... +min_rate1 min_rate2 ... ] [ .B max_rate max_rate1 max_rate2 ... -.B ]] +.B ] .SH DESCRIPTION @@ -142,11 +148,19 @@ for hardware QOS defaults. Supported with 'hw' set to 1 only. .TP min_rate -Minimum value of bandwidth rate limit for a traffic class. +Minimum value of bandwidth rate limit for a traffic class. Supported only when +the +.B 'shaper' +argument is set to +.B 'bw_rlimit'. .TP max_rate -Maximum value of bandwidth rate limit for a traffic class. +Maximum value of bandwidth rate limit for a traffic class. Supported only when +the +.B 'shaper' +argument is set to +.B 'bw_rlimit'. .SH EXAMPLE diff --git a/man/man8/tc-taprio.8 b/man/man8/tc-taprio.8 index e1f32e73..c3ccefea 100644 --- a/man/man8/tc-taprio.8 +++ b/man/man8/tc-taprio.8 @@ -32,6 +32,10 @@ clockid .ti +8 .B sched-entry <command N> <gate mask N> <interval N> +.ti +8 +[ +.B max-sdu +<queueMaxSDU[TC 0]> <queueMaxSDU[TC 1]> <queueMaxSDU[TC N]> ] .SH DESCRIPTION The TAPRIO qdisc implements a simplified version of the scheduling @@ -173,7 +177,7 @@ reference CLOCK_TAI. The schedule is composed of three entries each of 300us duration. .EX -# tc qdisc replace dev eth0 parent root handle 100 taprio \\ +# tc qdisc replace dev eth0 parent root handle 100 stab overhead 24 taprio \\ num_tc 3 \\ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \\ queues 1@0 1@1 2@2 \\ @@ -189,7 +193,7 @@ Following is an example to enable the txtime offload mode in taprio. See for more information about configuring the ETF qdisc. .EX -# tc qdisc replace dev eth0 parent root handle 100 taprio \\ +# tc qdisc replace dev eth0 parent root handle 100 stab overhead 24 taprio \\ num_tc 3 \\ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \\ queues 1@0 1@0 1@0 \\ @@ -218,10 +222,11 @@ NIC's current PTP time. In addition, the MTU for traffic class 5 is limited to 200 octets, so that the interference this creates upon traffic class 7 during the time window when their gates are both open is bounded. The interference is determined by the transmit time of the max SDU, plus the L2 header length, plus -the L1 overhead. +the L1 overhead (determined from the size table specified using +.BR tc-stab(8)). .EX -# tc qdisc add dev eth0 parent root taprio \\ +# tc qdisc add dev eth0 parent root stab overhead 24 taprio \\ num_tc 8 \\ map 0 1 2 3 4 5 6 7 \\ queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 \\ @@ -233,5 +238,8 @@ the L1 overhead. flags 0x2 .EE +.SH SEE ALSO +.BR tc-stab(8) + .SH AUTHORS Vinicius Costa Gomes <vinicius.gomes@intel.com> diff --git a/tc/q_taprio.c b/tc/q_taprio.c index e00d2aa9..c0da65fe 100644 --- a/tc/q_taprio.c +++ b/tc/q_taprio.c @@ -45,10 +45,10 @@ static void explain(void) { fprintf(stderr, "Usage: ... taprio clockid CLOCKID\n" - " [num_tc NUMBER] [map P0 P1 ...] " - " [queues COUNT@OFFSET COUNT@OFFSET COUNT@OFFSET ...] " - " [ [sched-entry index cmd gate-mask interval] ... ] " - " [base-time time] [txtime-delay delay]" + " [num_tc NUMBER] [map P0 P1 ...]\n" + " [queues COUNT@OFFSET COUNT@OFFSET COUNT@OFFSET ...]\n" + " [ [sched-entry index cmd gate-mask interval] ... ]\n" + " [base-time time] [txtime-delay delay]\n" "\n" "CLOCKID must be a valid SYS-V id (i.e. CLOCK_TAI)\n"); } |