From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796509186; b=qMZxakonudgtoAXVOL0TfarQ968U7ZbH0/sI06aSPW0Kufr16dOMg/jAMiDHjzHGAIHV 70lRRdXMfzY8LSjwGgb70A1k/6dLkCcJrHr0BfJJsD5GbbWeiKQjSFHedSIqoWRGp1LMx 89uNEe7iysUnbn1oHKjMWLbiAa3VqQRz93eY45pG5i1YqH3b0MNnlqde+ALREJRh+QoUS cmOADQySSvhXq8NHonVBpDpbQOlvvFOghpCz5hPj30W0UJiK3S2ZWYwYQmEV0zxfRGw6j GEXdqPVN8tYxUW9TW0NcTDwDwgBgQM638tDt2tZJDLfxJHaMb3OmWMwT12mtKdYe0Jw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796509186; 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=wPFChG/WjUQ1WRlikkJnla6UGGNFV6+3cAZbd8NDTe8=; b=NQ24cI0L1s7fHZlGvwQcq65CXV9jGpHHScIMCfvk/cckHkbwIH16yODyuIXlVOMVHT4r YPh/zwmqtTFevB1s4Cl4yQINegW1DHh5/jNWdJL2ksQopqBOajrrdozZyPUQm8s+EczB9 LH+v1NBcUshEMeRYUV/N9XyQyl/4JPkjxTGxGcRPbm+ekt/p3G5dsRBo+pmDltsJDV3Wd 2cDPW/n2uLZe/tORkDozw2kO7mCkiS0mRZrlPp5Xd/t85Vj9SJUtST9e0b/qtcFNaDEwK YBMGNnBQEAPeb+2HbKx0acrwesQMdpnXXKkocqMSQ3AQxXvCcY2J6oznELXRmZ/t5qg== 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=U7iWMuii; 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 8CA65606A339; Sat, 5 Dec 2026 22:19:46 +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=U7iWMuii Received: by smtp.kernel.org (Postfix) with ESMTPSA id 321E81F0092B; Sat, 5 Dec 2026 22:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796509186; bh=wPFChG/WjUQ1WRlikkJnla6UGGNFV6+3cAZbd8NDTe8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=U7iWMuiieb34WXj+LEpmMaTFKNZuhroBy0jfpZwZCVp4t4Fo9Jjf/4tN89b94jfol DIZZnGyX7evG8ibtSZj0CDJI2L8s97Vp2M+Zizhm7He9W7CdvNDT1E5F94rg4MIlls sizMqe6mFmbFz5qUOY+WBM+D2b49S+sdnhkhTf0D8u4d1wxVaJk72nvfm7Q5fxrqGd Y0NIHruxwCkAlKE9dbnhMBDL5mUr6CKEpgkY9VNk5X2l15SsOSnbz++CF1VEnQMNXw k6TxyoNWRiPrTeA3vd6F1DmHJiLMeIFlnrUbxuJ6wACluLcxxj37um+wZO1AnMScZn 8cu1BAyE98lZA== Subject: Re: [PATCH net-next v20 12/15] net: dsa: realtek: rtl8365mb: make L2/LUT access work on 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: Sat, 05 Dec 2026 22:19:44 +0000 Message-ID: <179650918478.3148.14615284115957857798@kernel.org> In-Reply-To: <12bb2f1f-bce7-4d3e-876a-8d9aa6d1aace@yahoo.com> References: <12bb2f1f-bce7-4d3e-876a-8d9aa6d1aace@yahoo.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@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 comment above rtl8365mb_d_want_ivl() in drivers/net/dsa/realtek/rtl8365mb_vlan.c (lines 371-379) is out of… -- net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D This commit gets the L2 lookup table code working on family D (RTL8367S-VB) switches. It adds the family D unicast/multicast entry (de)serializers and teaches the table access code the family D register layout. It also isolates an offloaded VLAN-unaware bridge in FID 1 through port-based FID, and limits family D to one offloaded bridge. > diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c > index 7b82cb13c06a0..87ecb0c52fffa 100644 > --- a/drivers/net/dsa/realtek/rtl8365mb_main.c > +++ b/drivers/net/dsa/realtek/rtl8365mb_main.c [ ... ] > @@ -3719,9 +3960,21 @@ static int rtl8365mb_setup(struct dsa_switch *ds) > goto out_teardown_irq; > > ds->assisted_learning_on_cpu_port = true; > - ds->fdb_isolation = true; > - /* The EFID is 3 bits, but EFID 0 is reserved for standalone ports */ > - ds->max_num_bridges = FIELD_MAX(RTL8365MB_EFID_MASK); > + if (!rtl8365mb_is_d(priv)) { > + ds->fdb_isolation = true; > + /* The EFID is 3 bits, but EFID 0 is reserved for standalone */ > + ds->max_num_bridges = FIELD_MAX(RTL8365MB_EFID_MASK); > + } else { > + /* No EFID; FID 0 is used by standalone ports and FID 1 by the > + * offloaded VLAN-unaware bridge via port-based FID, so allow > + * at most one offloaded bridge. The bridge number it gets is > + * what rtl8365mb_port_set_efid() takes as "offloaded" to > + * enable port-based FID, so max_num_bridges must not be 0. > + * A bridge with another number is rejected in > + * rtl8365mb_port_set_efid() and stays software-forwarded. > + */ > + ds->max_num_bridges = 1; > + } [Severity: Low] This isn't a bug, but should the comment above rtl8365mb_d_want_ivl() in rtl8365mb_vlan.c be updated with this change? It still reads: drivers/net/dsa/realtek/rtl8365mb_vlan.c: /* Family D has no EFID. Use IVL while at least one user port is VLAN * filtering and SVL otherwise. The family D L2 helpers added later in the * series use the matching key for static FDB/MDB entries. ... * switch-wide: a VLAN-unaware bridge that shares the switch with a * VLAN-aware one also gets IVL (known limitation). */ This patch adds those helpers (rtl8365mb_d_l2_uc_to_data(), rtl8365mb_d_l2_data_to_uc(), rtl8365mb_d_l2_mc_to_data() and rtl8365mb_d_l2_data_to_mc()). Once they are in the tree, "added later in the series" is out of date. The "known limitation" also looks like it can no longer happen. With max_num_bridges = 1, and rtl8365mb_port_set_efid() rejecting efid > 1, only one bridge per switch is offloaded. Ports of a bridge that is only forwarded in software never get vlan_filtering. dsa_user_port_attr_set() rejects the attribute for them: net/dsa/user.c:dsa_user_port_attr_set() { ... case SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING: if (!dsa_port_offloads_bridge_dev(dp, attr->orig_dev)) return -EOPNOTSUPP; ... } As a result, dsa_port_is_vlan_filtering() in rtl8365mb_d_want_ivl() only reflects the one offloaded bridge. Could the comment drop the reference to the series and the limitation note? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/9efcb80a-517c-4413-8261-4f9380e0eb83%40yahoo.com