From: David Yang <mmyangfl@gmail.com>
To: netdev@vger.kernel.org
Cc: David Yang <mmyangfl@gmail.com>, Andrew Lunn <andrew@lunn.ch>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Subject: [PATCH net-next v3 0/5] net: dsa: motorcomm: Reject isolated redirect targets
Date: Tue, 1 Dec 2026 16:14:51 +0800 [thread overview]
Message-ID: <20261201081459.2104904-1-mmyangfl@gmail.com> (raw)
Port isolation takes after REDIR judgment, but software delivers such
frames. Reject such offloading and handle bridge changes.
Although triggered on YT9215S, target to net-next for low severity but
major refactor.
v3:
- compute the isolation masks in pre_bridge_flags
- fix code type
v2: https://lore.kernel.org/r/20261129115556.1669188-1-mmyangfl@gmail.com
- recompute redirect rules on bridge changes
- reject bridge flags that break redirect rules
v1: https://lore.kernel.org/r/20261127142732.1337041-1-mmyangfl@gmail.com
David Yang (5):
net: dsa: motorcomm: Remove local cpu_ports_mask
net: dsa: motorcomm: Cache port isolation masks
net: dsa: motorcomm: Reject isolated redirect targets
net: dsa: motorcomm: Reject bridge flags that break redirect rules
net: dsa: motorcomm: Recompute redirect rules on bridge changes
drivers/net/dsa/motorcomm/chip.c | 168 ++++++++++++++++++++++---------
drivers/net/dsa/motorcomm/chip.h | 7 +-
drivers/net/dsa/motorcomm/tc.c | 148 +++++++++++++++++++++++++--
drivers/net/dsa/motorcomm/tc.h | 8 +-
4 files changed, 273 insertions(+), 58 deletions(-)
--
2.53.0
next reply other threads:[~2026-12-01 8:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:14 David Yang [this message]
2026-12-01 8:14 ` [PATCH net-next v3 1/5] net: dsa: motorcomm: Remove local cpu_ports_mask David Yang
2026-12-01 8:14 ` [PATCH net-next v3 2/5] net: dsa: motorcomm: Cache port isolation masks David Yang
2026-12-01 8:14 ` [PATCH net-next v3 3/5] net: dsa: motorcomm: Reject isolated redirect targets David Yang
2026-12-01 8:14 ` [PATCH net-next v3 4/5] net: dsa: motorcomm: Reject bridge flags that break redirect rules David Yang
2026-12-01 8:14 ` [PATCH net-next v3 5/5] net: dsa: motorcomm: Recompute redirect rules on bridge changes David Yang
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=20261201081459.2104904-1-mmyangfl@gmail.com \
--to=mmyangfl@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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