Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: prabhakar.csengg@gmail.com
Cc: clement.leger@linux.dev, andrew@lunn.ch, olteanv@gmail.com,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, hkallweit1@gmail.com, linux@armlinux.org.uk,
	horms@kernel.org, p.zabel@pengutronix.de,
	geert+renesas@glider.be, magnus.damm@gmail.com,
	f.fainelli@gmail.com, ralph.siemsen@linaro.org,
	linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, prabhakar.csengg+renesas@gmail.com,
	biju.das.jz@bp.renesas.com, fabrizio.castro.jz@renesas.com,
	prabhakar.mahadev-lad.rj@bp.renesas.com
Subject: Re: [PATCH net-next v5 03/24] net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW
Date: Tue, 24 Nov 2026 02:26:18 +0000	[thread overview]
Message-ID: <179548717812.3135.9507593083133918104@kernel.org> (raw)
In-Reply-To: <20261120002549.1908299-4-prabhakar.mahadev-lad.rj@bp.renesas.com>

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The NET_DSA_TAG_RZN1_A5PSW help text that this patch rewrites in
  net/dsa/Kconfig (lines 206-207) says "These switches use an 8-byte tag…
- [Low] This patch widens the Kconfig prompt and help for
  NET_DSA_TAG_RZN1_A5PSW to cover the RZ/T2H and RZ/N2H ETHSW.
- [Low] The concern: the new Kconfig text claims ETHSW tagging support
  for RZ/T2H and RZ/N2H, but no in-tree switch driver ever returns…

Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but the ID
  modalias for the RZ/N1 A5PSW tagger is broken.

--

net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW

This commit updates the prompt and help text of NET_DSA_TAG_RZN1_A5PSW.
They now say that the ETHSW blocks in the Renesas RZ/T2H and RZ/N2H SoCs
use the same tagging format.

> diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig
> index bdeb60af764b2..3c18314aee956 100644
> --- a/net/dsa/Kconfig
> +++ b/net/dsa/Kconfig
> @@ -199,11 +199,12 @@ config NET_DSA_TAG_RTL8_4
>  	  switches with 8 byte protocol 4 tags, such as the Realtek RTL8365MB-VC.
>  
>  config NET_DSA_TAG_RZN1_A5PSW
> -	tristate "Tag driver for Renesas RZ/N1 A5PSW switch"
> +	tristate "Tag driver for Renesas RZ/N1 A5PSW and RZ/T2H, RZ/N2H ETHSW"

[Severity: Low]
Should the MODULE_DESCRIPTION() in net/dsa/tag_rzn1_a5psw.c be updated to
match this prompt?

An earlier patch in this series, "net: dsa: tag_rzn1_a5psw: Add RZ/T2H
ETHSW tag protocol support", made the module register a second protocol
(ethsw_netdev_ops, DSA_TAG_PROTO_RZT2H_ETHSW). The description still reads:

net/dsa/tag_rzn1_a5psw.c:
MODULE_DESCRIPTION("DSA tag driver for Renesas RZ/N1 A5PSW switch");

So modinfo still lists the module as RZ/N1 A5PSW only. No later patch in
the series changes this string.

>  	help
> -	  Say Y or M if you want to enable support for tagging frames for
> -	  Renesas RZ/N1 embedded switch that uses an 8 byte tag located after
> -	  destination MAC address.
> +	  Say Y or M if you want to enable frame tagging support for embedded
> +	  switches found on Renesas RZ/N1 (A5PSW) and RZ/T2H, RZ/N2H (ETHSW)
> +	  SoCs. These switches use an 8-byte tag located after the destination
> +	  MAC address.

[Severity: Low]
Is "after the destination MAC address" accurate here? The layout comment
in net/dsa/tag_rzn1_a5psw.c puts the tag after the source MAC:

/* To define the outgoing port and to discover the incoming port a TAG is
 * inserted after Src MAC :
 *
 *       Dest MAC       Src MAC           TAG         Type

a5psw_tag_xmit() writes the tag at the EtherType position:

	/* make room between MACs and Ether-Type to insert tag */
	dsa_alloc_etype_header(skb, A5PSW_TAG_LEN);

	ptag = dsa_etype_header_pos_tx(skb);

Here dsa_etype_header_pos_tx() returns skb->data + 2 * ETH_ALEN.

The old text had the same mistake. Since this patch rewrites the sentence
and extends it to RZ/T2H and RZ/N2H, could it say "after the source MAC
address" (or "between the MAC addresses and the EtherType") instead?

[Severity: High]
This is a pre-existing issue, not one introduced by this patch. The id
modalias for the A5PSW protocol in net/dsa/tag_rzn1_a5psw.c looks broken:

MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_A5PSW, A5PSW_NAME);

MODULE_ALIAS_DSA_TAG_DRIVER() stringifies __proto##_VALUE.
include/net/dsa.h only defines DSA_TAG_PROTO_RZN1_A5PSW_VALUE (26), and
there is no DSA_TAG_PROTO_A5PSW_VALUE. So the alias comes out as the
literal "dsa_tag:id-DSA_TAG_PROTO_A5PSW_VALUE" instead of "dsa_tag:id-26".

With CONFIG_NET_DSA_TAG_RZN1_A5PSW=m and the module not yet loaded, can
the RZ/N1 switch ever finish probing?

a5psw_get_tag_protocol() returns DSA_TAG_PROTO_RZN1_A5PSW
  dsa_port_parse_cpu()
    dsa_tag_driver_get_by_id(26)
      request_module("dsa_tag:id-26")   <- no matching alias
    -ENOPROTOOPT -> -EPROBE_DEFER

The switch would keep deferring until someone loads tag_rzn1_a5psw.ko by
hand.

The new ETHSW alias in the same file uses DSA_TAG_PROTO_RZT2H_ETHSW, which
does have a _VALUE macro. The earlier patch in this series rewrote the
A5PSW line but kept the old token.

Should this be MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_RZN1_A5PSW,
A5PSW_NAME)?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com

  parent reply	other threads:[~2026-11-24  2:26 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  0:25 [PATCH net-next v5 00/24] Add ETHSW support for Renesas RZ/T2H and RZ/N2H SoCs Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 01/24] net: dsa: tag_rzn1_a5psw: Drop redundant ETH_P_DSA_A5PSW definition Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 02/24] net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 03/24] net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW Prabhakar
2026-11-20  9:32   ` Clement Leger
2026-11-20 18:31     ` Lad, Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko [this message]
2026-11-20  0:25 ` [PATCH net-next v5 04/24] net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 05/24] dt-bindings: net: dsa: renesas,rzn1-a5psw: Reject the "ports" node Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 06/24] dt-bindings: net: dsa: renesas,rzn1-a5psw: Limit port reg values Prabhakar
2026-11-22 14:51   ` Krzysztof Kozlowski
2026-11-20  0:25 ` [PATCH net-next v5 07/24] dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 08/24] net: dsa: rzn1-a5psw: Fix LK_LEARNCOUNT write mode encoding Prabhakar
2026-11-20  3:27   ` Andrew Lunn
2026-11-20  6:01   ` Clement Leger
2026-11-20 18:29     ` Lad, Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 09/24] net: dsa: rzn1-a5psw: Fix VLANTransmitted counter offset Prabhakar
2026-11-20  3:29   ` Andrew Lunn
2026-11-20 18:28     ` Lad, Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 10/24] net: dsa: rzn1-a5psw: Fix MDIO clock divider calculation Prabhakar
2026-11-20  6:51   ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 11/24] net: dsa: rzn1-a5psw: Set driver data in probe Prabhakar
2026-11-20  6:53   ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 12/24] net: dsa: rzn1-a5psw: Add support for optional reset control Prabhakar
2026-11-20  3:32   ` Andrew Lunn
2026-11-23 12:28     ` Lad, Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 13/24] net: dsa: rzn1-a5psw: Add support for optional timestamp clock Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 14/24] net: dsa: rzn1-a5psw: Make use dev_err_probe() Prabhakar
2026-11-20  6:58   ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 15/24] net: dsa: rzn1-a5psw: Get switch info via OF data Prabhakar
2026-11-20  7:02   ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 16/24] net: dsa: rzn1-a5psw: Choose tagging protocol based on compatible string Prabhakar
2026-11-20  7:03   ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 17/24] net: dsa: rzn1-a5psw: Add fixed frame length workaround for management port Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 18/24] net: dsa: rzn1-a5psw: Get pattern matcher register offsets from OF data Prabhakar
2026-11-20  9:35   ` Clement Leger
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 19/24] net: dsa: rzn1-a5psw: Get VLAN_RES field layout " Prabhakar
2026-11-20  9:37   ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 20/24] net: dsa: rzn1-a5psw: Get lookup table size " Prabhakar
2026-11-20  9:44   ` Clement Leger
2026-11-20 18:34     ` Lad, Prabhakar
2026-11-20 19:49       ` Andrew Lunn
2026-11-20 20:04       ` Clement Leger
2026-11-20  0:25 ` [PATCH net-next v5 21/24] net: dsa: rzn1-a5psw: Update CPU port comment for RZ/T2H Prabhakar
2026-11-20  9:45   ` Clement Leger
2026-11-20 18:35     ` Lad, Prabhakar
2026-11-20  0:25 ` [PATCH net-next v5 22/24] net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 23/24] net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch Prabhakar
2026-11-24  2:26   ` netdev-bot+sashiko
2026-11-20  0:25 ` [PATCH net-next v5 24/24] net: dsa: Kconfig: Enable support for RZ/T2H and RZ/N2H SoCs Prabhakar
2026-11-20  0:28 ` [PATCH net-next v5 00/24] Add ETHSW support for Renesas " netdev-bot+sinfo
2026-11-20 14:43   ` Lad, Prabhakar
2026-11-20  3:14 ` Jakub Kicinski
2026-11-20 14:44   ` Lad, Prabhakar

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=179548717812.3135.9507593083133918104@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=clement.leger@linux.dev \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=hkallweit1@gmail.com \
    --cc=horms@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=magnus.damm@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=p.zabel@pengutronix.de \
    --cc=pabeni@redhat.com \
    --cc=prabhakar.csengg+renesas@gmail.com \
    --cc=prabhakar.csengg@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=ralph.siemsen@linaro.org \
    --cc=robh@kernel.org \
    /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