Re: [PATCH net] net: sparx5/lan969x: fix DWRR cost max to match hardware register width
From: patchwork-bot+netdevbpf
Date: Thu Feb 12 2026 - 22:10:29 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 10 Feb 2026 14:44:01 +0100 you wrote:
> DWRR (Deficit Weighted Round Robin) scheduling distributes bandwidth
> across traffic classes based on per-queue cost values, where lower cost
> means higher bandwidth share.
>
> The SPX5_DWRR_COST_MAX constant is 63 (6 bits) but the hardware
> register field HSCH_DWRR_ENTRY_DWRR_COST is GENMASK(24, 20), only
> 5 bits wide (max 31). This causes sparx5_weight_to_hw_cost() to
> compute cost values that silently overflow via FIELD_PREP, resulting
> in incorrect scheduling weights.
>
> [...]
Here is the summary with links:
- [net] net: sparx5/lan969x: fix DWRR cost max to match hardware register width
https://git.kernel.org/netdev/net/c/6c28aa8dfdf2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html