[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220715152640.srkhncx3cqfcn2vc@skbuf>
Date: Fri, 15 Jul 2022 15:26:40 +0000
From: Vladimir Oltean <vladimir.oltean@....com>
To: "Arun.Ramadoss@...rochip.com" <Arun.Ramadoss@...rochip.com>
CC: Claudiu Manoil <claudiu.manoil@....com>,
"UNGLinuxDriver@...rochip.com" <UNGLinuxDriver@...rochip.com>,
"alexandre.belloni@...tlin.com" <alexandre.belloni@...tlin.com>,
"vivien.didelot@...il.com" <vivien.didelot@...il.com>,
"andrew@...n.ch" <andrew@...n.ch>,
"idosch@...dia.com" <idosch@...dia.com>,
"linux@...pel-privat.de" <linux@...pel-privat.de>,
"petrm@...dia.com" <petrm@...dia.com>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"hauke@...ke-m.de" <hauke@...ke-m.de>,
"martin.blumenstingl@...glemail.com"
<martin.blumenstingl@...glemail.com>,
Xiaoliang Yang <xiaoliang.yang_1@....com>,
"kuba@...nel.org" <kuba@...nel.org>,
"pabeni@...hat.com" <pabeni@...hat.com>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Woojung.Huh@...rochip.com" <Woojung.Huh@...rochip.com>,
"davem@...emloft.net" <davem@...emloft.net>
Subject: Re: [RFC PATCH net-next 3/3] net: dsa: never skip VLAN configuration
On Fri, Jul 15, 2022 at 09:23:19AM +0000, Arun.Ramadoss@...rochip.com wrote:
> Hi Vladimir,
>
> We tried the following test
>
> ip link set dev br0 type bridge vlan_filtering 0
>
> ip link set lan1 master br0
> ip link set lan2 master br0
>
> bridge vlan add vid 10 dev lan1 pvid untagged
>
> ==>
> Packet transmitted from Host1 with vid 5 is not received by the Host2
> Packet transmitted from Host1 with vid 10 is not received by the Host2
> ==>
>
> bridge vlan add vid 10 dev lan2 pvid untagged
>
> ==>
> Packet transmitted from Host1 with vid 5 is received by the Host2
> Pa
> cket transmitted from Host1 with vid 10 is received by the Host2
> ==>
>
> bridge vlan del vid 10 dev lan2
>
> ==>
> Packet transmitted from Host1 with vid 5 is not received by the Host2
> Packet transmitted from Host1 with vid 10 is not received by the Host2
> ==>
>
> Tried this test before and after applying this patch series. And got
> the same result.
>
> In summary, packets are dropped when pvid is added to vlan unaware
> bridge. Let me know if anything need to performed on this.
I'm not surprised that forwarding is broken after removing
"ds->configure_vlan_while_not_filtering = false", but I'm surprised that
it's broken even without the change. That suggests that either the flag
wasn't effective in the first place, or that the breakage is caused by
other code paths (not sure which).
Do you get the "skipping configuration of VLAN" warning extack when you
run the "bridge vlan add" command without the patches here? Does
ksz_port_vlan_add() get called at all with VID 10?
Powered by blists - more mailing lists