Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: toke@redhat.com
Cc: Jakub Kicinski <kuba@kernel.org>,
	jiri@resnulli.us, cake@lists.bufferbloat.net, toke@toke.dk,
	j.koeppeler@tu-berlin.de, willemb@google.com,
	xiyou.wangcong@gmail.com, horms@kernel.org, pabeni@redhat.com,
	jhs@mojatatu.com, davem@davemloft.net, netdev@vger.kernel.org,
	edumazet@google.com, victor@mojatatu.com
Subject: [Cake] Re: [net-next,v7,4/6] net/sched: sch_cake: Share config across cake_mq sub-qdiscs
Date: Thu,  8 Jan 2026 20:12:14 -0800	[thread overview]
Message-ID: <20260109041214.2918115-1-kuba@kernel.org> (raw)
In-Reply-To: <20260108-mq-cake-sub-qdisc-v7-4-4eb645f0419c@redhat.com>

This is an AI-generated review of your patch.

For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
---
net/sched: sch_cake: Share config across cake_mq sub-qdiscs

This commit adds support for configuring the cake_mq instance directly,
sharing the config across the cake sub-qdiscs.

> diff --git a/net/sched/sch_cake.c b/net/sched/sch_cake.c
> index deb9f411db98..4dbfee3e6207 100644
> --- a/net/sched/sch_cake.c
> +++ b/net/sched/sch_cake.c

[ ... ]

> +	if (tb[TCA_CAKE_AUTORATE]) {
> +		if (!!nla_get_u32(tb[TCA_CAKE_AUTORATE])) {
> +			if (q->is_shared) {
> +				NL_SET_ERR_MSG_ATTR(extack, tb[TCA_CAKE_NAT],
                                                         ^^^^^^^^^^^^^^
Should this be tb[TCA_CAKE_AUTORATE] instead of tb[TCA_CAKE_NAT]? The
check here is for TCA_CAKE_AUTORATE, but the error message attribute
points to TCA_CAKE_NAT. This appears to be a copy-paste from the NAT
handling code just above. When a user enables autorate-ingress on
cake_mq, the error will reference the wrong netlink attribute.

> +						    "Can't use autorate-ingress with cake_mq");
> +				return -EOPNOTSUPP;
> +			}
> +			rate_flags |= CAKE_FLAG_AUTORATE_INGRESS;
> +		} else {
> +			rate_flags &= ~CAKE_FLAG_AUTORATE_INGRESS;
> +		}
> +	}

[ ... ]
-- 
pw-bot: cr

  reply	other threads:[~2026-01-09  7:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-08 16:56 [Cake] [PATCH net-next v7 0/6] Multi-queue aware sch_cake Toke Høiland-Jørgensen
2026-01-08 16:56 ` [Cake] [PATCH net-next v7 1/6] net/sched: Export mq functions for reuse Toke Høiland-Jørgensen
2026-01-08 16:56 ` [Cake] [PATCH net-next v7 2/6] net/sched: sch_cake: Factor out config variables into separate struct Toke Høiland-Jørgensen
2026-01-08 16:56 ` [Cake] [PATCH net-next v7 3/6] net/sched: sch_cake: Add cake_mq qdisc for using cake on mq devices Toke Høiland-Jørgensen
2026-01-08 16:56 ` [Cake] [PATCH net-next v7 4/6] net/sched: sch_cake: Share config across cake_mq sub-qdiscs Toke Høiland-Jørgensen
2026-01-09  4:12   ` Jakub Kicinski [this message]
2026-01-09 10:38     ` [Cake] Re: [net-next,v7,4/6] " Toke Høiland-Jørgensen
2026-01-08 16:56 ` [Cake] [PATCH net-next v7 5/6] net/sched: sch_cake: share shaper state across sub-instances of cake_mq Toke Høiland-Jørgensen
2026-01-08 16:56 ` [Cake] [PATCH net-next v7 6/6] selftests/tc-testing: add selftests for cake_mq qdisc Toke Høiland-Jørgensen

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

  List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260109041214.2918115-1-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=cake@lists.bufferbloat.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=j.koeppeler@tu-berlin.de \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=toke@redhat.com \
    --cc=toke@toke.dk \
    --cc=victor@mojatatu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox