]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: avoid indirect call in tcp_new_space()
authorEric Dumazet <edumazet@google.com>
Wed, 21 Jul 2021 09:06:14 +0000 (02:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jul 2021 16:02:11 +0000 (09:02 -0700)
commit28421236ef6cf5b12647232c502c2299ab277959
tree98e3a4ebdd8aac029583b1070a61d659ca26f3d9
parentc27b7dc80d8f3cbd315e8593b63fdff04b46050e
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>
net/ipv4/tcp_input.c