From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: David Yang <mmyangfl@gmail.com>,
Oleksij Rempel <linux@rempel-privat.de>,
netdev@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Russell King <linux@armlinux.org.uk>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/2] net: dsa: yt921x: Add DCB/priority support
Date: Sat, 24 Jan 2026 11:02:32 +0100 [thread overview]
Message-ID: <aXSYuOjo5EL4MeeU@pengutronix.de> (raw)
In-Reply-To: <20260123234759.bj2gik3oobluyjs4@skbuf>
On Sat, Jan 24, 2026 at 01:47:59AM +0200, Vladimir Oltean wrote:
> > +static int
> > +yt921x_dsa_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio)
> > +{
> > + struct yt921x_priv *priv = to_yt921x_priv(ds);
> > + int res;
> > +
> > + mutex_lock(&priv->reg_lock);
> > + res = yt921x_reg_write(priv, YT921X_IPM_DSCPn(dscp),
> > + ipm_ctrl(IEEE8021Q_TT_BK));
>
> Question regarding semantics, also for Oleksij: deleting the DSCP app
> table entry should cause that DSCP value to be mapped to bulk, as in
> your interpretation (or best effort for KSZ), or according to the next
> selector in line, as per trust order (for example port default priority,
> which may not be bulk)?
It maps to bulk.
My interpretation of this hardware is that it uses a direct lookup table
without a "valid/invalid" bit per entry. Once DSCP is enabled in the
trust order, the switch performs the lookup for every packet; it cannot
transparently skip a specific DSCP value to fall back to the next
selector.
Therefore, "deleting" an entry practically remaps it to the default
(Bulk/Best Effort) priority. This matches the logic we use in the KSZ
driver.
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2026-01-24 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 19:42 [PATCH net-next v2 0/2] net: dsa: yt921x: Add DCB/priority support David Yang
2026-01-22 19:42 ` [PATCH net-next v2 1/2] net: dsa: tag_yt921x: fix priority support David Yang
2026-01-22 19:42 ` [PATCH net-next v2 2/2] net: dsa: yt921x: Add DCB/priority support David Yang
2026-01-23 23:47 ` Vladimir Oltean
2026-01-24 2:05 ` Yangfl
2026-01-24 8:37 ` Vladimir Oltean
2026-01-24 10:02 ` Oleksij Rempel [this message]
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=aXSYuOjo5EL4MeeU@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=linux@rempel-privat.de \
--cc=mmyangfl@gmail.com \
--cc=netdev@vger.kernel.org \
--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