From: Christian Marangi <ansuelsmth@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: mfd@lists.linux.dev, conor+dt@kernel.org,
devicetree@vger.kernel.org, robh@kernel.org, lee@kernel.org
Subject: Re: [PATCH net-next v25 06/10] net: dsa: tag_mtk: add Airoha variant usage of this TAG
Date: Mon, 12 Oct 2026 14:04:12 +0200 [thread overview]
Message-ID: <6accccbf.a6a2e554.42efe.05b4@mx.google.com> (raw)
In-Reply-To: <sashiko-outbox-166718@kernel.org>
On Sat, Oct 10, 2026 at 04:11:37PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [High] net: dsa: airoha/mtk eth: hardware offload broken for AIROHA tag protocol
> --
>
> commit feed6f0245d293aabba2178225f4097258a1d66c
> Author: Christian Marangi <ansuelsmth@gmail.com>
>
> net: dsa: tag_mtk: add Airoha variant usage of this TAG
>
> This commit adds a new DSA tag protocol variant for Airoha switches,
> updating the Mediatek tag driver, Kconfig, and Makefile. It also adds
> comments explaining the differences between Airoha AN8855 and the Mediatek
> tag bitmap.
>
> > diff --git a/include/net/dsa.h b/include/net/dsa.h
> > index 5d12191b6f6f5..9824c63ad50b3 100644
> > --- a/include/net/dsa.h
> > +++ b/include/net/dsa.h
> [ ... ]
> > @@ -76,6 +77,7 @@ enum dsa_tag_protocol {
> > DSA_TAG_PROTO_KSZ9893 = DSA_TAG_PROTO_KSZ9893_VALUE,
> > DSA_TAG_PROTO_LAN9303 = DSA_TAG_PROTO_LAN9303_VALUE,
> > DSA_TAG_PROTO_MTK = DSA_TAG_PROTO_MTK_VALUE,
> > + DSA_TAG_PROTO_AIROHA = DSA_TAG_PROTO_AIROHA_VALUE,
>
> [Severity: High]
> Does adding this new protocol ID require updating the ethernet MAC and PPE
> drivers to recognize it as well?
>
> For example, looking at airoha_get_dsa_tag() in
> drivers/net/ethernet/airoha/airoha_eth.c:
>
> if (dev->dsa_ptr->tag_ops->proto != DSA_TAG_PROTO_MTK)
> return 0;
>
> And mtk_uses_dsa() in drivers/net/ethernet/mediatek/mtk_eth_soc.c:
>
> return netdev_uses_dsa(dev) &&
> dev->dsa_ptr->tag_ops->proto == DSA_TAG_PROTO_MTK;
>
> If these are not updated to also accept DSA_TAG_PROTO_AIROHA, will hardware
> tag extraction and PPE hardware flow offloading (like in __mtk_ppe_check_skb()
> and mtk_flow_get_dsa_port()) fail because the strict protocol checks against
> DSA_TAG_PROTO_MTK no longer match?
>
This is irrelevant for this series and can be handled later. I'm not sure
offload can work with the AN8855 external switch.
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20261009161102.38961-1-ansuelsmth@gmail.com?part=6
--
Ansuel
next prev parent reply other threads:[~2026-10-12 12:04 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 16:10 [PATCH net-next v25 00/10] net: dsa: Add Airoha AN8855 support Christian Marangi
2026-10-09 16:10 ` [PATCH net-next v25 01/10] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-09 16:10 ` [PATCH net-next v25 02/10] dt-bindings: net: Document support for AN8855 Switch Internal PHY Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-10 16:19 ` netdev-bot+sashiko
2026-10-09 16:10 ` [PATCH net-next v25 03/10] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-10 16:19 ` netdev-bot+sashiko
2026-10-09 16:10 ` [PATCH net-next v25 04/10] mfd: an8855: Add support for Airoha AN8855 Switch Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-12 12:02 ` Christian Marangi
2026-10-10 16:19 ` netdev-bot+sashiko
2026-10-09 16:10 ` [PATCH net-next v25 05/10] net: phy: Add Airoha AN8855 Internal Switch Gigabit PHY Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-12 12:03 ` Christian Marangi
2026-10-10 16:19 ` netdev-bot+sashiko
2026-10-09 16:10 ` [PATCH net-next v25 06/10] net: dsa: tag_mtk: add Airoha variant usage of this TAG Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-12 12:04 ` Christian Marangi [this message]
2026-10-10 16:19 ` netdev-bot+sashiko
2026-10-09 16:10 ` [PATCH net-next v25 07/10] MAINTAINERS: add myself as maintainer for Airoha AN8855 Switch Christian Marangi
2026-10-09 16:10 ` [PATCH net-next v25 08/10] net: dsa: move mediatek DSA driver in dedicated directory Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-09 16:10 ` [PATCH net-next v25 09/10] net: dsa: mt7530: generalize and move common function to lib module Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-12 12:06 ` Christian Marangi
2026-10-10 16:19 ` netdev-bot+sashiko
2026-10-09 16:10 ` [PATCH net-next v25 10/10] net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver Christian Marangi
2026-10-10 16:11 ` sashiko-bot
2026-10-12 12:11 ` Christian Marangi
2026-10-10 16:19 ` netdev-bot+sashiko
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=6accccbf.a6a2e554.42efe.05b4@mx.google.com \
--to=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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