From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass smtp.mailfrom=; dkim=pass header.d=redhat.com; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=redhat.com policy.dmarc=quarantine Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mail.toke.dk (Postfix) with ESMTPS id F2FC89D3E9C for ; Thu, 27 Nov 2025 10:31:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764235864; 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=Pj33bTqXMSC7ywulh8bZ1bZ3T/x3a3YwpFGz0M4L04M=; b=fRCaNMzpifqiy5w/plhBDqu0uKFSapmYUh4WxIgfjrc0xZ9/MyC7M9mcTPvPksq9auFrgG fmevx+CkyQaxDavWHusL+RqjDjxA3USJ4VY0iB39kfIKEaksuLJv4DVb8Xc5zncWB/TCZW oopLft7QPEtK37HP/apY5J1bf5Ja49Q= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-511-AvxvecuMN8uy_RMx41QYdQ-1; Thu, 27 Nov 2025 04:31:02 -0500 X-MC-Unique: AvxvecuMN8uy_RMx41QYdQ-1 X-Mimecast-MFC-AGG-ID: AvxvecuMN8uy_RMx41QYdQ_1764235861 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b763b24f223so65726266b.0 for ; Thu, 27 Nov 2025 01:31:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764235861; x=1764840661; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Pj33bTqXMSC7ywulh8bZ1bZ3T/x3a3YwpFGz0M4L04M=; b=VCkOKzmUa23wApM3+oBrFNBnFhKXuSntXzaZMGI/6u4305wynSnFQ05pdy9JAEsUXU WsiGPsIeLOp/5bj55bpejRk2TRV0G3YIk1BPbPquJ8k8hKJ9vXMlw1ALWLMHMEh9byvo tFA0c32vqQonaksA3F2nCEcItFkpwhmEGlYCEK1TysOdjchFXo16ceCcZrfYeoANvKaQ TS14HMNeG+XlEDO+ugoW0NfKM5gkOPVf29FoDKXBIGW6HrkpJMImPs4Nb404ANJovtSi rF2zzUE0xWsiK0raTbdSd3oUFeV92lHuBhzNfkzEGFq428ACx9t9rMlizENdeyl4HrwZ Qd0Q== X-Forwarded-Encrypted: i=1; AJvYcCWZhtW3tDW+JBUlmy2wPG+mlFPSp3+7a5wnBD6xrfVb4zTU84A6734E0pBWdDjwHwjVJsWg@lists.bufferbloat.net X-Gm-Message-State: AOJu0YyqX85tSe+/nJRq6sye7EmbtZ2SNsKPtWAuSBOrFFFxoJIf7tIw StR/YyX2wA9dRJuy4xXhhlEe73xjJyhOS94ayyih7w40FRVtRL46Ch+kt+MF2SpRN7FClsnq2uf /gv61Qc1lUriR4QwSC7FX4eRaUswX1zXtjVHp007XgpD2gSSTHOGBKVqlXDXE9Bc= X-Gm-Gg: ASbGncs1G6t6C3Pkb0dI10uEIiVyKjd5du4eMtrbgdyWrkPZWHG8LYoicLgj0H2GKAG peEe7vHH5Rx24NUBFv8cBYu2z2Tqb2xtglVquo4n9tVR40QWs+dTeckQUCedzv6UOTu1BPFb6nH aN0BtAbGw7/fzv5uXURoijyvqmTSFGkVPQFJRuOakbHF0RmLduZZBFBBbhdrwyr0pAR6T3q29TK sAh9X21Rp4XG3HWypKexPTD/+13Cj5ExWKedGB4jQEhR+JMleeOwPpEpK54wBQ5xWo6eQvoWT6T uNmu1dR7V4LooIq92M9T3nrPXEOL7Jv4nJqRa1IU5PqfEv67Q9LMWbx1eCW3sAPT14VPyG6yKAg PwwGHhWLWWpk6ML0V2tRd79fPo4LazCMI3A== X-Received: by 2002:a17:907:94c5:b0:b73:7ac4:a5f with SMTP id a640c23a62f3a-b7671565517mr2339121166b.21.1764235860879; Thu, 27 Nov 2025 01:31:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvU90swQslTLLvC2voemumWXJDCQQ+KgSSrQZpF/UMrek6Uk3TGdcOA0AVROnhjd2fFtBwXQ== X-Received: by 2002:a17:907:94c5:b0:b73:7ac4:a5f with SMTP id a640c23a62f3a-b7671565517mr2339118266b.21.1764235860436; Thu, 27 Nov 2025 01:31:00 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f59a6a5csm111077866b.41.2025.11.27.01.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 01:30:58 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 493FC395705; Thu, 27 Nov 2025 10:30:57 +0100 (CET) From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Date: Thu, 27 Nov 2025 10:30:53 +0100 MIME-Version: 1.0 Message-Id: <20251127-mq-cake-sub-qdisc-v2-3-24d9ead047b9@redhat.com> References: <20251127-mq-cake-sub-qdisc-v2-0-24d9ead047b9@redhat.com> In-Reply-To: <20251127-mq-cake-sub-qdisc-v2-0-24d9ead047b9@redhat.com> To: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: =?utf-8?q?Jonas_K=C3=B6ppeler?= , cake@lists.bufferbloat.net, netdev@vger.kernel.org, =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= X-Mailer: b4 0.14.3 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ZL5s4S5Sb4Ez6gfmDE19sRzIST-GFYytu94G6ijf0Lw_1764235861 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID-Hash: 6XHNEGK5OO7MVRHZUMRLLTTLDNKCZU6Q X-Message-ID-Hash: 6XHNEGK5OO7MVRHZUMRLLTTLDNKCZU6Q X-MailFrom: toke@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Subject: [Cake] [PATCH net-next v2 3/4] net/sched: sch_cake: Share config across cake_mq sub-qdiscs List-Id: Cake - FQ_codel the next generation Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: VGhpcyBhZGRzIHN1cHBvcnQgZm9yIGNvbmZpZ3VyaW5nIHRoZSBjYWtlX21xIGluc3RhbmNlIGRp cmVjdGx5LCBzaGFyaW5nDQp0aGUgY29uZmlnIGFjcm9zcyB0aGUgY2FrZSBzdWItcWRpc2NzLg0K DQpSZXZpZXdlZC1ieTogSmFtYWwgSGFkaSBTYWxpbSA8amhzQG1vamF0YXR1LmNvbT4NClNpZ25l ZC1vZmYtYnk6IFRva2UgSMO4aWxhbmQtSsO4cmdlbnNlbiA8dG9rZUByZWRoYXQuY29tPg0KLS0t DQogbmV0L3NjaGVkL3NjaF9jYWtlLmMgfCAxNDcgKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKysrKysrKysrKystLS0tLS0tLS0tDQogMSBmaWxlIGNoYW5nZWQsIDExOCBpbnNlcnRpb25z KCspLCAyOSBkZWxldGlvbnMoLSkNCg0KZGlmZiAtLWdpdCBhL25ldC9zY2hlZC9zY2hfY2FrZS5j IGIvbmV0L3NjaGVkL3NjaF9jYWtlLmMNCmluZGV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