Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AAB61F00919; Tue, 1 Dec 2026 21:22:21 +0000 (UTC) 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== Subject: Re: [PATCH net-next v17 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D 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 Date: Tue, 01 Dec 2026 21:22:20 +0000 Message-ID: <179616014079.3146.14467038943684150015@kernel.org> In-Reply-To: References: X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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