Article View: linux.kernel.netdev
Article #21476Re: [PATCH net-next v5 02/24] net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
107 lines
12266 bytes
12266 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] net/dsa/tag_rzn1_a5psw.c now registers two tag drivers through
module_dsa_tag_drivers(): 'a5psw' (DSA_TAG_PROTO_RZN1_A5PSW) andβ¦
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but the patch
moves the line and copies its pattern for the new tagger.
--
net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support
This commit adds a new DSA_TAG_PROTO_RZT2H_ETHSW tag protocol for the
RZ/T2H ETHSW. It uses the same tagged frame layout as the RZ/N1 A5PSW,
but a different ControlData bit layout. Both taggers are now registered
from net/dsa/tag_rzn1_a5psw.c through module_dsa_tag_drivers().
> diff --git a/net/dsa/tag_rzn1_a5psw.c b/net/dsa/tag_rzn1_a5psw.c
> index aab0ec143c77c..3dff661fa58cb 100644
> --- a/net/dsa/tag_rzn1_a5psw.c
> +++ b/net/dsa/tag_rzn1_a5psw.c
[ ... ]
> @@ -111,8 +112,24 @@ static const struct dsa_device_ops a5psw_netdev_ops = {
> .rcv = a5psw_tag_rcv,
> .needed_headroom = A5PSW_TAG_LEN,
> };
> +MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_A5PSW, A5PSW_NAME);
[Severity: High]
This is a pre-existing issue, not one introduced by this patch. Since the
line is being moved anyway, should the token be DSA_TAG_PROTO_RZN1_A5PSW?
MODULE_ALIAS_DSA_TAG_DRIVER() in net/dsa/tag.h appends _VALUE to the token
and stringifies the result:
#define MODULE_ALIAS_DSA_TAG_DRIVER(__proto, __name) \
MODULE_ALIAS(DSA_TAG_DRIVER_ALIAS __name); \
MODULE_ALIAS(DSA_TAG_DRIVER_ALIAS "id-" \
__stringify(__proto##_VALUE))
DSA_TAG_PROTO_A5PSW_VALUE is not defined anywhere. include/net/dsa.h only
has:
#define DSA_TAG_PROTO_RZN1_A5PSW_VALUE 26
So the module gets the literal alias
"dsa_tag:id-DSA_TAG_PROTO_A5PSW_VALUE" instead of "dsa_tag:id-26". It also
doesn't match .proto = DSA_TAG_PROTO_RZN1_A5PSW in a5psw_netdev_ops above.
When the RZ/N1 switch driver returns DSA_TAG_PROTO_RZN1_A5PSW from
get_tag_protocol(), the lookup goes:
dsa_port_parse_cpu()
dsa_tag_driver_get_by_id()
request_module("%sid-%d", DSA_TAG_DRIVER_ALIAS, tag_protocol);
This requests "dsa_tag:id-26". No alias matches, so tag_rzn1_a5psw.ko is
not loaded. dsa_port_parse_cpu() then turns the -ENOPROTOOPT into a probe
deferral:
if (PTR_ERR(tag_ops) == -ENOPROTOOPT)
return -EPROBE_DEFER;
Won't the RZ/N1 switch keep deferring its probe until someone loads the
tagger module by hand? multi_v7_defconfig sets CONFIG_NET_DSA_RZN1_A5PSW=m,
so the tagger is built as a module in a stock config.
The new ETHSW alias added by this patch does resolve, because
DSA_TAG_PROTO_RZT2H_ETHSW_VALUE exists. After this patch, ID-based
autoloading of the shared module works for RZ/T2H but not for RZ/N1.
The DSA_TAG_PROTO_A5PSW token predates this series. Commit 94793a56b3df
("net: dsa: provide a second modalias to tag proto drivers based on their
name") changed this line and kept the token. It is still there at the end
of the series.
> +DSA_TAG_DRIVER(a5psw_netdev_ops);
[ ... ]
> +module_dsa_tag_drivers(dsa_tag_driver_array);
>
> MODULE_DESCRIPTION("DSA tag driver for Renesas RZ/N1 A5PSW switch");
[Severity: Low]
This isn't a bug, but should MODULE_DESCRIPTION() be updated as well? The
module now also registers the "ethsw" tagger for RZ/T2H, but the
description still mentions only the RZ/N1 A5PSW.
A later commit in the series, "net: dsa: Kconfig: Expand config description
to cover RZ/T2H and RZ/N2H ETHSW", updates the NET_DSA_TAG_RZN1_A5PSW
Kconfig prompt. No patch in the series changes MODULE_DESCRIPTION().
> MODULE_LICENSE("GPL v2");
> -MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_A5PSW, A5PSW_NAME);
> -module_dsa_tag_driver(a5psw_netdev_ops);
--
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:
<179548717602.3135.2246188557259866304@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369960-linux-kernel-netdev=dewy.ruReferences:
<20261120002549.1908299-3-prabhakar.mahadev-lad.rj@bp.renesas.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369960-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 02/24] net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support Date: Tue, 24 Nov 2026 02:26:16 +0000 Organization: Usenet Network Message-ID: <179548717602.3135.2246188557259866304@kernel.org> References: <20261120002549.1908299-3-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="4034254"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:LtwjnZ87iIn6Q9NPaK/lsYgfugg= sha256:0pUCeUYRXA6A6nJRhFeFFONg8dbcLXiyNcCm+tUf7xg= sha1:ooCe542qXAh5gujrkO1fjQIFD4w= sha256:Vap4H/qSmvTstlRXCmw5bf5gMzEs5LZTWGaxa1Pld5I= 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 D2A35125DCE; Tue, 24 Nov 2026 05:26:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 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] 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 BVpOoGCzahKE; Tue, 24 Nov 2026 05:26:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369960-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 6F47C125DC7; Tue, 24 Nov 2026 05:26:24 +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 E726E26FCF; Tue, 24 Nov 2026 02:26:19 +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=1795487179; b=vW0KuB2z9QXy7vc+uq3+x8C81nksm9bfYpu11LIsFS8znul3eT/38TNCxKRkmErdE4Lf CbR34WF5SIBLnQLqPBWIY5EYwetfW26N68dlzmJLhSac0puoMMHaX1nT/7ZbtdS+rhvrF jXMFky1kuRF6NpaKgshYMaj0Vcp7U+hM8GWQrJBuTHSMKCIeCJuAvjwQ9MRfb2vDM9Nmr 8zwZPV+3CZWOgtKyNmoWuGV/1Ov8tAOCwR86APiIof/cYsYHz4SYKfTUJWYV+cgwfXgCo U8RXBMlJ4QpsW/VtzcDZsu+CZwb1170m6lqClBEiNi7X5IXv0qpsJPbJTFfmsL27cPg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795487179; 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=HaUHhbx9+vVUTZE0J6iQm8zAlFYDpmTDUbLyer0bb4s=; b=pg6mvh1WLcaKNIH2hZW/shPTQf+xiTdMMuheOgYYTpxWhTe4z6sFxlIHW2ahq5aoNift J4DjkxoXUmtyA+kbXO6qY4DkPzq24zJchVAnZSbsq6LOyC9TId2Ulov/RUG4jyIr/kXfv 23XIx12Ggsn0CC1FNVtxaDmSYdQXaNqrre718MgqwBBqwJfLtvdljOCYzf1feUN9mvptu VVRdZIVKpdBVTm1gl2SMmntN9lY472WDC/2IUBYjJTPYCZ1a/4cZjFeTffcTgbIct28QJ P8yoxyXjDJQnHt8KPctzummVw5dJe1R45m2QUhs4qX8cUyREEqjVaIJfwxQg3HL/+fg== 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=IJODuCEE; 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 4A99F606A32D; Tue, 24 Nov 2026 02:26:19 +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=IJODuCEE 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=1795487178; b=XtWoeouQzlF/FWnsnRXLaw//n/iKvUB0ObOHiZJaO3HC0EDA91RZH9Cz6FUMILs5Bchy vFv4UGtRAurfgCGx+chyHcA1LTX0Qj9CI7nJVHexeygoXj1Qdy4Z9qSpdB5YZ0FPJokQ8 r17ps6KNj3fVby2m7carAg/VL73Tul/KiXd9gNURCUqoTBb1nd4uTiuU92+e5hdImgXJt tGrh46fCgQxUhK/O5f8dQbDORzpcQSWntRlDXkUu5R/X0Ol/qipH+tQ6Wx3ztLqj3DUBH TOLhkHhESvoFYkOsqhZH+nWKpYl8WUFkNG6ggpnm4SxOUBHNxKKZ39HhfC9MuTxmqfQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795487178; 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=HaUHhbx9+vVUTZE0J6iQm8zAlFYDpmTDUbLyer0bb4s=; b=UJ0TxCPF5WQwuwGHYGIYa7yNDftmAmAosa88wIo8mdIv6FzO9ZlGhqiu05VZ6CrFk0dH eAaT37xq3xla77txAl1/IpvbgV9xuVHiJ7P+Ci9NXBzMkG8ERRhOdYzVRuadmMdepNcu0 SFfjzZTbf+6wUFzpM66OjiDqVGNCbs9C647o98T5WUlbaBCFMXZu52Z0OnkqjXgUX4ERA oExNghyPcvxWya+hvipw58dyNv5bQtqtaybUMst0FAfxcxqzGZPpjfgVErbzkW3a9daB4 zR4LEFciM9tyULplbJUVnEp0noG3GXVlgDHD5R8UPKBVSMoDSNDjm1h/j21UihaRP4A== 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=IJODuCEE; 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 68F6A606A31E; Tue, 24 Nov 2026 02:26:18 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 833F81F000C4; Tue, 24 Nov 2026 02:26:16 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795487178; bh=HaUHhbx9+vVUTZE0J6iQm8zAlFYDpmTDUbLyer0bb4s=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=IJODuCEE0MC7ztvYJqZcf2g7HMP3b5lps3+WKKEFk58XM44OgvRuhMmuWOXWQ1/Kf wlOdsJoXcU2/jg8ztOvZ7eLJJHM67gXGCr9BqP0TCDlE/5HM2xduIjxOkXdmQHKOb4 p91NJ3jh+SHYJfIKfrUjjOOKFFvJsyjTaFFM+fPfjw6sypJDxtSFLJvQi1hFBdXHDs R0vyNvuOIBQRB7AA6JKki4pqWl5hcWssc+vtIj82b1oq8RhAt4uWecDUW/NoNuRzKT 25e5d4wQkWxu24BS8iwUv7ehhSmVTES4I7lXeFrjoc2G5ybmRMD2QySITe8TXFQkVG 464YVEXgU/CoQ== 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-3-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