Files
linux-stable-mirror/include/linux
Eric Dumazet 8431c602f5 ip_tunnel: adapt iptunnel_xmit_stats() to NETDEV_PCPU_STAT_DSTATS
Blamed commits forgot that vxlan/geneve use udp_tunnel[6]_xmit_skb() which
call iptunnel_xmit_stats().

iptunnel_xmit_stats() was assuming tunnels were only using
NETDEV_PCPU_STAT_TSTATS.

@syncp offset in pcpu_sw_netstats and pcpu_dstats is different.

32bit kernels would either have corruptions or freezes if the syncp
sequence was overwritten.

This patch also moves pcpu_stat_type closer to dev->{t,d}stats to avoid
a potential cache line miss since iptunnel_xmit_stats() needs to read it.

Fixes: 6fa6de3022 ("geneve: Handle stats using NETDEV_PCPU_STAT_DSTATS.")
Fixes: be226352e8 ("vxlan: Handle stats using NETDEV_PCPU_STAT_DSTATS.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20260311123110.1471930-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-12 19:24:45 -07:00
..
2026-02-11 13:44:47 +01:00
2026-01-29 20:21:41 +01:00
2026-02-12 04:23:53 -07:00
2026-02-19 09:12:05 +01:00
2026-02-06 07:29:14 -07:00
2026-01-26 19:03:47 -08:00
2026-01-26 20:02:27 -08:00
2026-02-20 17:31:55 -05:00
2026-01-30 11:34:34 +00:00
2026-02-10 11:39:31 +01:00
2026-02-10 11:39:30 +01:00
2026-02-23 11:19:18 +01:00
2026-01-31 14:22:57 -08:00
2026-01-30 18:26:59 -08:00