Re: [PATCH net] net/sched: sch_cake: fix unintended tin override with cake_mq

From: patchwork-bot+netdevbpf

Date: Tue Nov 24 2026 - 09:12:38 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 19 Nov 2026 10:43:57 +0100 you wrote:
> CAKE allows overriding the tin selection through skb->priority: if the
> major number of skb->priority matches the qdisc handle, the minor number
> selects the tin. With cake_mq, the per-queue CAKE instances are created
> through qdisc_create_dflt() and never get a handle assigned, so
> sch->handle is 0 for all of them.
>
> For forwarded IPv4 traffic, ip_forward() sets skb->priority from the TOS
> byte via rt_tos2priority() when net.ipv4.ip_forward_update_priority is
> enabled, which is the default. rt_tos2priority() returns 0, 2, 4 or 6,
> all with a major number of 0, which matches the handle of the cake_mq
> children. The minor number is then taken as a tin override and the DSCP
> mapping is skipped.
>
> [...]

Here is the summary with links:
- [net] net/sched: sch_cake: fix unintended tin override with cake_mq
https://git.kernel.org/netdev/net-next/c/7b75467462af

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html