mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
tcp: avoid indirect call in tcp_new_space()
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 <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7f8b20d0de
commit
739b2adf99
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user