🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21478

Re: [PATCH net-next v5 03/24] net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW

#21478
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
114 lines
12795 bytes
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
Technical Details
Message-ID: <179548717812.3135.9507593083133918104@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369961-linux-kernel-netdev=dewy.ru
References: <20261120002549.1908299-4-prabhakar.mahadev-lad.rj@bp.renesas.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369961-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <179548717812.3135.9507593083133918104@kernel.org>
References: <20261120002549.1908299-4-prabhakar.mahadev-lad.rj@bp.renesas.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="4034361"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tRr1icCak6UTxAa0KzmCZIoPLWM= sha256:p832ZL0U6AILUr2qVj+W6ll/+3boqKpJra/Kp1utzHg= sha1:IvHyK0H8jWD6l+vUv3WWJHHPq+w= sha256:knN+yEVLQXDJ1t5AQEYK8uO/hlUbU/QtDXw3FBqw364=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 90B67125DCE; Tue, 24 Nov 2026 05:26:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uNHCFwsv5jKb; Tue, 24 Nov 2026 05:26:41 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369961-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id C21BE125DC9; Tue, 24 Nov 2026 05:26:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id D5D2726331; Tue, 24 Nov 2026 02:26:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795487186; b=IlWfvrfVBKRqpjAYRyO/t45ThVARnKlmS0dchCKMXAYBs0w1+2M2m7vegVD2MVC/vckb N/TX2x9kucPEU7mA+y+/ev+HGlNnw4J3bWgmaxonrt2hdAXkNqUBGprowfjZ3iE/xCE4V A1SbyrsKn1sAei8sT5VM0o0Q+Egy43N3xtZWqaPUKhwiceqnkP6ZEon9C2mt1lIK1UIl0 wUl0w4QhSaiNxRTynpGx/UCP6nGbVxQutE4KRCkhJw9wMukKne2No1ZstM06OqM6bYzkA dDd2PkzEqillFc3YdaHUCH09dTWU9LDEp+IEysmV4SR1AT0k7hduoNnlTvzgNxgN48g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795487186; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=+i3P6EOKNlYY2XqpeMjpOFb3eYyp/eGImGbt1LNxdPw=; b=r4ReuH+/TUMDXewzxezH9ZVYuBxLzuOhE06U/qLN10CR+UeBja7bIC5qDsGvXyB1n/gX znHRxsBgEKbWizJofM9uW78ZCfqztUHZq0bdszmDJ3PPSG/EXgBPfpisLSNwXOKFlqfBL PR9LAz9qcnb+TlmicTuObHc5fkFjScOtcwiU38eufjG1oO0MKHRmIpT+UX+ffffkcxXB/ 6bBFfz3ZMFsqlrysdoWBsj0T4lvp/MSsQkn7kA/aAd2eX7UTmYgZ/94WZkTQQ5FazfIyt e6JWKYd9HQvflM6Vxo6tQYtSsqwzIR4MrSnn8pBRaz+HcPQLHk0FIDkzfbGju2A2wJQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=R+JsXRq4; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6681E606A683; Tue, 24 Nov 2026 02:26:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=R+JsXRq4
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795487180; b=RVNuuTeyfAOJY1LCqZ8MKdcZZpXKrMSeDZCnvTNBvqlqa/IWbv4iXTYiQ4dBBG7WuZdw 9F2TJjIftcsm1RfoWDe8rEpBZ4LLwQpXGTDKPIWqHTtlH2kJoccqEZNKIfME+1+Z4WY6k jADeHfi9p3vLq4EaEr4C4p7YywoxobtEC20Y+uv+zMy3Aou5fw17/oNCx/D7jr9zht8US cx0kt4HMzSFSZtIhU60pcP4No+VAWHOhVeYqKtx4KZJqRFGM8/Z3YJDd4Oq0Xpvt4y2cG cSXxq8d2IUgsq8OsbDH8I88dfAT2JvBB1wwjVE68gN7M2M7+AHlc0vycRIozwIxkMGA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795487180; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=+i3P6EOKNlYY2XqpeMjpOFb3eYyp/eGImGbt1LNxdPw=; b=tpyJHW4ETIbBMi/sk7pdUJgDZCcRCP1Iyud587tH5xALF7PahOpUYSYPEs0E2ieWmSae ZcBKhgtKTXpnVIt3w8LCEZo9BSSzQthkfXfELVKwxkwHWeD4/3WQTZVeKd9cPJIlcpYCu z+cx8ZSde8vmgT8L8KMT6sQzBCKImQcDzum9/YhQta/84eijRtSE0u0ra1lnQEsYxhepv lhulQ6xLbaWWSNlLawolGD+55H8poRINXbpHwFmhzoAOVIFQHgoRu54H1Zn+v38AXUeTq qZBm1KJrNVCRfnY1AO9CHNlf5a+snH19YXypwXUjKxAXIMH1xHPIL2UKVPdHn54m8Lg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=R+JsXRq4; arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84096606A31E; Tue, 24 Nov 2026 02:26:20 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91FCA1F000C0; Tue, 24 Nov 2026 02:26:18 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795487180; bh=+i3P6EOKNlYY2XqpeMjpOFb3eYyp/eGImGbt1LNxdPw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=R+JsXRq43TZtuJ4oq4MJo17Lznb9p3lKMFfEH9xE5yBiES7gLh45QOD/DlgSKHNCf 8FV5M4VANcr0BcF4f07iLE7pJhY29Pqb7DENLyxe1lXRWLhAhHy4nvb+7DQmaJyKgs MsgV4IT9c+vmwc3sddJVZQcmGYmT4RJZOvMJhvHg0edqM2Di8J1u1SGeinAy4gNIq0 VFKMWJjrsNhahyAdB2Q9RVhp7zQOn1kXAmP5aPHLmp+z41E5Lv5nKwDHHB6c2vQ+Ir JWb6cCU7uEh8jucrHV4ByQ6bBb8YHxRDsRDqf0PrcUzJFDthJbK6l8GZNLXf34N+A+ ko2X7iP5VlDcQ==
X-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
X-In-Reply-To: <20261120002549.1908299-4-prabhakar.mahadev-lad.rj@bp.renesas.com>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list