Re: [PATCH v2 net] net: dsa: Centralize validation of VLAN configuration

2021-03-16 Thread Vladimir Oltean
On Tue, Mar 16, 2021 at 10:49:52PM +0100, Tobias Waldekranz wrote: > There are four kinds of events that have an impact on VLAN > configuration of DSA ports: > > - Adding VLAN uppers > (ip link add dev swp0.1 link swp0 type vlan id 1) > > - Bridging VLAN uppers > (ip link set dev swp0.1 maste

[PATCH v2 net] net: dsa: Centralize validation of VLAN configuration

2021-03-16 Thread Tobias Waldekranz
There are four kinds of events that have an impact on VLAN configuration of DSA ports: - Adding VLAN uppers (ip link add dev swp0.1 link swp0 type vlan id 1) - Bridging VLAN uppers (ip link set dev swp0.1 master br0) - Adding bridge VLANs (bridge vlan add dev swp0 vid 1) - Changes to a br