mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: namiltd@yahoo.com
Cc: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com,
	kuba@kernel.org, davem@davemloft.net, edumazet@google.com,
	pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com,
	maxime.chevallier@bootlin.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, alvin.sipraga@analog.com,
	gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com,
	gabonpivovich@gmail.com, contact@c127.dev,
	o.rempel@pengutronix.de
Subject: Re: [PATCH net-next v17 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D
Date: Tue, 01 Dec 2026 21:22:20 +0000	[thread overview]
Message-ID: <179616014079.3146.14467038943684150015@kernel.org> (raw)
In-Reply-To: <cbfb54f9-9874-4280-a79b-34c3cab4da46@yahoo.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] In rtl83xx_port_set_apptrust() (drivers/net/dsa/realtek/rtl83xx-
  qos.c), the error message changes from "unsupported apptrust order;…

--

net: dsa: realtek: rtl8365mb: use PCP numbering on family D

This commit adds family D hooks that convert between 802.1Q traffic
types and the chip's PCP-style internal priority numbering. It makes the
qos_set_untag_pcp hook optional and rejects PCP apptrust on families
that do not provide it. It also changes the apptrust ordering error
message in the shared rtl83xx QoS layer.

Closes: https://github.com/openwrt/openwrt/pull/19644#issuecomment-7067296792

> diff --git a/drivers/net/dsa/realtek/rtl83xx-qos.c b/drivers/net/dsa/realtek/rtl83xx-qos.c
> index f294222987eff..9454a5d318128 100644
> --- a/drivers/net/dsa/realtek/rtl83xx-qos.c
> +++ b/drivers/net/dsa/realtek/rtl83xx-qos.c
> @@ -196,7 +196,7 @@ int rtl83xx_port_set_apptrust(struct dsa_switch *ds, int port, const u8 *sel,
>
>  		if (slot < 0 || slot <= prev) {
>  			dev_err(priv->dev,
> -				"unsupported apptrust order; supported: dscp, pcp, dscp pcp\n");
> +				"unsupported apptrust order; dscp must precede pcp\n");
>  			return -EOPNOTSUPP;
>  		}

[Severity: Low]

This branch also handles unknown selectors, not only bad ordering. Will
the new message mislead users in that case?

rtl83xx_apptrust_sel_to_slot() returns -EINVAL for any selector that is
not in rtl83xx_apptrust_sel[], which lists only DSCP and PCP:

drivers/net/dsa/realtek/rtl83xx-qos.c:rtl83xx_apptrust_sel_to_slot() {
	for (slot = 0; slot < ARRAY_SIZE(rtl83xx_apptrust_sel); slot++)
		if (rtl83xx_apptrust_sel[slot] == sel)
			return slot;

	return -EINVAL;
}

dcbnl_ieee_set() rejects duplicate selectors before calling the driver.
It still passes through valid selectors that this driver does not
support, such as ethertype, stream-port or dgram.

For example, "dcb apptrust set dev swpX order ethtype" reaches the
slot < 0 branch here and logs "dscp must precede pcp", which has nothing
to do with the selector that was rejected. The old message listed the
accepted orderings, so it still helped in that case.

The commit message does not mention this change either. The message
changes for existing family C users right away, while the commit
message says "this patch changes no behaviour yet". The likely reason
for dropping the "supported:" list is the new PCP rejection in
rtl8365mb_qos_set_apptrust() on families without qos_set_untag_pcp.

Could the message also cover unknown selectors, and could the commit
message note this change?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a%40yahoo.com

  reply	other threads:[~2026-12-01 21:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <236d002f-5ca5-4f12-bf5b-0ed6442e5c9a.ref@yahoo.com>
2026-11-30 20:06 ` [PATCH net-next v17 00/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-11-30 20:08   ` [PATCH net-next v17 01/15] dt-bindings: net: dsa: realtek: add RTL8367S-VB Mieczyslaw Nalewaj
2026-11-30 20:08   ` [PATCH net-next v17 02/15] net: dsa: realtek: rtl8365mb: add chip family infrastructure Mieczyslaw Nalewaj
2026-11-30 20:08   ` [PATCH net-next v17 03/15] net: dsa: realtek: rtl8365mb: refactor forcemode handling Mieczyslaw Nalewaj
2026-11-30 20:09   ` [PATCH net-next v17 04/15] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-11-30 20:09   ` [PATCH net-next v17 05/15] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-11-30 20:09   ` [PATCH net-next v17 06/15] net: dsa: realtek: rtl8365mb: refactor VLAN 4k handling Mieczyslaw Nalewaj
2026-11-30 20:10   ` [PATCH net-next v17 07/15] net: dsa: realtek: rtl8365mb: set and get VLAN 4k for family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:11   ` [PATCH net-next v17 08/15] net: dsa: realtek: rtl8365mb: refactor PVID handling Mieczyslaw Nalewaj
2026-11-30 20:11   ` [PATCH net-next v17 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:11   ` [PATCH net-next v17 10/15] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:11   ` [PATCH net-next v17 11/15] net: dsa: realtek: rtl8365mb: refactor L2 MAC handling Mieczyslaw Nalewaj
2026-11-30 20:12   ` [PATCH net-next v17 12/15] net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko
2026-11-30 20:12   ` [PATCH net-next v17 13/15] net: dsa: realtek: rtl8365mb: refactor QoS priority handling Mieczyslaw Nalewaj
2026-11-30 20:17   ` [PATCH net-next v17 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D Mieczyslaw Nalewaj
2026-12-01 21:22     ` netdev-bot+sashiko [this message]
2026-11-30 20:17   ` [PATCH net-next v17 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj

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=179616014079.3146.14467038943684150015@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=alvin.sipraga@analog.com \
    --cc=andrew@lunn.ch \
    --cc=contact@c127.dev \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fabianotassotti@gmail.com \
    --cc=gabonpivovich@gmail.com \
    --cc=gusfmora@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kuncy7@gmail.com \
    --cc=linusw@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=luizluca@gmail.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=namiltd@yahoo.com \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    /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

all inboxes | Powered by JetHome®