Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Linus Walleij
Fri, 16 Oct 2026 20:08
Re: [PATCH net-next v6 6/9] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D
Author: Linus Walleij
Date: Fri, 16 Oct 2026 20:08
Date: Fri, 16 Oct 2026 20:08
35 lines
7872 bytes
7872 bytes
On Fri, Oct 16, 2026 at 3:06 AM Mieczyslaw Nalewaj <namiltd@yahoo.com> wrote: > Family D has no working VLAN member config (MC) table. Its PVID is a > raw 12-bit VID in a per-port register at 0x0700 + port, whereas family C > stores a 5-bit MC table index, two ports per register, at > 0x0700 + (port >> 1). > > Running the family C code on family D therefore reads an MC table that > does not exist, and writes an MC index into the VID register of port > (port >> 1) instead of the one of the port being configured. > > Read the PVID straight from its register in > rtl8365mb_vlan_port_get_pvid(), and make rtl8365mb_vlan_pvid_port_set() > and rtl8365mb_vlan_pvid_port_clear() use direct-VID variants on family D > that skip the MC table. They keep the family C frame filter handling and > rollback on error. > > Also clear the family D PVID registers when the VLAN support is set up. > Unlike on family C, where VLANMC index 0 is the neutral PVID, the > register holds a raw VID, and after a reset it keeps its hardware (or > EEPROM) default. Without clearing it an unconfigured port could report > a stale PVID from rtl8365mb_vlan_port_get_pvid(), and > rtl8365mb_port_vlan_filtering() would accept untagged frames into it. > > No functional change for family C. > > Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Why did they remove that ... weird but it is as it is. Reviewed-by: Linus Walleij <linusw@kernel.org> Yours, Linus Walleij
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