Re: [PATCH net v5] net: airoha: fix MIB stats collection to be lossless
| Newsgroups | org.infradead.lists.linux-mediatek,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <178462020592.138517.6199339592479066921.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>: On Tue, 7 Jul 2026 20:56:39 +0530 you wrote: > REG_FE_GDM_MIB_CLEAR after every read creates a race window where > packets arriving between read and clear are lost from statistics. > > Switch to a delta-based approach instead: > > - 64-bit H+L registers (ok pkts/bytes, E64..L1023): read absolute > hardware total directly into a local variable; clamp with max(new, old) > to prevent torn-read regression when the counter carries between the > two reads. > > [...] Here is the summary with links: - [net,v5] net: airoha: fix MIB stats collection to be lossless https://git.kernel.org/netdev/net/c/d163725af84a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html