netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Carolina Jubran <cjubran@nvidia.com>
Cc: Cosmin Ratiu <cratiu@nvidia.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"horms@kernel.org" <horms@kernel.org>,
	"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	"davem@davemloft.net" <davem@davemloft.net>,
	Tariq Toukan <tariqt@nvidia.com>, Gal Pressman <gal@nvidia.com>,
	"jiri@resnulli.us" <jiri@resnulli.us>,
	"edumazet@google.com" <edumazet@google.com>,
	Saeed Mahameed <saeedm@nvidia.com>,
	"pabeni@redhat.com" <pabeni@redhat.com>
Subject: Re: net-shapers plan
Date: Mon, 14 Apr 2025 09:27:00 -0700	[thread overview]
Message-ID: <20250414092700.5965984a@kernel.org> (raw)
In-Reply-To: <9768e1e0-3a76-47af-b0f5-17793721bb0a@nvidia.com>

On Mon, 14 Apr 2025 11:27:00 +0300 Carolina Jubran wrote:
> > I hope you understand my concern, tho. Since you're providing the first
> > implementation, if the users can grow dependent on such behavior we'd
> > be in no position to explain later that it's just a quirk of mlx5 and
> > not how the API is intended to operate.  
> 
> Thanks for bringing this up. I want to make it clear that traffic 
> classes must be properly matched to queues. We don’t rely on the 
> hardware fallback behavior in mlx5. If the driver or firmware isn’t 
> configured correctly, traffic class bandwidth control won’t work as 
> expected — the user will suffer from constant switching of the TX queue 
> between scheduling queues and head-of-line blocking. As a result, users 
> shouldn’t expect reliable performance or correct bandwidth allocation.
> We don’t encourage configuring this without proper TX queue mapping, so 
> users won’t grow dependent on behavior that only happens to work without it.
> We tried to highlight this in the plan section discussing queue 
> selection and head-of-line blocking: To make traffic class shaping work, 
> we must keep traffic classes separate for each transmit queue.

Right, my concern is more that there is no requirement for explicit
configuration of the queues, as long as traffic arrives silo'ed WRT
DSCP markings. As long as a VF sorts the traffic it does not have
to explicitly say (or even know) that queue A will land in TC N.

BTW the classification is before all rewrites? IOW flower or any other
forwarding rules cannot affect scheduling?

  reply	other threads:[~2025-04-14 16:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-06 14:03 net-shapers plan Cosmin Ratiu
2025-03-11  1:42 ` Samudrala, Sridhar
2025-03-12 11:02   ` Carolina Jubran
2025-03-11 13:38 ` Jiri Pirko
2025-03-26 15:55   ` Cosmin Ratiu
2025-03-28 12:13 ` Jakub Kicinski
2025-04-01  8:35   ` Carolina Jubran
2025-04-01 14:50     ` Jakub Kicinski
2025-04-08 14:43       ` Carolina Jubran
2025-04-09 22:06         ` Jakub Kicinski
2025-04-10 15:23           ` Carolina Jubran
2025-04-10 23:16             ` Jakub Kicinski
2025-04-14  8:27               ` Carolina Jubran
2025-04-14 16:27                 ` Jakub Kicinski [this message]
2025-04-23  6:50                   ` Carolina Jubran
2025-04-30 12:12                     ` Carolina Jubran

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=20250414092700.5965984a@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=cjubran@nvidia.com \
    --cc=cratiu@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=horms@kernel.org \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=saeedm@nvidia.com \
    --cc=tariqt@nvidia.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;
as well as URLs for NNTP newsgroup(s).