From: Paolo Abeni Date: Thu, 28 Aug 2025 11:14:52 +0000 (+0200) Subject: Merge branch 'net-better-drop-accounting' X-Git-Tag: v6.18-rc1~132^2~313 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e25079858627916b22c4a789005a90a9fae808d8;p=thirdparty%2Flinux.git Merge branch 'net-better-drop-accounting' Eric Dumazet says: ==================== net: better drop accounting Incrementing sk->sk_drops for every dropped packet can cause serious cache line contention under DOS. Add optional sk->sk_drop_counters pointer so that protocols can opt-in to use two dedicated cache lines to hold drop counters. Convert UDP and RAW to use this infrastructure. Tested on UDP (see patch 4/5 for details) Before: nstat -n ; sleep 1 ; nstat | grep Udp Udp6InDatagrams 615091 0.0 Udp6InErrors 3904277 0.0 Udp6RcvbufErrors 3904277 0.0 After: nstat -n ; sleep 1 ; nstat | grep Udp Udp6InDatagrams 816281 0.0 Udp6InErrors 7497093 0.0 Udp6RcvbufErrors 7497093 0.0 ==================== Link: https://patch.msgid.link/20250826125031.1578842-1-edumazet@google.com Signed-off-by: Paolo Abeni --- e25079858627916b22c4a789005a90a9fae808d8