Re: [PATCH net v3] net: xps: reject an out of range traffic class

From: patchwork-bot+netdevbpf

Date: Wed Sep 23 2026 - 22:53:01 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Mon, 21 Sep 2026 17:03:57 +0200 you wrote:
> Only the entries below dev->num_tc are valid in dev->tc_to_txq[], and
> dev->prio_tc_map[] may only name classes below it. netdev_set_num_tc()
> lowers dev->num_tc without touching either array.
>
> netdev_txq_to_tc() walks all TC_MAX_QUEUE slots and
> netdev_get_prio_tc_map() returns the entry as it stands, so a leftover
> entry is handed out as a traffic class >= dev->num_tc. Taking that
> class from netdev_txq_to_tc(), __netif_set_xps_queue() rejects only a
> negative one and indexes an XPS map sized for dev->num_tc classes:
>
> [...]

Here is the summary with links:
- [net,v3] net: xps: reject an out of range traffic class
https://git.kernel.org/netdev/net/c/4da3b7b8b50f

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