From: Vladimir Oltean <olteanv@gmail.com>
To: Tobias Waldekranz <tobias@waldekranz.com>
Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
Andrew Lunn <andrew@lunn.ch>,
Vivien Didelot <vivien.didelot@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 net-next 1/5] net: dsa: mv88e6xxx: Improve isolation of standalone ports
Date: Thu, 3 Feb 2022 14:43:32 +0200 [thread overview]
Message-ID: <20220203124332.g6fydb4zh6wlvbbu@skbuf> (raw)
In-Reply-To: <20220203101657.990241-2-tobias@waldekranz.com>
On Thu, Feb 03, 2022 at 11:16:53AM +0100, Tobias Waldekranz wrote:
> Clear MapDA on standalone ports to bypass any ATU lookup that might
> point the packet in the wrong direction. This means that all packets
> are flooded using the PVT config. So make sure that standalone ports
> are only allowed to communicate with the local upstream port.
>
> Here is a scenario in which this is needed:
>
> CPU
> | .----.
> .---0---. | .--0--.
> | sw0 | | | sw1 |
> '-1-2-3-' | '-1-2-'
> '---'
>
> - sw0p1 and sw1p1 are bridged
> - sw0p2 and sw1p2 are in standalone mode
> - Learning must be enabled on sw0p3 in order for hardware forwarding
> to work properly between bridged ports
>
> 1. A packet with SA :aa comes in on sw1p2
> 1a. Egresses sw1p0
> 1b. Ingresses sw0p3, ATU adds an entry for :aa towards port 3
> 1c. Egresses sw0p0
>
> 2. A packet with DA :aa comes in on sw0p2
> 2a. If an ATU lookup is done at this point, the packet will be
> incorrectly forwarded towards sw0p3. With this change in place,
> the ATU is bypassed and the packet is forwarded in accordance
> with the PVT, which only contains the CPU port.
>
> Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
> ---
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
next prev parent reply other threads:[~2022-02-03 12:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 10:16 [PATCH v2 net-next 0/5] net: dsa: mv88e6xxx: Improve standalone port isolation Tobias Waldekranz
2022-02-03 10:16 ` [PATCH v2 net-next 1/5] net: dsa: mv88e6xxx: Improve isolation of standalone ports Tobias Waldekranz
2022-02-03 12:43 ` Vladimir Oltean [this message]
2022-02-03 10:16 ` [PATCH v2 net-next 2/5] net: dsa: mv88e6xxx: Support policy entries in the VTU Tobias Waldekranz
2022-02-03 10:16 ` [PATCH v2 net-next 3/5] net: dsa: mv88e6xxx: Enable port policy support on 6097 Tobias Waldekranz
2022-02-03 10:16 ` [PATCH v2 net-next 4/5] net: dsa: mv88e6xxx: Improve multichip isolation of standalone ports Tobias Waldekranz
2022-02-03 12:53 ` Vladimir Oltean
2022-02-03 10:16 ` [PATCH v2 net-next 5/5] selftests: net: bridge: Parameterize ageing timeout Tobias Waldekranz
2022-02-03 14:10 ` [PATCH v2 net-next 0/5] net: dsa: mv88e6xxx: Improve standalone port isolation patchwork-bot+netdevbpf
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=20220203124332.g6fydb4zh6wlvbbu@skbuf \
--to=olteanv@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tobias@waldekranz.com \
--cc=vivien.didelot@gmail.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