]> git.ipfire.org Git - thirdparty/linux.git/commit
net: add skb_defer_disable_key static key
authorEric Dumazet <edumazet@google.com>
Wed, 11 Mar 2026 19:13:40 +0000 (19:13 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Mar 2026 02:25:33 +0000 (19:25 -0700)
commit08dc30de1a402fe88fd80592cf6c72c4c2ebbcbc
treec2eca015f3486894357232b49c9573a92d706af6
parent15abbe7c82661209c1dc67c21903c07e2fff5aae
net: add skb_defer_disable_key static key

Add a static key to bypass skb_attempt_defer_free() steps
if net.core.skb_defer_max is set to zero.

Main benefit is the atomic_long_inc_return() avoidance.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260311191340.1996888-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/net-sysfs.h
net/core/skbuff.c
net/core/sysctl_net_core.c