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 07/15] net: dsa: realtek: rtl8365mb: set and get VLAN 4k for family D
Date: Tue, 01 Dec 2026 21:22:14 +0000	[thread overview]
Message-ID: <179616013416.3146.14488688243211558866@kernel.org> (raw)
In-Reply-To: <68d036aa-7c5c-4fe2-9fd8-048cb96d471d@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 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

  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 [this message]
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
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=179616013416.3146.14488688243211558866@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