kernel: bump 5.4 to 5.4.119
[openwrt/openwrt.git] / target / linux / generic / backport-5.4 / 399-5.9-sch_cake-add-RFC-8622-LE-PHB-support-to-CAKE-diffser.patch
1 From b8392808eb3fc28e523e28cb258c81ca246deb9b Mon Sep 17 00:00:00 2001
2 From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
3 Date: Thu, 25 Jun 2020 22:18:00 +0200
4 Subject: [PATCH] sch_cake: add RFC 8622 LE PHB support to CAKE diffserv
5 handling
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Change tin mapping on diffserv3, 4 & 8 for LE PHB support, in essence
11 making LE a member of the Bulk tin.
12
13 Bulk has the least priority and minimum of 1/16th total bandwidth in the
14 face of higher priority traffic.
15
16 NB: Diffserv 3 & 4 swap tin 0 & 1 priorities from the default order as
17 found in diffserv8, in case anyone is wondering why it looks a bit odd.
18
19 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
20 [ reword commit message slightly ]
21 Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
22 Signed-off-by: David S. Miller <davem@davemloft.net>
23 ---
24 net/sched/sch_cake.c | 8 ++++----
25 1 file changed, 4 insertions(+), 4 deletions(-)
26
27 --- a/net/sched/sch_cake.c
28 +++ b/net/sched/sch_cake.c
29 @@ -312,8 +312,8 @@ static const u8 precedence[] = {
30 };
31
32 static const u8 diffserv8[] = {
33 - 2, 5, 1, 2, 4, 2, 2, 2,
34 - 0, 2, 1, 2, 1, 2, 1, 2,
35 + 2, 0, 1, 2, 4, 2, 2, 2,
36 + 1, 2, 1, 2, 1, 2, 1, 2,
37 5, 2, 4, 2, 4, 2, 4, 2,
38 3, 2, 3, 2, 3, 2, 3, 2,
39 6, 2, 3, 2, 3, 2, 3, 2,
40 @@ -323,7 +323,7 @@ static const u8 diffserv8[] = {
41 };
42
43 static const u8 diffserv4[] = {
44 - 0, 2, 0, 0, 2, 0, 0, 0,
45 + 0, 1, 0, 0, 2, 0, 0, 0,
46 1, 0, 0, 0, 0, 0, 0, 0,
47 2, 0, 2, 0, 2, 0, 2, 0,
48 2, 0, 2, 0, 2, 0, 2, 0,
49 @@ -334,7 +334,7 @@ static const u8 diffserv4[] = {
50 };
51
52 static const u8 diffserv3[] = {
53 - 0, 0, 0, 0, 2, 0, 0, 0,
54 + 0, 1, 0, 0, 2, 0, 0, 0,
55 1, 0, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 0, 0, 0, 0,
57 0, 0, 0, 0, 0, 0, 0, 0,