aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2018-08-15 16:29:53 -0400
committerDavid S. Miller <davem@davemloft.net>2018-08-16 15:27:16 -0400
commit70fd8036d0d77bd93ae12185c66504a409d5b54e (patch)
treeea5571bf689a30f9201775e75da12e4a28325d1f
parent5e22002aa8809e2efab2da95855f73f63e14a36c (diff)
Documentation: networking: ti-cpsw: correct cbs parameters for Eth1 100Mb
If set cbs parameters calculated for 1000Mb, but use on 100Mb port w/o h/w offload (for cpsw offload it doesn't matter), it works incorrectly. According to the example and testing board, second port is 100Mb interface. Correct them on recalculated for 100Mb interface. It allows to use the same command for CBS software implementation for board in example. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--Documentation/networking/ti-cpsw.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/networking/ti-cpsw.txt b/Documentation/networking/ti-cpsw.txt
index 67039205bd69..d4d4c0751a09 100644
--- a/Documentation/networking/ti-cpsw.txt
+++ b/Documentation/networking/ti-cpsw.txt
@@ -469,17 +469,18 @@ $ tc -g class show dev eth1
469 469
47014) 47014)
471// Set rate for class A - 31 Mbit (tc0, txq2) using CBS Qdisc for Eth1 471// Set rate for class A - 31 Mbit (tc0, txq2) using CBS Qdisc for Eth1
472// here only idle slope is important, others ignored 472// here only idle slope is important, others ignored, but calculated
473// for interface speed - 100Mb for eth1 port.
473// Set it +1 Mb for reserve (important!) 474// Set it +1 Mb for reserve (important!)
474$ tc qdisc add dev eth1 parent 100:3 cbs locredit -1453 \ 475$ tc qdisc add dev eth1 parent 100:3 cbs locredit -1035 \
475hicredit 47 sendslope -969000 idleslope 31000 offload 1 476hicredit 465 sendslope -69000 idleslope 31000 offload 1
476net eth1: set FIFO3 bw = 31 477net eth1: set FIFO3 bw = 31
477 478
47815) 47915)
479// Set rate for class B - 11 Mbit (tc1, txq3) using CBS Qdisc for Eth1 480// Set rate for class B - 11 Mbit (tc1, txq3) using CBS Qdisc for Eth1
480// Set it +1 Mb for reserve (important!) 481// Set it +1 Mb for reserve (important!)
481$ tc qdisc add dev eth1 parent 100:4 cbs locredit -1483 \ 482$ tc qdisc add dev eth1 parent 100:4 cbs locredit -1335 \
482hicredit 34 sendslope -989000 idleslope 11000 offload 1 483hicredit 405 sendslope -89000 idleslope 11000 offload 1
483net eth1: set FIFO2 bw = 11 484net eth1: set FIFO2 bw = 11
484 485
48516) 48616)