All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Cedric Jehasse <cedric.jehasse@gmail.com>
Cc: "Cedric Jehasse via B4 Relay"
	<devnull+cedric.jehasse.luminex.be@kernel.org>,
	cedric.jehasse@luminex.be, "Andrew Lunn" <andrew@lunn.ch>,
	"Vladimir Oltean" <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Simon Horman" <horms@kernel.org>,
	"Russell King" <linux@armlinux.org.uk>,
	"Jamal Hadi Salim" <jhs@mojatatu.com>,
	"Jiri Pirko" <jiri@resnulli.us>,
	"Vinicius Costa Gomes" <vinicius.gomes@intel.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Luke Howard" <lukeh@padl.com>, "Marek Behún" <kabel@kernel.org>
Subject: Re: [PATCH net-next v8 2/3] net: dsa: mv88e6xxx: use the hw tx queues
Date: Tue, 18 Aug 2026 07:45:08 -0700	[thread overview]
Message-ID: <20260818074508.26e626b4@kernel.org> (raw)
In-Reply-To: <hgrxt3hlj6i7rcg7jxgyxzrxw6knk2eqykpiq7lgpu3zshprqq@ranq77v7pxbv>

On Tue, 18 Aug 2026 10:59:35 +0200 Cedric Jehasse wrote:
> > Pretending that a DSA device has multiple Tx queues _from the stack_
> > makes no sense. You should be offloading PRIO as the root qdisc,
> > like mlxsw does. Then the rate limiters should be attached as children
> > of PRIO.  
> 
> This patch follows what the implementation i found in other dsa drivers.
> mlxsw seems to be the only driver handling TC_SETUP_QDISC_PRIO.
> Wouldn't that mean setting up cbs for a mv88e6xxx switch would use different
> tc commands than setting it up for another dsa switch (prio vs mqprio)?
> Is your comment specific to this driver, or for dsa drivers in general?

Maybe Vladimir can comment why he picked mqprio. He probably explained
it to me and I forgot.

My mental model is that mqprio offload is for the host ("NIC", IOW host
traffic egress). But if you're configuring a switch where most of the
traffic is internally forwarded within the ASIC. We should have a way
to report stats and offload status. There's no need to pretend we have
multiple host queues and waste memory.

  reply	other threads:[~2026-08-18 14:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 11:45 [PATCH net-next v8 0/3] net: dsa: mv88e6xxx: add support for credit based shaper Cedric Jehasse via B4 Relay
2026-08-11 11:45 ` Cedric Jehasse
2026-08-11 11:45 ` [PATCH net-next v8 1/3] net/sched: cbs: add extack to struct tc_cbs_qopt_offload Cedric Jehasse via B4 Relay
2026-08-11 11:45   ` Cedric Jehasse
2026-08-11 11:45 ` [PATCH net-next v8 2/3] net: dsa: mv88e6xxx: use the hw tx queues Cedric Jehasse via B4 Relay
2026-08-11 11:45   ` Cedric Jehasse
2026-08-17 17:50   ` Jakub Kicinski
2026-08-18  8:59     ` Cedric Jehasse
2026-08-18 14:45       ` Jakub Kicinski [this message]
2026-08-19  2:28         ` Luke Howard
2026-08-11 11:45 ` [PATCH net-next v8 3/3] net: dsa: mv88e6xxx: add support for credit based shaper Cedric Jehasse via B4 Relay
2026-08-11 11:45   ` Cedric Jehasse
2026-08-17 17:45   ` Jakub Kicinski

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=20260818074508.26e626b4@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=cedric.jehasse@gmail.com \
    --cc=cedric.jehasse@luminex.be \
    --cc=davem@davemloft.net \
    --cc=devnull+cedric.jehasse.luminex.be@kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kabel@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=lukeh@padl.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=vinicius.gomes@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.