From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: Woojung Huh <woojung.huh@microchip.com>,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
UNGLinuxDriver@microchip.com, Eric Dumazet <edumazet@google.com>,
kernel@pengutronix.de, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH net-next v1 2/2] net: dsa: microchip: add ETS Qdisc support for KSZ9477 series
Date: Mon, 6 Mar 2023 17:35:42 +0100 [thread overview]
Message-ID: <20230306163542.GB11936@pengutronix.de> (raw)
In-Reply-To: <20230306140651.kqayqatlrccfky2b@skbuf>
Hi Vladimir,
On Mon, Mar 06, 2023 at 04:06:51PM +0200, Vladimir Oltean wrote:
> Hi Oleksij,
>
> On Mon, Mar 06, 2023 at 01:49:40PM +0100, Oleksij Rempel wrote:
> > + for (band = 0; band < p->bands; ++band) {
> > + /* The KSZ switches utilize a weighted round robin configuration
> > + * where a certain number of packets can be transmitted from a
> > + * queue before the next queue is serviced. For more information
> > + * on this, refer to section 5.2.8.4 of the KSZ8565R
> > + * documentation on the Port Transmit Queue Control 1 Register.
> > + * However, the current ETS Qdisc implementation (as of February
> > + * 2023) assigns a weight to each queue based on the number of
> > + * bytes or extrapolated bandwidth in percentages. Since this
> > + * differs from the KSZ switches' method and we don't want to
> > + * fake support by converting bytes to packets, we have decided
> > + * to return an error instead.
> > + */
> > + if (p->quanta[band]) {
> > + dev_err(dev->dev, "Quanta/weights configuration is not supported.\n");
> > + return -EOPNOTSUPP;
> > + }
>
> So what does the user gain using tc-ets over tc-mqprio? That has a way
> to set up strict prioritization and prio:tc maps as well, and to my
> knowledge mqprio is vastly more popular in non-DCB setups than tc-ets.
> The only thing is that with mqprio, AFAIK, the round robin between TXQs
> belonging to the same traffic class is not weighted.
Do mqprio already supports strict prio mode? net-next was not supporting
this back for two weeks. I do not care what to use, my motivation was based on
following points:
- tc-ets supports strict prio. mqprio need to be extended to do this
- tc-ets refers to IEEE 802.1Q specification, so i feel safe
and do not need to invent new things.
- mqprio automatically creates software queues, but it seems to not
provide any advantage for a typical bridged DSA setup. For example
i can use queue mapping only for traffic from CPU to external DSA port
but can't use multi queue advantages of CPU MAC for same traffic (do I'm
missing something). For bridged traffic i'll need to use HW offloading any
way.
Regards,
Oleksij
--
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 |
next prev parent reply other threads:[~2023-03-06 16:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-06 12:49 [PATCH net-next v1 1/2] net: dsa: microchip: add ksz_setup_tc_mode() function Oleksij Rempel
2023-03-06 12:49 ` [PATCH net-next v1 2/2] net: dsa: microchip: add ETS Qdisc support for KSZ9477 series Oleksij Rempel
2023-03-06 14:06 ` Vladimir Oltean
2023-03-06 16:35 ` Oleksij Rempel [this message]
2023-03-07 16:46 ` Vladimir Oltean
2023-03-07 18:27 ` Oleksij Rempel
2023-03-07 18:57 ` Vladimir Oltean
2023-03-07 19:52 ` Oleksij Rempel
2023-03-07 21:11 ` Vladimir Oltean
2023-03-08 5:48 ` Oleksij Rempel
2023-03-08 7:16 ` Oleksij Rempel
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=20230306163542.GB11936@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=woojung.huh@microchip.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®