Article View: linux.kernel.netdev
Article #25470Re: [PATCH net-next v17 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D
From: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 21:22
Date: Tue, 01 Dec 2026 21:22
71 lines
10903 bytes
10903 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] 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
Technical Details
Message-ID:
<179616014079.3146.14467038943684150015@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-375362-linux-kernel-netdev=dewy.ruReferences:
<cbfb54f9-9874-4280-a79b-34c3cab4da46@yahoo.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-375362-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev 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 Organization: Usenet Network Message-ID: <179616014079.3146.14467038943684150015@kernel.org> References: <cbfb54f9-9874-4280-a79b-34c3cab4da46@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1822211"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:mKDrXtM7EDSgNygKz3VhVjZ0t0o= sha256:zxQvYl8fg857oxM53b0cojh/k1fsCm9qbqF4dzXc/AE= sha1:C/fpjfU9rcCG9sSOL53w+AWiP1U= sha256:4pxRG2Fb1w+1zVny2/X1NsRpEAvxHDuLxSfyDgH+wtE= 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 C57081174A5; Wed, 2 Dec 2026 00:22:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.5 X-Spam-Status: No, score=-3.5 tagged_above=-9999 required=6.31 tests=[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 H9Uwm2d1FQ6a; Wed, 2 Dec 2026 00:22:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375362-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 3BB1511746B; Wed, 2 Dec 2026 00:22:38 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id B3EFC602E32; Tue, 1 Dec 2026 21:22:37 +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=1796160143; b=dylSzSie0XKFwnVgAVB/wFveaRWQsNEUIqepyAjKnDdHgPeF89JtERKKd6/Myhm2SieV acjk9Hfu3cpbosW92ecCVtbv7jENQ9PPH/HYDpxm7Xdaomj7vR7y3J4dusxtpGXSPhrQS 4Mhq9/yn/7nCRohqYQ/RP9Pqn26CPcGfS5GSy3RZQu3xFkpy+6w6LGrayvYRfp/n4Tlfx BSiuDxjV+zFJ34plan7rpDoHmnZ4M9zR2u48Xuj/A+i2y08WhHM6bkxYbF67gEdmHs9Zg TiTA04j/aPplXwEg1m67O37Xub4rqXWnAtkxhHcZ0zXOQWlLPRjKgw+GUY2qmfJYEog== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160143; 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=1vprqy/yUfNQCvkBt1H+Cqi04shquvcko4ssmKuzJAY=; b=KOSNHOuM3j/4ymyPWzjj8hqIKcSulpw1KuW7PLlQkUZws3ciBFuYjPbuTvZgd1lVKVdY iyUBfGMoip9Eke6xLaLT3yiXpeg8fYfihKBQzRHYm4MmrMyDbcLBweddgVtA507HEDObq gb8lGqDxbjwUTEOQxSUxvRy7W+zIZ9WL738+SE7DIbicpaSf4Ci75EsG7jVolYiv5y4jB nJUB9ka5ToAfGlLWwSUx8NjKI1y9Xh5lOLuOq30GPr5pb+bETuEu2wkj8TvDpN/Tc1g6B tzbkB7TqecjquL0fOphbXxtkQjP4tMkxDgZ9XHcVM2WLuEfm9VNroyTUImOGweN1sgg== 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="G/7MA6WP"; 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 4B000606A336; Tue, 1 Dec 2026 21:22:23 +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=G/7MA6WP 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=1796160142; b=pvBqvLQoc/jMbTe2XCIcfKTQiTXpGfSnAMKoT3st7SYcx54+1b5gDukyZnNmyU7py3vl gkiuJoTeC9U6KKdYM4gdhlyvstyzYhEu2oI79gV0tZ6h8FfuB2bbMkrVoB9g95Su0hRtg 6M90dcMxo5HJEfBZMmpSStZX4cbGAIhIFbZ/QzCVf6VrpQS0M/iDQURKWGrbLHNUrIDX8 i8V5nOPV5+brYRJz3IvuNqjJF7jf7ftl+ngak5LHRxsm8gxvyxoFa16t1csjoKDRmqYV7 O0BCJoJPNcq1gjhNmc8FfQKjpcJ1ZPdehNFWUTKBy0vn4R6Vf+iM4aY96LZ6XqUR5EQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160142; 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=1vprqy/yUfNQCvkBt1H+Cqi04shquvcko4ssmKuzJAY=; b=3xDu3cFIaNRYUt4k3b+saq0jLcrVWFPOGQN4jXfQnypUyyKpNjehyivps625uVZi9Oas F2xWPJ8e7EE/1ZwH1QYwhqY4cT1amzF89ToE7su0TrUs77uHIKrby3lMCB6zk1PgXJsj2 ZnvzbmSNB0XFNcLguh8F+Djft6vwIlNLicLJkClWl8Sese3Ro3Mq25G3/sa+5R+XxhzHV ts7xY58e65r8a8ScSudkQ2B6kosikhYooaBO6i1fxT9AHaY1hQ5ks44bT7wbvFO78keFw 423TXFU346eX2WHjSkOfdv4/1aRvLUccOhnwqnoWG15aM/0lblJ9o3n8f8AdMxCSdjw== 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="G/7MA6WP"; 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 6D58A606A33B; Tue, 1 Dec 2026 21:22:22 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AAB61F00919; Tue, 1 Dec 2026 21:22:21 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796160142; bh=1vprqy/yUfNQCvkBt1H+Cqi04shquvcko4ssmKuzJAY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=G/7MA6WPi4srujA/bLfX7k4uF7q9UC3B7ujM007FYtUp2oMXs87DhNy6wBUYLRP1W Q7ciKWiEvNfaiDZd7AEGR1S18ooG7gnttJBrVk57zarTDu4caJ0biCaNtf1slGv7AL AJcP/jh1rAei4etB8HZJSBcziXgofz8JkrBgT4RTaESCUmXmoYg54A1J2LwQGZNb5B He7Q7tT5Qw2XItlJx7cqMOQ1JSs5klgTJmFTq9Rh7dVwQ0GU5dSolefSQbDssEMK20 P6whl3025Ng7Abs2pKYudr1Nd9MmLky7+x9ZS8iPqjuWnbCGDtUPp4CG+sU3ylkZdF lyjNXdm+pdKtw== X-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 X-In-Reply-To: <cbfb54f9-9874-4280-a79b-34c3cab4da46@yahoo.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