[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220705173114.2004386-1-vladimir.oltean@nxp.com>
Date: Tue, 5 Jul 2022 20:31:11 +0300
From: Vladimir Oltean <vladimir.oltean@....com>
To: netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Xiaoliang Yang <xiaoliang.yang_1@....com>,
Claudiu Manoil <claudiu.manoil@....com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
UNGLinuxDriver@...rochip.com, Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Petr Machata <petrm@...dia.com>,
Ido Schimmel <idosch@...dia.com>,
Woojung Huh <woojung.huh@...rochip.com>,
Oleksij Rempel <linux@...pel-privat.de>,
Arun Ramadoss <arun.ramadoss@...rochip.com>,
Hauke Mehrtens <hauke@...ke-m.de>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Subject: [RFC PATCH net-next 0/3] Delete ds->configure_vlan_while_not_filtering
Even though this isn't documented explicitly, we have told driver
writers on different occasions (mainly during review) that
ds->configure_vlan_while_not_filtering is an option which ideally should
not exist, is opt-in, that we should work towards deleting it, and new
drivers should not opt into it.
However, what seems to be happening is that new drivers still seem to be
able to slip through the cracks and get introduced with the VLAN
skipping legacy behavior.
Such is the case of the Microchip LAN937x, which was merged in v15,
after being taken over by Arun Ramadoss from Prasanna Vengateshan.
https://patchwork.kernel.org/project/netdevbpf/cover/20220701144652.10526-1-arun.ramadoss@microchip.com/
I had asked Prasanna to remove the deprecated option from existing KSZ
drivers:
https://patchwork.kernel.org/project/netdevbpf/patch/20210723173108.459770-11-prasanna.vengateshan@microchip.com/#24351125
and yet somehow, how we are in the situation that after Arun's KSZ
driver refactoring to use more common code, the quirks are common too,
including ds->configure_vlan_while_not_filtering being inherited by the
new LAN937x driver.
Maybe the problem was that I wasn't specific enough about what should be
done to move forward, so this patch set attempts to be a more concrete
step. I've created a selftest that captures what I believe to be the
essence of the workaround, and I'd like to ask maintainers with access
to KSZ and to GSWIP hardware to test it and to propose fixes.
Vladimir Oltean (3):
selftests: forwarding: add a vlan_deletion test to bridge_vlan_unaware
net: dsa: ar9331: remove ds->configure_vlan_while_not_filtering
net: dsa: never skip VLAN configuration
drivers/net/dsa/lantiq_gswip.c | 2 --
drivers/net/dsa/microchip/ksz_common.c | 2 --
drivers/net/dsa/qca/ar9331.c | 2 --
include/net/dsa.h | 7 ------
net/dsa/dsa2.c | 2 --
net/dsa/dsa_priv.h | 1 -
net/dsa/port.c | 14 -----------
net/dsa/slave.c | 22 +---------------
.../net/forwarding/bridge_vlan_unaware.sh | 25 ++++++++++++++++---
9 files changed, 23 insertions(+), 54 deletions(-)
--
2.25.1
Powered by blists - more mailing lists