]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add add indirect call wrapper in skb_release_head_state()
authorEric Dumazet <edumazet@google.com>
Tue, 14 Oct 2025 17:19:03 +0000 (17:19 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Oct 2025 23:25:09 +0000 (16:25 -0700)
commit5b2b7dec05f3ab80d7bb7fa09acd43222fab6aa2
tree9d6f94348cc5e8c7056232c1a85533f1d900dc90
parent56cef47c28dc7d40af8959ceb5a3f49e907e2a89
net: add add indirect call wrapper in skb_release_head_state()

While stress testing UDP senders on a host with expensive indirect
calls, I found cpus processing TX completions where showing
a very high cost (20%) in sock_wfree() due to
CONFIG_MITIGATION_RETPOLINE=y.

Take care of TCP and UDP TX destructors and use INDIRECT_CALL_3() macro.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Tested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20251014171907.3554413-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c