Article View: linux.kernel.netdev
Article #6578Re: [PATCH net-next v7 1/4] net/sched: cake, fq_codel: return the classifier result to the caller
From: netdev-bot+sashiko
Date: Thu, 22 Oct 2026 19:02
Date: Thu, 22 Oct 2026 19:02
49 lines
9858 bytes
9858 bytes
Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message body opens with the heading "The Fix:", but the patch fixes nothing. -- net/sched: cake, fq_codel: return the classifier result to the caller This commit changes the external classifier helpers in cake and fq_codel so they no longer compute the flow hash. The cake helper now returns the filter's flow/host overrides, and the fq_codel helper returns a 1-based flow index or a request to hash. The enqueue callers then do the flow selection themselves, in preparation for later accounting changes. > The Fix: > cake and fq_codel run an optional external classifier from their enqueue > path and then compute the flow hash inside the helper. [Severity: Low] This isn't a bug, but is the "The Fix:" heading accurate here? Later in the same message it says: > This is preparation for the accounting changes that follow. Packet > classification and flow selection are unchanged. >From the diff, behaviour looks the same as before. In cake, cake_tcf_classify() returns true for exactly the actions on which the old cake_classify() returned 0 (SHOT, STOLEN, QUEUED, TRAP). cake_enqueue() then calls cake_select_tin() and cake_hash() with the same overrides that were used before. In fq_codel, the old fq_codel_classify() returned 0 (drop) in three cases: a terminal action, no filter match, and TC_H_MIN(res.classid) == 0. The new version returns true in those same three cases. When it does not drop, it hands back the same index or hash request as before. Since this is a refactor and not a fix, could the heading be dropped or reworded, for example to "Preparation:"? As written, backporters and stable selection tooling might take it for a bug fix. -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/QDISC-BA27.v7.r0.20261019115505%40mojatatu.com
Technical Details
Message-ID:
<179269577009.3135.5221412623031392098@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350767-linux-kernel-netdev=dewy.ruReferences:
<QDISC-BA27.v7.r0.20261019115505-1@mojatatu.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350767-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 1/4] net/sched: cake, fq_codel: return the classifier result to the caller Date: Thu, 22 Oct 2026 19:02:50 +0000 Organization: Usenet Network Message-ID: <179269577009.3135.5221412623031392098@kernel.org> References: <QDISC-BA27.v7.r0.20261019115505-1@mojatatu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="298005"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Vmh3hXYxU+cfdE+wYLA4ngJJXg8= sha256:s9kgCeT4cQRrJ2b9nAFj9o4DydThrjmH+KB1CSOAj4E= sha1:LXDbFoGMjaHkRrXoTBg3ZbmwANQ= sha256:4Z2FZRjcyWSZZvA8qWOG4Y4+3sXJPa3rljLmUlmLFcM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 128DA111148; Thu, 22 Oct 2026 22:03:07 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.839 X-Spam-Status: No, score=-3.839 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AlqD9TdpCIZe; Thu, 22 Oct 2026 22:03:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350767-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 932F5111334; Thu, 22 Oct 2026 22:02:55 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 6B383604E03; Thu, 22 Oct 2026 19:02:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792695772; b=a5lPXW2NJAU1Ctu9gURZ06v8KGPZ9UiYwoyis25t+BcE6y8x+w79qK6v0JZ2MvK12+7R Ug/2jkdMOlvcu2N+iUHdofHNQDVlYlANQUskC0023HE134zyMiqpOXZEcAr35KNFPEgH1 Bwz/VD+wgyoErpaJ30yOw8zzly9wfgqEPLiQ6JL+zPZo1AYt+N9RnOGg4X30/eekIoGiZ 8nFzBpQlN9Y5wuUlXzIZXKpqsvyludCXtw2ssikKnN5wUXjlBw/hXw+05brn+nRHi87jh q/feZ1TqGQaX3dLUKGjg6zfKic2b+6tcASIU3CZR+NeBONmzwHPdbkGr6735EVVp3tw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792695772; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=+zwGxarJ/1S5oxQIZwD2h80em+XqZO5ZdW0t4BXY10Q=; b=TwYsHlIZMyY5iB2PCG39ZENAGKn5rN842Xn1zsN9l4xYkFxrHpW9siwU5OUxWG0MDjsR 60BpnKnIQUVPPqx6wFUTUbzyZC0fJi1sH9olWMAWBzilPcfwyMl8OKGCrVsxJQ8slBsTm XuISgM1nwVh5AgowwCgyIAz0PeajYy1qehWOeej82/2MWWyGwXMVzgdeY3+5eOKnr4ewL /r3+tGJ403i6fJKOHfvVzkHO9FCa1Qtb1RAqBd6SG3iDDb7dDZFy1XMhXpryq0e4pWR7I FNyE4gIkK6J9vtQENYGVq5X4NLFIKtL9HLiumHUvDRIY9qBlNtDx82mD6gugL5hMc7g== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PRLHXFm0; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A85DD606A31B; Thu, 22 Oct 2026 19:02:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PRLHXFm0 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792695771; b=33RDn/1P5747gLQX0gbNdMc2piWikByklC82D4LrTurtCafsZVEQkRRnrQeT0P4BDrVw tdiUzRPuAFSWfqYqPvQ6nNzyrKZciitLDtchFVQU4FdSbSQTCqueYSbsGB45BLE6/ITqa dslZMnBjfOaJor9/oySP89e1vRso3tfdzCQB+ACkGkM1EL6QphwfP4aWk6osU6lrkNefD gwpvWt/pu0ADffb/lws3l95LbACgUBKRlbUbU3sGs7RQe57lHzya9qS/++/D3byhhVpjF kKwXoNo45dbWNpxiGLPy8JcONM5Z0IaIqfo8ma50fbwzoFJ6pSaO1K1pBhcUc1T5tLQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792695771; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=+zwGxarJ/1S5oxQIZwD2h80em+XqZO5ZdW0t4BXY10Q=; b=IbpJcP/fRPnuEPweb5hgMd5iA5HdFRxG1EBTR5Jkk3LB60CK6O0Srs0DXt/8oj6VwsdH hOxRN1p1vyWt3N1YbPqou51Dpyt0eldAU7xcw9Wkz7GUCnhLWHUGKOmZpK//8bs/IK+lh jCJmb295tTH1bXT/hLF2MpyxnlJM3Wg7AWRjL2KDGHVouhXPtrFn5gsnOMUEKyZ/BG+Ks m7GNAI7saX8SY96g4kO4/FKVArHmscOmca0Zf66sTngB0KzvCuwo5JSkdP4wRpiyup4Kb KI3K0uVvIUF+/NbfL2dNUQithREJx2BOOaD3UqcsypYJ7ppmFWHQikLlquBpJ18pfhQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PRLHXFm0; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D5BB606A319 for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 19:02:51 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8753F1F01828; Thu, 22 Oct 2026 19:02:50 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792695771; bh=+zwGxarJ/1S5oxQIZwD2h80em+XqZO5ZdW0t4BXY10Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PRLHXFm0Gy4EcHngiLErKKOcNnStE7sASc+Hha9P3I+qBGHvc/JSGGFAh17pssInW V72HagFTAPNo0PnFf9hyX6amXfWE9AD1cYf+mnKSux8C+YARV9ZZZDRUXyIZ1V4Au8 8cXwLrBCFqdYvvwIidjKsHElzybtZacHyhhYNQ95gKVHnlIWt7BzR3QycNrhlkgUSB PfPvjvkt0njUCu+PLgR0KOQjBthytGqlgoGHiKQitpm2WG6qdOeApSaNcxTGmPnIjQ qATF+ws6E53V6h93431sx//lT4XbqGgu+JUzyuZd61I386LzdOJ649UfCVWpQKMctD tShOZSEi7y+ZA== X-Cc: netdev@vger.kernel.org, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, victor@mojatatu.com, toke@toke.dk, bjorn@kernel.org, sashiko-bot@kernel.org X-In-Reply-To: <QDISC-BA27.v7.r0.20261019115505-1@mojatatu.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list