Netdev List
 help / color / mirror / Atom feed
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 v4 0/6] net: dsa: motorcomm: Reject isolated redirect targets
Date: Fri,  4 Dec 2026 18:12:51 +0800	[thread overview]
Message-ID: <20261204101300.3680838-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.

v4:
 - do not block hairpins on standalone ports
 - derive port isolation masks on the fly
v3: https://lore.kernel.org/r/20261201081459.2104904-1-mmyangfl@gmail.com
 - 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 (6):
  net: dsa: motorcomm: Remove local cpu_ports_mask
  net: dsa: motorcomm: Do not block hairpins on standalone ports
  net: dsa: motorcomm: Derive port isolation masks on the fly
  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 | 261 ++++++++++++++++++++++++-------
 drivers/net/dsa/motorcomm/chip.h |  11 +-
 drivers/net/dsa/motorcomm/tc.c   | 143 +++++++++++++++--
 drivers/net/dsa/motorcomm/tc.h   |   8 +-
 4 files changed, 348 insertions(+), 75 deletions(-)

-- 
2.53.0


             reply	other threads:[~2026-12-04 10:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 10:12 David Yang [this message]
2026-12-04 10:12 ` [PATCH net-next v4 1/6] net: dsa: motorcomm: Remove local cpu_ports_mask David Yang
2026-12-04 10:12 ` [PATCH net-next v4 2/6] net: dsa: motorcomm: Do not block hairpins on standalone ports David Yang
2026-12-04 10:12 ` [PATCH net-next v4 3/6] net: dsa: motorcomm: Derive port isolation masks on the fly David Yang
2026-12-04 10:12 ` [PATCH net-next v4 4/6] net: dsa: motorcomm: Reject isolated redirect targets David Yang
2026-12-04 10:12 ` [PATCH net-next v4 5/6] net: dsa: motorcomm: Reject bridge flags that break redirect rules David Yang
2026-12-04 10:12 ` [PATCH net-next v4 6/6] 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=20261204101300.3680838-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