Article View: linux.kernel.netdev
Article #10361Re: [PATCH net v2] net: ethernet: mediatek: preserve sibling PPE bindings
From: Simon Horman
Date: Tue, 03 Nov 2026 11:35
Date: Tue, 03 Nov 2026 11:35
41 lines
9595 bytes
9595 bytes
On Thu, Oct 29, 2026 at 06:05:17PM -0700, Alexander Goodkind wrote:
> __mtk_ppe_check_skb() clears entry->hash for flows bound to other
> hardware slots in the same software hash bucket. mtk_flow_offload_stats()
> then skips their hardware counter updates. L2 cleanup also frees sibling
> subflows without invalidating their hardware rules.
>
> Restrict both cleanup paths to entries assigned to the inspected slot.
>
> Two UDP trials reproduced the counter failure on a GL-MT3000/MT7981
> running unmodified OpenWrt 25.12.5 with Linux 6.12.94:
>
> 1. Start a UDP connection.
> 2. Add a control connection in a different hash bucket.
> 3. Add a connection in the first connection's hash bucket.
>
> AI code review of the original patch identified the cleanup problem
> in L2 subflows.
>
> Full ARM64 builds with allmodconfig and allyesconfig passed before
> and after the patch using GCC 14.2.0 and W=1, without new warnings.
> The builds used CONFIG_WERROR=n because the unmodified ARM64 kernel
> already emits warnings. Hardware testing has not run for this revision.
>
> Fixes: c4f033d9e03e ("net: ethernet: mtk_eth_soc: rework hardware flow table management")
> Fixes: 33fc42de3327 ("net: ethernet: mtk_eth_soc: support creating mac address based offload entries")
> Link: https://github.com/openwrt/openwrt/pull/26107
> Assisted-by: LLM
> Signed-off-by: Alexander Goodkind <alex@goodkind.io>
> ---
> Changes in v2:
> - Apply the slot check to L2 subflow cleanup as well.
> - Add the Fixes tag for L2 offload support.
>
> V1: https://lore.kernel.org/netdev/20261023012529.5994-1-alex@goodkind.io/
>
> Codex assisted with investigating the counters and preparing the patch.
Thanks for the updates.
Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261103113559.GH865646@horms.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-355534-linux-kernel-netdev=dewy.ruReferences:
<20261030010517.45639-1-alex@goodkind.io>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-355534-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: ethernet: mediatek: preserve sibling PPE bindings Date: Tue, 3 Nov 2026 11:35:59 +0000 Organization: Usenet Network Message-ID: <20261103113559.GH865646@horms.kernel.org> References: <20261030010517.45639-1-alex@goodkind.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3169858"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:jOWGC/hWGeaQglls+4IZtXUjlss= sha256:U0ocwNK0i0qnS8Vzhp8/GLM2iAEXgBZ1zg0u9Gb18AI= sha1:WalLbMYOhottNyI1uyCVJcQnRck= sha256:9NGMURf39TSWrDP/Y0kphyFtBAygqX38ovZazHllGSE= Content-Disposition: inline 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 77848112895; Tue, 3 Nov 2026 16:06:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 Om0y5I94yT3b; Tue, 3 Nov 2026 16:06:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355534-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 0523E11288B; Tue, 3 Nov 2026 16:06:17 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 9A426E7C8A; Tue, 3 Nov 2026 11:36:55 +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=1793705776; b=ZgNWMxeAJqJE3XH9qWH4xhJ67ADAdvL3383b5WkZ2xQD9Anr9d0gAsdKktBhBbNn+m9Q ZGgM6p0M8/vzxHqQopY41ygKXTdImEuoPMsSxaKH9NNqea5EMIVMLJ6QYLGxq85T9jtBp oYmZCZVl8kDfBVNv8PGdUs9AEPuBLcnLThqe8b3HawEPsGEMcMySra5/f+m5oCBEdbVVK EdrZyFw/Hf/Uh7pzeWYRfOc7cfX/WVI3MhKrdisGz6fBeFsNB7Sb6MOtsZ/ccETxzulU+ YekvkIP6EBojeZuHqpB4IKroYyeZAlRleKAMLD1GsI9aucd5N++4UJLC8y+ca+WeWZA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705776; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=GAY7T9NQ/2byBz25PRaY9dnQ/M+bRZtNm/ceVen4yX8=; b=p9oCRXq3rktkJPOehHkpHuz42eQEnafb5tYX50rS+oOsWR3/XxYQ266Xrp9O3uDgkyWj Gs22SExxPN+3GyH8aKtBNQZr2KRa/MIxq+tb/0Nqd53pRLwI+SrPullokNOdU0HSPmfnQ pRbh7Y4F3yQMNJtPbq7sT+8BlPmeuv4QapQZ/d9peOURi3zjk1f3Gkm7Lb8+7ldx7VJQj vbdc9jjN+BiVJAsYPGiRRyYBb5lh+z2SpAUj2kEpLpsun3I/fJxEClNlbe3Fp3Lotb6+g leCL4w2UJT6xlwhO265D+cQsw5uD/ouD8XfsohdDMLX74xAKhjrRLzf3yseigs1Izog== 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=nA3OMBqW; 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 13BED606EEB6; Tue, 3 Nov 2026 11:36:16 +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=nA3OMBqW 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=1793705765; b=tWKZvy0MYtTynfZqkEGdk3uvejwBq1jJS1dxS2LxIgclhhYdU6cDw4isWI0we1WHmwKh X6fbaQriJgaYeoyLXU2KGkncUBTd3dy2TbLymJCdnfVrn4TCsisOEsoJa+BCz1f0KDVWW wZGbvv9yFTsivYpH6GCob0enLMTkynyr3WeAArjQZPMNKu1iakxkSZFMm29j3WwCnA0hp mUGV/EPYpmE/t+kMKdCcehJKqMDsihcXrcrvql+KsV/qwpFG/tSBEgb5ZlkvoVLHg5qiN v6HRVRz5ZBy8H+9G77pMfdKw2+gITHyveXenZ926hXtn+quzOe0MGJVTPCZn9zjVYhA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705765; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=GAY7T9NQ/2byBz25PRaY9dnQ/M+bRZtNm/ceVen4yX8=; b=r5OMsgQqKW21+EOHJpk/AqECpPudc7joDjElx4DIDCIUy9fcTZJYRGKHCMYpH/XzI4aK Gy3JKHud0xY+TK/tzZ1kzqM/mxRY3InimFfWrfcS5uX2mXkuqb/hqQzivfmlAsGvBEAEf NGneTy9Yt05rSLdvsepNpdfOFN2MV+x4cbtMmUumvwdwstbRvo/d2HS3nc9RxplA3yySa Rjg1EoMmg7f5wJEwwJEM15tUkJFNwHGeWqe2pRhF76LZbx1OItw7XYyijHiZm28xLPmK2 Dou24e+AdaeuFpacU4mIWqai3InLsAerS2bnjaTJlS7TsaH78solamqJYJPDhy2OjOg== 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=nA3OMBqW; 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 E6A02606A326; Tue, 3 Nov 2026 11:36:04 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAC561F000C1; Tue, 3 Nov 2026 11:36:01 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793705764; bh=GAY7T9NQ/2byBz25PRaY9dnQ/M+bRZtNm/ceVen4yX8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=nA3OMBqWR3BQKf86wg06Nkoydxsho4x5uDILtm0Wr4EW2r2fdhXIP5OCdlAW4ZDaq 0BJft8wJVNe5odsp9CN31xIr5c8PkYsezfZitLD659jFaV6L6smQxMcklu+aX5lZEO Vb3cUdHRZdLiVVpoqlbqTXZ8h+APFIqpnQdOJ+TfmL8+wpGtKrgBR1osymsimxZCkI QkBLZg9Y+v/+Hvut5kBk0l0a9WTRfC/j5DSnPW5ywu0eCHNv0JnPpAf/Ma6d/otvBo d9LlnSqLIAEx1PLOfF5lKfUFFyv/ejU7ssVijiIBTWOTCrm3VYJxZNPJRnt1SHOJaI GFS1LbeJoZoVw== X-Cc: Felix Fietkau <nbd@nbd.name>, Lorenzo Bianconi <lorenzo@kernel.org>, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Tarick Bedeir <tarick@bedeir.com> 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 X-In-Reply-To: <20261030010517.45639-1-alex@goodkind.io>