Files
linux-stable-mirror/include/net
Eric Dumazet c480680be3 inet: move icmp_global_{credit,stamp} to a separate cache line
[ Upstream commit 87b08913a9 ]

icmp_global_credit was meant to be changed ~1000 times per second,
but if an admin sets net.ipv4.icmp_msgs_per_sec to a very high value,
icmp_global_credit changes can inflict false sharing to surrounding
fields that are read mostly.

Move icmp_global_credit and icmp_global_stamp to a separate
cacheline aligned group.

Fixes: b056b4cd91 ("icmp: move icmp_global.credit and icmp_global.stamp to per netns storage")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260216142832.3834174-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:39 -05:00
..
2025-07-17 18:37:05 +02:00
2025-02-08 09:57:10 +01:00
2025-12-18 13:55:22 +01:00
2026-01-08 10:15:01 +01:00
2024-12-19 18:13:13 +01:00
2024-09-11 20:44:31 -07:00
2025-02-27 04:30:19 -08:00
2025-02-27 04:30:19 -08:00