Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by netdev-bot+sashiko
Tue, 01 Dec 2026 21:22
Re: [PATCH net-next v17 07/15] net: dsa: realtek: rtl8365mb: set and get VLAN 4k for family D
Author: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 21:22
Date: Tue, 01 Dec 2026 21:22
64 lines
10429 bytes
10429 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads