From: Vladimir Oltean <olteanv@gmail.com>
To: Jonas Gorski <jonas.gorski@gmail.com>
Cc: Paolo Abeni <pabeni@redhat.com>, Andrew Lunn <andrew@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: dsa: fix VLAN 0 filter imbalance when toggling filtering
Date: Mon, 28 Apr 2025 12:02:44 +0300 [thread overview]
Message-ID: <20250428090244.phg3xijxhhtczkvk@skbuf> (raw)
In-Reply-To: <CAOiHx=keOAWqF4Atzqx4VZW+xAccO=WtWCOoVoEPR9iFrDf_zw@mail.gmail.com>
On Sat, Apr 26, 2025 at 05:48:26PM +0200, Jonas Gorski wrote:
> It does need a lot more fixes on top of that. With this patch applied:
>
> TEST: Reception of 802.1p-tagged traffic [ OK ]
> TEST: Dropping of untagged and 802.1p-tagged traffic with no PVID [FAIL]
> 802.1p-tagged reception succeeded, but should have failed
>
> The latter is no surprise, since b53 does not handle non filtering
> bridges correctly, or toggling filtering at runtime.
>
> I fixed most issues I found in b53 and it now succeeds in WIP code I
> have (and most other tests from there).
>
> One thing I struggled a bit is that the second test tests four
> different scenarios, but only has one generic failure message, so a
> failure does not tell which of the four setups failed.
>
> The issues I fixed so far locally:
>
> 1. b53 programs the vlan table based on bridge vlans regardless if
> filtering is on or not
> 2. b53 allows vlan 0 to be modified from
> dsa_switch_ops::port_vlan_{add,remove} for bridged ports
> 3. b53 adds vlan 0 to a port when it leaves a bridge, but does not
> remove it on join
> 4. b53 does not handle switching a vlan from pvid to non-pvid
> 5. stp (and other reserved multicast) requires a PVID vlan.
>
> This makes especially non-filtering bridges not work as expected, or
> the switch in any way after adding and then removing a filtering
> bridge.
I'll admit that I'm not very familiar with the b53 driver and that my
attention span has been quite short (and the passage of the weekend has
not helped). Please post patches explaining clearly where we are and
I'll try to follow along.
next prev parent reply other threads:[~2025-04-28 9:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-22 18:49 [PATCH net] net: dsa: fix VLAN 0 filter imbalance when toggling filtering Jonas Gorski
2025-04-24 9:15 ` Paolo Abeni
2025-04-24 9:50 ` Jonas Gorski
2025-04-25 7:30 ` Jonas Gorski
2025-04-25 7:51 ` Vladimir Oltean
2025-04-26 15:48 ` Jonas Gorski
2025-04-28 9:02 ` Vladimir Oltean [this message]
2025-04-24 10:25 ` Vladimir Oltean
2025-04-24 12:34 ` Florian Fainelli
2025-04-24 13:58 ` Jonas Gorski
2025-04-24 22:57 ` Vladimir Oltean
2025-04-25 7:52 ` Jonas Gorski
2025-04-25 11:42 ` Vladimir Oltean
2025-04-26 15:44 ` Jonas Gorski
2025-04-28 9:27 ` Vladimir Oltean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250428090244.phg3xijxhhtczkvk@skbuf \
--to=olteanv@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=horms@kernel.org \
--cc=jonas.gorski@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox