naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0115-TBF-man-page-fix-tbf-is-not-classless.patch

049c96
From 9d1e99695d9c39432a66ec20f36928bf053410a4 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Mon, 7 Mar 2016 20:45:51 +0100
049c96
Subject: [PATCH] TBF man page fix (tbf is not classless)
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1251186
049c96
Upstream Status: iproute2.git commit 7bc7fcaadbd2d
049c96
049c96
commit 7bc7fcaadbd2db1aef1f9b15216a97f63d826493
049c96
Author: Sergey V. Lobanov <sergey@lobanov.in>
049c96
Date:   Fri May 9 22:12:54 2014 +0400
049c96
049c96
    TBF man page fix (tbf is not classless)
049c96
049c96
    TBF is not classless qdisc. man page corrected, added example
049c96
    describing the use of inner qdisc
049c96
049c96
    Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
049c96
---
049c96
 man/man8/tc-tbf.8 | 12 ++++++++++--
049c96
 1 file changed, 10 insertions(+), 2 deletions(-)
049c96
049c96
diff --git a/man/man8/tc-tbf.8 b/man/man8/tc-tbf.8
049c96
index 51310f1..fc2c837 100644
049c96
--- a/man/man8/tc-tbf.8
049c96
+++ b/man/man8/tc-tbf.8
049c96
@@ -21,7 +21,7 @@ bytes/cell
049c96
 burst is also known as buffer and maxburst. mtu is also known as minburst.
049c96
 .SH DESCRIPTION
049c96
 
049c96
-The Token Bucket Filter is a classless queueing discipline available for
049c96
+The Token Bucket Filter is a classful queueing discipline available for
049c96
 traffic control with the 
049c96
 .BR tc (8)
049c96
 command.
049c96
@@ -121,9 +121,17 @@ To attach a TBF with a sustained maximum rate of 0.5mbit/s, a peakrate of 1.0mbi
049c96
 a 5kilobyte buffer, with a pre-bucket queue size limit calculated so the TBF causes
049c96
 at most 70ms of latency, with perfect peakrate behaviour, issue:
049c96
 .P
049c96
-# tc qdisc add dev eth0 root tbf rate 0.5mbit \\
049c96
+# tc qdisc add dev eth0 handle 10: root tbf rate 0.5mbit \\
049c96
   burst 5kb latency 70ms peakrate 1mbit       \\
049c96
   minburst 1540
049c96
+.P
049c96
+To attach an inner qdisc, for example sfq, issue:
049c96
+.P
049c96
+# tc qdisc add dev eth0 parent 10:1 handle 100: sfq
049c96
+.P
049c96
+Without inner qdisc TBF queue acts as bfifo. If the inner qdisc is changed
049c96
+the limit/latency is not effective anymore.
049c96
+.P
049c96
 
049c96
 .SH SEE ALSO
049c96
 .BR tc (8)
049c96
-- 
049c96
1.8.3.1
049c96