Re: [PATCH net v2] net: pfcp: allocate per-cpu tstats for PFCP netdevs
From: patchwork-bot+netdevbpf
Date: Thu Jun 11 2026 - 18:30:38 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 9 Jun 2026 23:22:45 +0000 you wrote:
> PFCP uses dev_get_tstats64() as its ndo_get_stats64 callback, but
> pfcp_link_setup() does not request NETDEV_PCPU_STAT_TSTATS. The net
> core therefore leaves dev->tstats NULL for PFCP devices.
>
> Creating a PFCP rtnetlink device can immediately ask the new netdev for
> stats while building the RTM_NEWLINK notification. That reaches
> dev_get_tstats64() and dereferences the NULL dev->tstats pointer.
>
> [...]
Here is the summary with links:
- [net,v2] net: pfcp: allocate per-cpu tstats for PFCP netdevs
https://git.kernel.org/netdev/net/c/24041543da8c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html