From: sashiko-bot@kernel.org
To: "Rustam Adilov" <adilov@disroot.org>, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH net-next 1/6] net: dsa: tag_rtl8_4: add support for RTL9607C tag variant
Date: Sat, 05 Dec 2026 18:29:41 +0000 [thread overview]
Message-ID: <sashiko-outbox-251792@kernel.org> (raw)
In-Reply-To: <20261204182553.33952-2-adilov@disroot.org>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] net: dsa: tag_rtl8_4: undeclared RTL8_4_PROTOCOL_RTL9607C
breaks build
- [High] net: dsa: tag_rtl8_4: missing rtl8_4ap_tag_rcv() breaks build
--
commit a17239447633aa6ec098c0f294ff74fbeb5aef44
Author: Rustam Adilov <adilov@disroot.org>
net: dsa: tag_rtl8_4: add support for RTL9607C tag variant
This commit adds the rtl8_4ap DSA tagging protocol variant for the Realtek
RTL9607C SoC family to the tag_rtl8_4 driver, along with its TX and RX tag
helpers.
> diff --git a/net/dsa/tag_rtl8_4.c b/net/dsa/tag_rtl8_4.c
> index 4da3beebef75e..902821524ed36 100644
> --- a/net/dsa/tag_rtl8_4.c
> +++ b/net/dsa/tag_rtl8_4.c
[ ... ]
> @@ -153,6 +212,44 @@ static struct sk_buff *rtl8_4t_tag_xmit(struct sk_buff *skb,
> return skb;
> }
>
> +static void rtl8_4ap_write_tag(struct sk_buff *skb, struct net_device *dev,
> + void *tag)
> +{
> + u16 pmask = dsa_xmit_port_mask(skb, dev);
> + __be16 tag16[RTL8_4_TAG_LEN / 2];
> + u16 pmask_low, pmask_high;
> +
> + /* Set Realtek EtherType */
> + tag16[0] = htons(ETH_P_REALTEK);
> +
> + pmask_low = FIELD_GET(RTL8_4AP_RX_PORTMASK_LOW, pmask);
> + /* Set Protocol; set low forwarding port mask */
> + tag16[1] = htons(FIELD_PREP(RTL8_4_PROTOCOL, RTL8_4_PROTOCOL_RTL9607C) |
> + FIELD_PREP(RTL8_4AP_RX_PORTMASK_LOW, pmask_low));
[Severity: High]
Where is RTL8_4_PROTOCOL_RTL9607C defined? Only RTL8_4_PROTOCOL_RTL8365MB
is defined in this file, so both rtl8_4ap_write_tag() and
rtl8_4ap_read_tag() fail to compile when CONFIG_NET_DSA_TAG_RTL8_4 is
enabled.
[ ... ]
> @@ -268,9 +419,23 @@ DSA_TAG_DRIVER(rtl8_4t_netdev_ops);
>
> MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_RTL8_4T, RTL8_4T_NAME);
>
> +/* Ethertype RTL9607C version */
> +static const struct dsa_device_ops rtl8_4ap_netdev_ops = {
> + .name = RTL8_4AP_NAME,
> + .proto = DSA_TAG_PROTO_RTL8_4AP,
> + .xmit = rtl8_4ap_tag_xmit,
> + .rcv = rtl8_4ap_tag_rcv,
> + .needed_headroom = RTL8_4_TAG_LEN,
> +};
[Severity: High]
Where is rtl8_4ap_tag_rcv() defined? The patch adds rtl8_4ap_read_tag()
with no callers, but omits the rtl8_4ap_tag_rcv() wrapper, breaking the
build and leaving rtl8_4ap_read_tag() unused.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204182553.33952-1-adilov@disroot.org?part=1
next prev parent reply other threads:[~2026-12-05 18:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 18:25 [RFC PATCH net-next 0/6] net: dsa: realtek: add support for RTL9607C switch Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 1/6] net: dsa: tag_rtl8_4: add support for RTL9607C tag variant Rustam Adilov
2026-12-05 18:29 ` sashiko-bot [this message]
2026-12-04 18:25 ` [RFC PATCH net-next 2/6] net: dsa: realtek: add new mmio interface for drivers Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
2026-12-04 18:25 ` [RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
2026-12-04 18:25 ` [RFC PATCH net-next 4/6] net: dsa: realtek: add support for RTL9607C switch Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
2026-12-04 18:25 ` [RFC PATCH net-next 5/6] net: phy: realtek: use mdio.addr instead of 0 in rtlgen_read/write_vend2 Rustam Adilov
2026-12-04 18:25 ` [RFC PATCH net-next 6/6] net: phy: realtek: add support for RTL9607C internal PHYs Rustam Adilov
2026-12-05 18:29 ` sashiko-bot
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=sashiko-outbox-251792@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=adilov@disroot.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.