]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udp: use skb_attempt_defer_free()
authorEric Dumazet <edumazet@google.com>
Tue, 16 Sep 2025 16:09:51 +0000 (16:09 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 08:17:10 +0000 (10:17 +0200)
commit6471658dc66c670580a7616e75f51b52917e7883
tree4d458742d2336794c02bb18ed606ac776fd5d27c
parent3cd04c8f4afed71a48edef0db5255afc249c2feb
udp: use skb_attempt_defer_free()

Move skb freeing from udp recvmsg() path to the cpu
which allocated/received it, as TCP did in linux-5.17.

This increases max thoughput by 20% to 30%, depending
on number of BH producers.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-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-11-edumazet@google.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/udp.c