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

2021-03-16 Thread Vladimir Oltean
On Tue, Mar 16, 2021 at 11:40:13PM +0100, Tobias Waldekranz wrote: > > Actually, I think there is a bigger issue. > > Sadly, I only put 2 and 2 together now, and I believe we are still not > > dealing correctly with 8021q uppers of bridge ports with vlan_filtering 0. > > The network stack's expecta

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

2021-03-16 Thread Tobias Waldekranz
On Tue, Mar 16, 2021 at 23:49, Vladimir Oltean wrote: > On Tue, Mar 16, 2021 at 05:08:28PM +0100, Tobias Waldekranz wrote: >> On Tue, Mar 16, 2021 at 01:49, Vladimir Oltean wrote: >> > On Mon, Mar 15, 2021 at 08:54:13PM +0100, Tobias Waldekranz wrote: >> >> There are four kinds of events that hav

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

2021-03-16 Thread Vladimir Oltean
On Tue, Mar 16, 2021 at 05:08:28PM +0100, Tobias Waldekranz wrote: > On Tue, Mar 16, 2021 at 01:49, Vladimir Oltean wrote: > > On Mon, Mar 15, 2021 at 08:54:13PM +0100, Tobias Waldekranz wrote: > >> There are four kinds of events that have an inpact on VLAN > > > > impact > > > >> configuration of

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

2021-03-16 Thread kernel test robot
Hi Tobias, I love your patch! Perhaps something to improve: [auto build test WARNING on net/master] url: https://github.com/0day-ci/linux/commits/Tobias-Waldekranz/net-dsa-Centralize-validation-of-VLAN-configuration/20210316-035618 base: https://git.kernel.org/pub/scm/linux/kernel/git/dave

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

2021-03-16 Thread Tobias Waldekranz
On Tue, Mar 16, 2021 at 01:49, Vladimir Oltean wrote: > On Mon, Mar 15, 2021 at 08:54:13PM +0100, Tobias Waldekranz wrote: >> There are four kinds of events that have an inpact on VLAN > > impact > >> configuration of DSA ports: >> >> - Adding VLAN uppers >> (ip link add dev swp0.1 link swp0 ty

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

2021-03-15 Thread Vladimir Oltean
On Mon, Mar 15, 2021 at 08:54:13PM +0100, Tobias Waldekranz wrote: > There are four kinds of events that have an inpact on VLAN impact > configuration of DSA ports: > > - Adding VLAN uppers > (ip link add dev swp0.1 link swp0 type vlan id 1) (..) > +static bool dsa_8021q_uppers_are_coherent(st

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

2021-03-15 Thread Tobias Waldekranz
There are four kinds of events that have an inpact 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