Netdev List
 help / color / mirror / Atom feed
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
Subject: Re: [PATCH net-next v17 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D
Date: Tue, 01 Dec 2026 21:22:15 +0000	[thread overview]
Message-ID: <179616013577.3146.15822768854048249694@kernel.org> (raw)
In-Reply-To: <db0092bb-ceba-4f1d-941f-b830c909699d@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 commit message of "net: dsa: realtek: rtl8365mb: use raw VID
  for PVID on family D" gives the wrong reason for the linkage of the…

--

net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D

This commit adds family D versions of the PVID helpers. On family D the
PVID is a raw 12-bit VID in a per-port register, so these helpers do not
use the VLAN MC table. It also clears the family D PVID registers in
rtl8365mb_vlan_setup() through a new vlan_port_reset_pvid hook.

> Nothing points to the new functions until the family D info is added
> together with the chip table entry in the last patch. Until then they are
> not static and are declared in rtl8365mb_vlan.h, so that the build does
> not warn about unused functions.

[Severity: Low]

This isn't a bug, but is the reason given here accurate?

The helpers are defined in rtl8365mb_vlan.c:

  rtl8365mb_d_vlan_port_get_pvid()
  rtl8365mb_d_vlan_port_reset_pvid()
  rtl8365mb_d_vlan_pvid_port_set()
  rtl8365mb_d_vlan_pvid_port_clear()

The struct rtl8365mb_family_info tables that point to them are in
rtl8365mb_main.c. Those references cross files, so the helpers must be
non-static and declared in rtl8365mb_vlan.h for the driver to link. That
holds whether or not anything uses them yet.

The family C helpers already work this way:

drivers/net/dsa/realtek/rtl8365mb_main.c:rtl8365mb_family_c
	.vlan_port_get_pvid = rtl8365mb_c_vlan_port_get_pvid,
	.vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid,
	.vlan_pvid_port_set = rtl8365mb_c_vlan_pvid_port_set,
	.vlan_pvid_port_clear = rtl8365mb_c_vlan_pvid_port_clear,

The series ends with "net: dsa: realtek: rtl8365mb: add support for
RTL8367S-VB". After that patch, rtl8365mb_family_d in rtl8365mb_main.c
points to the rtl8365mb_d_* helpers in the same way. The helpers are
still non-static and still declared in rtl8365mb_vlan.h.

The "Until then" wording suggests the arrangement is temporary and that
the helpers will become static later. Could the commit message say
instead that the helpers are declared in rtl8365mb_vlan.h because the
family info tables in rtl8365mb_main.c reference them?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a%40yahoo.com

  reply	other threads:[~2026-12-01 21:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <236d002f-5ca5-4f12-bf5b-0ed6442e5c9a.ref@yahoo.com>
2026-11-30 20:06 ` [PATCH net-next v17 00/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-11-30 20:08   ` [PATCH net-next v17 01/15] dt-bindings: net: dsa: realtek: add RTL8367S-VB Mieczyslaw Nalewaj
2026-11-30 20:08   ` [PATCH net-next v17 02/15] net: dsa: realtek: rtl8365mb: add chip family infrastructure Mieczyslaw Nalewaj
2026-11-30 20:08   ` [PATCH net-next v17 03/15] net: dsa: realtek: rtl8365mb: refactor forcemode handling Mieczyslaw Nalewaj
2026-11-30 20:09   ` [PATCH net-next v17 04/15] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-11-30 20:09   ` [PATCH net-next v17 05/15] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-11-30 20:09   ` [PATCH net-next v17 06/15] net: dsa: realtek: rtl8365mb: refactor VLAN 4k handling Mieczyslaw Nalewaj
2026-11-30 20:10   ` [PATCH net-next v17 07/15] net: dsa: realtek: rtl8365mb: set and get VLAN 4k for family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:11   ` [PATCH net-next v17 08/15] net: dsa: realtek: rtl8365mb: refactor PVID handling Mieczyslaw Nalewaj
2026-11-30 20:11   ` [PATCH net-next v17 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko [this message]
2026-11-30 20:11   ` [PATCH net-next v17 10/15] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:11   ` [PATCH net-next v17 11/15] net: dsa: realtek: rtl8365mb: refactor L2 MAC handling Mieczyslaw Nalewaj
2026-11-30 20:12   ` [PATCH net-next v17 12/15] net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:12   ` [PATCH net-next v17 13/15] net: dsa: realtek: rtl8365mb: refactor QoS priority handling Mieczyslaw Nalewaj
2026-11-30 20:17   ` [PATCH net-next v17 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:17   ` [PATCH net-next v17 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj

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=179616013577.3146.15822768854048249694@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=o.rempel@pengutronix.de \
    --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