netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/9] ipv6: snmp: avoid performance issue with RATELIMITHOST
@ 2025-09-05 16:58 Eric Dumazet
  2025-09-05 16:58 ` [PATCH v2 net-next 1/9] ipv6: snmp: remove icmp6type2name[] Eric Dumazet
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: Eric Dumazet @ 2025-09-05 16:58 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, David Ahern, Jamie Bainbridge, Abhishek Rawal,
	netdev, eric.dumazet, Eric Dumazet

Addition of ICMP6_MIB_RATELIMITHOST in commit d0941130c9351
("icmp: Add counters for rate limits") introduced a performance
drop in case of DOS (like receiving UDP packets
to closed ports).

Per netns ICMP6_MIB_RATELIMITHOST tracking uses per-cpu
storage and is enough, we do not need per-device and slow tracking
for this metric.

In v2 of this series, I completed the removal of SNMP_MIB_SENTINEL
in all the kernel for consistency.

v1: had an issue : https://lore.kernel.org/netdev/20250904092432.113c4940@kernel.org/

Eric Dumazet (9):
  ipv6: snmp: remove icmp6type2name[]
  ipv6: snmp: do not use SNMP_MIB_SENTINEL anymore
  ipv6: snmp: do not track per idev ICMP6_MIB_RATELIMITHOST
  ipv4: snmp: do not use SNMP_MIB_SENTINEL anymore
  mptcp: snmp: do not use SNMP_MIB_SENTINEL anymore
  sctp: snmp: do not use SNMP_MIB_SENTINEL anymore
  tls: snmp: do not use SNMP_MIB_SENTINEL anymore
  xfrm: snmp: do not use SNMP_MIB_SENTINEL anymore
  net: snmp: remove SNMP_MIB_SENTINEL

 include/net/ip.h	  |  9 +++--
 include/net/snmp.h   |  5 ---
 net/ipv4/proc.c	  | 65 +++++++++++++++----------------
 net/ipv6/icmp.c	  |  3 +-
 net/ipv6/proc.c	  | 91 ++++++++++++++++++++++++--------------------
 net/mptcp/mib.c	  | 12 +++---
 net/sctp/proc.c	  | 12 +++---
 net/tls/tls_proc.c   | 10 +++--
 net/xfrm/xfrm_proc.c | 12 +++---
 9 files changed, 113 insertions(+), 106 deletions(-)

--
2.51.0.355.g5224444f11-goog


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-09-09  1:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 16:58 [PATCH v2 net-next 0/9] ipv6: snmp: avoid performance issue with RATELIMITHOST Eric Dumazet
2025-09-05 16:58 ` [PATCH v2 net-next 1/9] ipv6: snmp: remove icmp6type2name[] Eric Dumazet
2025-09-08 13:49   ` Sabrina Dubroca
2025-09-05 16:58 ` [PATCH v2 net-next 2/9] ipv6: snmp: do not use SNMP_MIB_SENTINEL anymore Eric Dumazet
2025-09-08 13:49   ` Sabrina Dubroca
2025-09-05 16:58 ` [PATCH v2 net-next 3/9] ipv6: snmp: do not track per idev ICMP6_MIB_RATELIMITHOST Eric Dumazet
2025-09-05 16:58 ` [PATCH v2 net-next 4/9] ipv4: snmp: do not use SNMP_MIB_SENTINEL anymore Eric Dumazet
2025-09-08 13:54   ` Sabrina Dubroca
2025-09-05 16:58 ` [PATCH v2 net-next 5/9] mptcp: " Eric Dumazet
2025-09-06 12:59   ` Matthieu Baerts
2025-09-05 16:58 ` [PATCH v2 net-next 6/9] sctp: " Eric Dumazet
2025-09-08 13:56   ` Sabrina Dubroca
2025-09-08 15:29   ` Xin Long
2025-09-05 16:58 ` [PATCH v2 net-next 7/9] tls: " Eric Dumazet
2025-09-08 13:58   ` Sabrina Dubroca
2025-09-05 16:58 ` [PATCH v2 net-next 8/9] xfrm: " Eric Dumazet
2025-09-08 14:12   ` Sabrina Dubroca
2025-09-05 16:58 ` [PATCH v2 net-next 9/9] net: snmp: remove SNMP_MIB_SENTINEL Eric Dumazet
2025-09-08 14:18   ` Sabrina Dubroca
2025-09-09  1:30 ` [PATCH v2 net-next 0/9] ipv6: snmp: avoid performance issue with RATELIMITHOST patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).