tcp: avoid indirect call in tcp_new_space()
Subsystems (3)
PATCH 1/1 tcp: avoid indirect call in tcp_new_space()
From: Eric Dumazet <[email protected]>
For tcp sockets, sk->sk_write_space is most probably sk_stream_write_space().
Other sk->sk_write_space() calls in TCP are slow path and do not deserve any change.
Signed-off-by Eric Dumazet <[email protected]>
--- net/ipv4/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/tcp_input.c +1 -1
@@ -5383,7 +5383,7 @@ static void tcp_new_space(struct sock *sk) tp->snd_cwnd_stamp = tcp_jiffies32; } - sk->sk_write_space (sk); +INDIRECT_CALL_1 (sk->sk_write_space, sk_stream_write_space, sk); }static void tcp_check_space (struct sock *sk)
Signature · 1 line
2.32.0.402.g57bb445576-goog
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Wed, 21 Jul 2021 02:06:14 -0700 you wrote:
From: Eric Dumazet <[email protected]>
For tcp sockets,
sk->sk_write_spaceis most probablysk_stream_write_space().Other
sk->sk_write_space()calls in TCP are slow path and do not deserve any change.[...]
Here is the summary with links:
- [net-next] tcp: avoid indirect call in tcp_new_space()
https://git.kernel.org/netdev/net-next/c/739b2adf99e9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html