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
Subject: Re: [PATCH net-next v12 09/13] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D
Date: Tue, 24 Nov 2026 01:24:39 +0000 [thread overview]
Message-ID: <179548347940.3135.10925296228835177150@kernel.org> (raw)
In-Reply-To: <d966bcfd-1718-43b5-a2cb-ee5932bb361e@yahoo.com>
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 PVID reset hook is split across two patches, and neither
commit message fully describes its own part of it.
--
net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D
This adds family D versions of the PVID helpers. On family D the PVID is a
raw 12-bit VID in a per-port register, and there is no VLAN MC table. It
also clears the family D PVID registers from rtl8365mb_vlan_setup()
through a new vlan_port_reset_pvid hook in struct rtl8365mb_family_info.
> Add the family D implementations of the PVID helpers,
> rtl8365mb_d_vlan_port_get_pvid(), rtl8365mb_d_vlan_pvid_port_set() and
> rtl8365mb_d_vlan_pvid_port_clear(), which skip the MC table. They keep the
> family C frame filter handling and rollback on error. The shared code
> reaches them through the vlan_port_get_pvid, vlan_pvid_port_set and
> vlan_pvid_port_clear pointers in struct rtl8365mb_family_info, so it
> needs no is_d() check.
[Severity: Low]
This isn't a bug, but the list of new family D helpers leaves out
rtl8365mb_d_vlan_port_reset_pvid(). This patch also adds it to
rtl8365mb_vlan.c and exports it through rtl8365mb_vlan.h:
int rtl8365mb_d_vlan_port_reset_pvid(struct realtek_priv *priv, int port);
A later paragraph does describe clearing the PVID at setup. Could the
function and the vlan_port_reset_pvid pointer be added to this list as
well?
The hook is also split across two patches. The earlier patch "net: dsa:
realtek: rtl8365mb: refactor PVID handling" adds these pieces:
- the vlan_port_reset_pvid member of struct rtl8365mb_family_info
- the no-op rtl8365mb_c_vlan_port_reset_pvid()
- its prototype in rtl8365mb_vlan.h
- .vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid in the
family C info
The message of that patch lists only three pointers and says "No
functional change". Nothing calls the hook there. Its only caller arrives
in this patch, in rtl8365mb_vlan_setup():
> + ret = fi->vlan_port_reset_pvid(priv, dp->index);
Would it make sense to either move the hook and the family C stub into
this patch, or mention them in the refactor patch's commit message?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/bc42ae96-dc7e-4b6e-b9cc-64cde5dc51ce%40yahoo.com
next prev parent reply other threads:[~2026-11-24 1:24 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bc42ae96-dc7e-4b6e-b9cc-64cde5dc51ce.ref@yahoo.com>
2026-11-19 23:57 ` [PATCH net-next v12 00/13] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-11-19 23:58 ` [PATCH net-next v12 01/13] dt-bindings: net: dsa: realtek: add RTL8367S-VB Mieczyslaw Nalewaj
2026-11-19 23:59 ` [PATCH net-next v12 02/13] net: dsa: realtek: rtl8365mb: add chip family infrastructure Mieczyslaw Nalewaj
2026-11-20 0:00 ` [PATCH net-next v12 03/13] net: dsa: realtek: rtl8365mb: refactor forcemode handling Mieczyslaw Nalewaj
2026-11-20 0:01 ` [PATCH net-next v12 04/13] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-11-20 0:02 ` [PATCH net-next v12 05/13] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-11-20 0:03 ` [PATCH net-next v12 06/13] net: dsa: realtek: rtl8365mb: refactor VLAN 4k handling Mieczyslaw Nalewaj
2026-11-20 0:04 ` [PATCH net-next v12 07/13] net: dsa: realtek: rtl8365mb: set and get vlan 4k for family D Mieczyslaw Nalewaj
2026-11-20 14:17 ` Gustavo Foletto Mora
2026-11-21 1:30 ` Mieczyslaw Nalewaj
2026-11-21 18:24 ` Gustavo Foletto Mora
2026-11-24 1:24 ` netdev-bot+sashiko
2026-11-20 0:05 ` [PATCH net-next v12 08/13] net: dsa: realtek: rtl8365mb: refactor PVID handling Mieczyslaw Nalewaj
2026-11-20 14:18 ` Gustavo Foletto Mora
2026-11-20 0:06 ` [PATCH net-next v12 09/13] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D Mieczyslaw Nalewaj
2026-11-20 14:26 ` Gustavo Foletto Mora
2026-11-24 1:24 ` netdev-bot+sashiko [this message]
2026-11-20 0:07 ` [PATCH net-next v12 10/13] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-11-24 1:24 ` netdev-bot+sashiko
2026-11-20 0:07 ` [PATCH net-next v12 11/13] net: dsa: realtek: rtl8365mb: refactor L2 MAC handling Mieczyslaw Nalewaj
2026-11-20 0:08 ` [PATCH net-next v12 12/13] net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D Mieczyslaw Nalewaj
2026-11-21 9:33 ` Mieczyslaw Nalewaj
2026-11-21 18:26 ` Gustavo Foletto Mora
2026-11-24 1:24 ` netdev-bot+sashiko
2026-11-20 0:09 ` [PATCH net-next v12 13/13] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-11-20 20:56 ` Gustavo Foletto Mora
2026-11-21 1:46 ` Mieczyslaw Nalewaj
2026-11-21 18:29 ` Gustavo Foletto Mora
2026-11-23 8:01 ` Oleksij Rempel
2026-11-23 12:47 ` Mieczyslaw Nalewaj
2026-11-24 1:24 ` netdev-bot+sashiko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179548347940.3135.10925296228835177150@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=alvin.sipraga@analog.com \
--cc=andrew@lunn.ch \
--cc=contact@c127.dev \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fabianotassotti@gmail.com \
--cc=gabonpivovich@gmail.com \
--cc=gusfmora@gmail.com \
--cc=kuba@kernel.org \
--cc=kuncy7@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=luizluca@gmail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=namiltd@yahoo.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox