From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id B59543CB38 for ; Thu, 25 Jun 2020 07:55:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593086112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wGT3qBYmtlNm7VbabgpoFKFwexBpZntpyA+fDg/nDwk=; b=gccqUEx9EYG6ayE8yqHup0hg8sA4R3Ozm0w7fLAcx1MO/RuDtfZed7d9qCrIWSId4Il09E LFiHggB1m3HHx7f0kIxQwYPktDsPQa5n8qoeQuvQxM+4VjCDMSIBEWdQNqDP6gIb09f7Zs 1f8UVr9drQRI+Rwd4JBi9eSE3ZB2Cjw= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-394--IwUR0UrNfq1Wq8BI9xjGA-1; Thu, 25 Jun 2020 07:55:10 -0400 X-MC-Unique: -IwUR0UrNfq1Wq8BI9xjGA-1 Received: by mail-wm1-f71.google.com with SMTP id v6so4595409wmg.1 for ; Thu, 25 Jun 2020 04:55:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=wGT3qBYmtlNm7VbabgpoFKFwexBpZntpyA+fDg/nDwk=; b=k61S9oDN9orN1X2QSvXCXuTsdoBA3PBv69oU3ltaPkhcl0Twtx3SVy9MrBPR3VIdPB jBPiqVlw01W/d7Q06VApuBMRnrZjlUR0VKxK2lcwSK/rUbFkG7IcmQH6qfiNK6wwVODz SpERx8NDrnLHf2bGITndt0Bn/0TXzJ6iMxnuOCxTiHVVfVysCxbW3JrCHjBBQeWOJFhk VUsAHFO05S3/sFg+QLEbhUSDS9MH8CFmdeRQ9KFHJZn7T5HDKY5oYh2+Ae2HBFL6Rj1S Ioaz2siBiT6TPLtOkCF1WVpPyf9f+bxM/8Q/pNN2W6/FL2H2kfeUUENWYjOImR59RUgi lbog== X-Gm-Message-State: AOAM5307vWlol+OZm16rlxrk2f8Tex5Lxv+EEwwyrN/1ccw6pSPISbEo CQhAIMA05ior7i8Bv0+Qufh9htJGflHNjqFxDIyYiTHE3TYpCi+vJtusCYdrHkM7HlW9pfpeSB5 vMW76F3Bg5xBv+8rwRyX8SQ== X-Received: by 2002:adf:a507:: with SMTP id i7mr39279922wrb.0.1593086109446; Thu, 25 Jun 2020 04:55:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGfAxqBQdT54TXBka/hC/Yk1+w80El0LGJCtPMPSOE33IV6f7u7la2SMPi+3u5TRNoTzTQSw== X-Received: by 2002:adf:a507:: with SMTP id i7mr39279899wrb.0.1593086109201; Thu, 25 Jun 2020 04:55:09 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id g16sm27455995wrh.91.2020.06.25.04.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 04:55:08 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 409631814FA; Thu, 25 Jun 2020 13:55:07 +0200 (CEST) From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: David Miller Cc: netdev@vger.kernel.org, cake@lists.bufferbloat.net Date: Thu, 25 Jun 2020 13:55:07 +0200 Message-ID: <159308610718.190211.15767931665695188384.stgit@toke.dk> In-Reply-To: <159308610282.190211.9431406149182757758.stgit@toke.dk> References: <159308610282.190211.9431406149182757758.stgit@toke.dk> User-Agent: StGit/0.23 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Cake] [PATCH net-next 4/5] sch_cake: add RFC 8622 LE PHB support to CAKE diffserv handling X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2020 11:55:12 -0000 From: Kevin Darbyshire-Bryant Change tin mapping on diffserv3, 4 & 8 for LE PHB support, in essence making LE a member of the Bulk tin. Bulk has the least priority and minimum of 1/16th total bandwidth in the face of higher priority traffic. NB: Diffserv 3 & 4 swap tin 0 & 1 priorities from the default order as found in diffserv8, in case anyone is wondering why it looks a bit odd. Signed-off-by: Kevin Darbyshire-Bryant [ reword commit message slightly ] Signed-off-by: Toke Høiland-Jørgensen --- net/sched/sch_cake.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/sched/sch_cake.c b/net/sched/sch_cake.c index 958523c777be..78a702a4e1d4 100644 --- a/net/sched/sch_cake.c +++ b/net/sched/sch_cake.c @@ -312,8 +312,8 @@ static const u8 precedence[] = { }; static const u8 diffserv8[] = { - 2, 5, 1, 2, 4, 2, 2, 2, - 0, 2, 1, 2, 1, 2, 1, 2, + 2, 0, 1, 2, 4, 2, 2, 2, + 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 4, 2, 4, 2, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 6, 2, 3, 2, 3, 2, 3, 2, @@ -323,7 +323,7 @@ static const u8 diffserv8[] = { }; static const u8 diffserv4[] = { - 0, 2, 0, 0, 2, 0, 0, 0, + 0, 1, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, @@ -334,7 +334,7 @@ static const u8 diffserv4[] = { }; static const u8 diffserv3[] = { - 0, 0, 0, 0, 2, 0, 0, 0, + 0, 1, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,