All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: Eric Dumazet <edumazet@google.com>,
	"David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Willem de Bruijn <willemb@google.com>,
	Soheil Hassas Yeganeh <soheil@google.com>,
	Neal Cardwell <ncardwell@google.com>,
	Jamal Hadi Salim <jhs@mojatatu.com>,
	Cong Wang <xiyou.wangcong@gmail.com>,
	Jiri Pirko <jiri@resnulli.us>,
	netdev@vger.kernel.org, eric.dumazet@gmail.com,
	Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH net-next 3/4] net_sched: sch_fq: add 3 bands and WRR scheduling
Date: Mon, 02 Oct 2023 13:46:22 +0200	[thread overview]
Message-ID: <87edidgsc1.fsf@toke.dk> (raw)
In-Reply-To: <20231001145102.733450-4-edumazet@google.com>

Eric Dumazet <edumazet@google.com> writes:

> Before Google adopted FQ for its production servers,
> we had to ensure AF4 packets would get a higher share
> than BE1 ones.
>
> As discussed this week in Netconf 2023 in Paris, it is time
> to upstream this for public use.

IIRC, when you mentioned this at Netconf you said the new behaviour
would probably need to be behind a flag, but I don't see that in this
series. What was the reason you decided to drop that?

[..]
> +static int fq_load_priomap(struct fq_sched_data *q,
> +			   const struct nlattr *attr,
> +			   struct netlink_ext_ack *extack)
> +{
> +	const struct tc_prio_qopt *map = nla_data(attr);
> +	int i;
> +
> +	if (map->bands != FQ_BANDS) {
> +		NL_SET_ERR_MSG_MOD(extack, "FQ only supports 3 bands");
> +		return -EINVAL;
> +	}
> +	for (i = 0; i < TC_PRIO_MAX + 1; i++) {
> +		if (map->priomap[i] >= FQ_BANDS) {
> +			NL_SET_ERR_MSG_MOD(extack, "Incorrect field in FQ priomap");

Can we be a bit more specific than just "incorrect" here? Something like
"FQ priomap field %d maps to a too high band %d"?

-Toke


  parent reply	other threads:[~2023-10-02 11:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-01 14:50 [PATCH net-next 0/4] net_sched: sch_fq: add WRR scheduling and 3 bands Eric Dumazet
2023-10-01 14:50 ` [PATCH net-next 1/4] net_sched: sch_fq: remove q->ktime_cache Eric Dumazet
2023-10-01 14:51 ` [PATCH net-next 2/4] net_sched: export pfifo_fast prio2band[] Eric Dumazet
2023-10-01 14:51 ` [PATCH net-next 3/4] net_sched: sch_fq: add 3 bands and WRR scheduling Eric Dumazet
2023-10-01 22:15   ` Soheil Hassas Yeganeh
2023-10-02 11:46   ` Toke Høiland-Jørgensen [this message]
2023-10-02 12:23     ` Eric Dumazet
2023-10-01 14:51 ` [PATCH net-next 4/4] net_sched: sch_fq: add TCA_FQ_WEIGHTS attribute Eric Dumazet
2023-10-02 11:47   ` Toke Høiland-Jørgensen
2023-10-02 12:24     ` Eric Dumazet
2023-10-01 15:10 ` [PATCH net-next 0/4] net_sched: sch_fq: add WRR scheduling and 3 bands Dave Taht
2023-10-02  6:48 ` Willem de Bruijn

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=87edidgsc1.fsf@toke.dk \
    --to=toke@redhat.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.com \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=soheil@google.com \
    --cc=willemb@google.com \
    --cc=xiyou.wangcong@gmail.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.