Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796160136; b=29/vx579Ml3mmATG8S/+XpERKnQ+awZl+l40Z5i1xe5x4goh5/nH+smP0Kr95sZRnR2m s5GrABPSbI1gSjgCuaDV0Yud1uaZ/F5hz5SwO1sV9DGXESR2Vh7TnuAzATvo2H4WUQ34d 2DxLnEPrrKMtzzVGV5i3jOoEZmb+2P0se39v0ZROX0fZJ0C7JYRz9jV0xR8ZglY1HVr5g +vVKY+7prh3mZG9eUtrE6UORfEQPXtApqW6GyuRACehvmsQnRETgzX7BdTGKK/Vl0Y9kh zUVgn/mN/ZvQPlNgkY07F0f6qlzXhy3F3HgYzqK3E/8LFRR5Mr084q5NierU7Ems2/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160136; 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=jd9R26ZJBTd7FiFV51nXoblh20kLbW/iZD0wWOObXwA=; b=ByUdmEdII7k6kAiYw+nZpVqzTPwDWVzykHlRQCZj6Tql0s+DbNff0jNgGpdUnwLyv8mR 7ZOlvWJ/qiSKSns9jLpflIrdrX+5/GVWhbiF7TGG+J1FqvixyoKP7J+tqnWjKs2VVMvvQ HStjlps7hzYcxhqFOJFx0G1F6PA3S81fP0ixHZuZNg2vPOkPVhNJGYpRbovbCdOw/ue3w rrH4vbCFKiDeOMYh6w497ZyUckW1lJOBUpE2lP7APrhHDuvOYM7eqNKtGdNfL9ThAf4b7 z41LpiRONDeHtSkFFgXmxorPZFx2FPpba2lQTgioeq7BG4srJwvqbQrxV9pd2k8sZxw== 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=b2udp+Dj; arc=none smtp.remote-ip=100.103.45.18 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 0C7D8606A31A; Tue, 1 Dec 2026 21:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b2udp+Dj Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A6471F00893; Tue, 1 Dec 2026 21:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796160135; bh=jd9R26ZJBTd7FiFV51nXoblh20kLbW/iZD0wWOObXwA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=b2udp+Dju6/VtkU0Llyp3P4fs1gAWhe8nlBM5UGMu3wvoWsPmsI5dq7Lnmf2MaKqi xoRW1BHOrNjV0IX0yJv+fR/pVGCg14yF8LdgN4UGCMiKTYXhvScuw6Lca3VZDHTchq rPU0H5DBBEBQz7HxM3+SmvLiOnSeQW1wJDflA2gIUDz5hfjLzOjVCf56nYNYA6nmuB zB9hQAvU0tMsNC/NvuWcJxAtMjmFWj4/o/sFyKYY3rpe7GmqO/Sqpx3CcpRcy64bpi Fo4AVdmGqGmsDaZ0yaBreQIuPQik0Jq3rfU6sl3Ct8A2dKJqdJwpEV3N/8MW86VL5D ELpjnxTpZVuCw== Subject: Re: [PATCH net-next v17 07/15] net: dsa: realtek: rtl8365mb: set and get VLAN 4k for family D From: netdev-bot+sashiko@kernel.org To: namiltd@yahoo.com Cc: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev, o.rempel@pengutronix.de Date: Tue, 01 Dec 2026 21:22:14 +0000 Message-ID: <179616013416.3146.14488688243211558866@kernel.org> In-Reply-To: <68d036aa-7c5c-4fe2-9fd8-048cb96d471d@yahoo.com> References: <68d036aa-7c5c-4fe2-9fd8-048cb96d471d@yahoo.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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 does not match the code it adds. -- net: dsa: realtek: rtl8365mb: set and get VLAN 4k for family D This patch adds two-word CVLAN pack/unpack helpers for rtl8365mb family D. It also adds a switch-wide SVL/IVL policy that follows VLAN filtering. A vlan_4k_used bitmap in struct realtek_priv tracks the 4K entries in use, so that a policy flip rewrites only those entries and then flushes dynamic L2 entries on every user port. > drops out of the bitmap. The rewrite itself is a separate function, > rtl8365mb_d_vlan_4k_set_ivl(), so that an error path can do a best-effort > restore of the previous IVL_EN values (without flushing L2 entries). [Severity: Low] Is the "(without flushing L2 entries)" part accurate? In this patch, no error path outside rtl8365mb_d_vlan_4k_set_ivl() calls it. The only restore is the function's own rollback loop. Whenever rtl8365mb_d_vlan_4k_set_ivl() succeeds, it always flushes: drivers/net/dsa/realtek/rtl8365mb_vlan.c:rtl8365mb_d_vlan_4k_set_ivl() { ... dsa_switch_for_each_user_port(dp, ds) rtl83xx_port_fast_age(ds, dp->index); return 0; ... } The error-path caller is added later in the series, in "net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D". There, the undo_refresh_ivl label in rtl8365mb_port_vlan_filtering() does: (void)rtl8365mb_d_vlan_4k_set_ivl(ds, old_ivl); When that restore succeeds, dynamic L2 entries are flushed on every user port. This is still the case at the end of the series. Could the commit message be reworded to match the code? For example, it could say that only the internal rollback loop skips the flush. Separately, this isn't a bug, but the subject only mentions the set/get pack and unpack helpers. The patch also adds: - the switch-wide SVL/IVL policy - the vlan_4k_used bitmap (VLAN_N_VID bits) in the shared struct realtek_priv - the fast-age of all user ports when the policy flips - the new undo_egress_mode error path in rtl8365mb_port_vlan_filtering() Would a subject that also covers the IVL policy change be clearer? -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a%40yahoo.com