Skip to content

Commit c25af83

Browse files
kjbracey2kuba-moo
authored andcommitted
sch_cake: revise Diffserv docs
Documentation incorrectly stated that CS1 is equivalent to LE for diffserv8. But when LE was added to the table, CS1 was pushed into tin 1, leaving only LE in tin 0. Also "TOS1" no longer exists, as that is the same codepoint as LE. Make other tweaks properly distinguishing codepoints from classes and putting current Diffserve codepoints ahead of legacy ones. Signed-off-by: Kevin Bracey <[email protected]> Acked-by: Toke Høiland-Jørgensen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ca1a670 commit c25af83

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

net/sched/sch_cake.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,16 +2342,15 @@ static int cake_config_precedence(struct Qdisc *sch)
23422342

23432343
/* List of known Diffserv codepoints:
23442344
*
2345-
* Least Effort (CS1, LE)
2346-
* Best Effort (CS0)
2347-
* Max Reliability & LLT "Lo" (TOS1)
2345+
* Default Forwarding (DF/CS0) - Best Effort
23482346
* Max Throughput (TOS2)
23492347
* Min Delay (TOS4)
23502348
* LLT "La" (TOS5)
23512349
* Assured Forwarding 1 (AF1x) - x3
23522350
* Assured Forwarding 2 (AF2x) - x3
23532351
* Assured Forwarding 3 (AF3x) - x3
23542352
* Assured Forwarding 4 (AF4x) - x3
2353+
* Precedence Class 1 (CS1)
23552354
* Precedence Class 2 (CS2)
23562355
* Precedence Class 3 (CS3)
23572356
* Precedence Class 4 (CS4)
@@ -2360,8 +2359,9 @@ static int cake_config_precedence(struct Qdisc *sch)
23602359
* Precedence Class 7 (CS7)
23612360
* Voice Admit (VA)
23622361
* Expedited Forwarding (EF)
2363-
2364-
* Total 25 codepoints.
2362+
* Lower Effort (LE)
2363+
*
2364+
* Total 26 codepoints.
23652365
*/
23662366

23672367
/* List of traffic classes in RFC 4594, updated by RFC 8622:
@@ -2375,12 +2375,12 @@ static int cake_config_precedence(struct Qdisc *sch)
23752375
* Realtime Interactive (CS4) - eg. games
23762376
* Multimedia Streaming (AF3x) - eg. YouTube, NetFlix, Twitch
23772377
* Broadcast Video (CS3)
2378-
* Low Latency Data (AF2x,TOS4) - eg. database
2379-
* Ops, Admin, Management (CS2,TOS1) - eg. ssh
2380-
* Standard Service (CS0 & unrecognised codepoints)
2381-
* High Throughput Data (AF1x,TOS2) - eg. web traffic
2382-
* Low Priority Data (CS1,LE) - eg. BitTorrent
2383-
2378+
* Low-Latency Data (AF2x,TOS4) - eg. database
2379+
* Ops, Admin, Management (CS2) - eg. ssh
2380+
* Standard Service (DF & unrecognised codepoints)
2381+
* High-Throughput Data (AF1x,TOS2) - eg. web traffic
2382+
* Low-Priority Data (LE,CS1) - eg. BitTorrent
2383+
*
23842384
* Total 12 traffic classes.
23852385
*/
23862386

@@ -2390,12 +2390,12 @@ static int cake_config_diffserv8(struct Qdisc *sch)
23902390
*
23912391
* Network Control (CS6, CS7)
23922392
* Minimum Latency (EF, VA, CS5, CS4)
2393-
* Interactive Shell (CS2, TOS1)
2393+
* Interactive Shell (CS2)
23942394
* Low Latency Transactions (AF2x, TOS4)
23952395
* Video Streaming (AF4x, AF3x, CS3)
2396-
* Bog Standard (CS0 etc.)
2397-
* High Throughput (AF1x, TOS2)
2398-
* Background Traffic (CS1, LE)
2396+
* Bog Standard (DF etc.)
2397+
* High Throughput (AF1x, TOS2, CS1)
2398+
* Background Traffic (LE)
23992399
*
24002400
* Total 8 traffic classes.
24012401
*/
@@ -2437,9 +2437,9 @@ static int cake_config_diffserv4(struct Qdisc *sch)
24372437
/* Further pruned list of traffic classes for four-class system:
24382438
*
24392439
* Latency Sensitive (CS7, CS6, EF, VA, CS5, CS4)
2440-
* Streaming Media (AF4x, AF3x, CS3, AF2x, TOS4, CS2, TOS1)
2441-
* Best Effort (CS0, AF1x, TOS2, and those not specified)
2442-
* Background Traffic (CS1, LE)
2440+
* Streaming Media (AF4x, AF3x, CS3, AF2x, TOS4, CS2)
2441+
* Best Effort (DF, AF1x, TOS2, and those not specified)
2442+
* Background Traffic (LE, CS1)
24432443
*
24442444
* Total 4 traffic classes.
24452445
*/
@@ -2477,9 +2477,9 @@ static int cake_config_diffserv4(struct Qdisc *sch)
24772477
static int cake_config_diffserv3(struct Qdisc *sch)
24782478
{
24792479
/* Simplified Diffserv structure with 3 tins.
2480-
* Low Priority (CS1, LE)
2480+
* Latency Sensitive (CS7, CS6, EF, VA, TOS4)
24812481
* Best Effort
2482-
* Latency Sensitive (TOS4, VA, EF, CS6, CS7)
2482+
* Low Priority (LE, CS1)
24832483
*/
24842484
struct cake_sched_data *q = qdisc_priv(sch);
24852485
u32 mtu = psched_mtu(qdisc_dev(sch));

0 commit comments

Comments
 (0)