Re: [PATCH net 0/2] lib/dim: fix 32-bit overflow in dim_calc_stats()

From: patchwork-bot+netdevbpf

Date: Fri Oct 02 2026 - 03:24:32 EST


Hello:

This series was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Sun, 27 Sep 2026 10:47:41 +0530 you wrote:
> On 32-bit kernels dim_calc_stats() multiplies the u32 byte, packet and
> completion counts of a DIM window by USEC_PER_MSEC (1000L) in 32-bit
> long arithmetic. Once a window carries more than about 4.3 MB, bpms
> wraps, and net_dim steers interrupt moderation on a meaningless
> throughput value. At 1 Gbit/s line rate a 64-event window passes that
> size when there are fewer than about 1,860 DIM events per second,
> which is common while NAPI keeps the interrupt masked under load.
> 32-bit users of the library include mtk_eth_soc (MT7621, MT7623),
> bcmgenet and bcmsysport on 32-bit ARM, xilinx_axienet on Zynq-7000 and
> MicroBlaze, and virtio_net in 32-bit guests. The overflow goes back to
> the mlx5e code the library was moved from.
>
> [...]

Here is the summary with links:
- [net,1/2] lib/dim: fix 32-bit overflow in dim_calc_stats() rates
https://git.kernel.org/netdev/net/c/0843b2389064
- [net,2/2] lib/dim: add KUnit test for dim_calc_stats()
https://git.kernel.org/netdev/net/c/636035157a81

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