]> git.ipfire.org Git - thirdparty/linux.git/commit
udp: add udp_drops_inc() helper
authorEric Dumazet <edumazet@google.com>
Tue, 16 Sep 2025 16:09:49 +0000 (16:09 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 08:17:10 +0000 (10:17 +0200)
commit9db27c80622bd612549ea213390500f7377ee3e1
treec4431c098c618ebaaf5d1fc28fd4982e8fa41bd5
parent4effb335b5dab08cb6e2c38d038910f8b527cfc9
udp: add udp_drops_inc() helper

Generic sk_drops_inc() reads sk->sk_drop_counters.
We know the precise location for UDP sockets.

Move sk_drop_counters out of sock_read_rxtx
so that sock_write_rxtx starts at a cache line boundary.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250916160951.541279-9-edumazet@google.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/sock.h
include/net/udp.h
net/core/sock.c
net/ipv4/udp.c
net/ipv6/udp.c