]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: small optimization in tcp_v6_send_check()
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:32 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
commit4d0ee67e6ab1d5fb9884b09e0c7c101bcf4b11dd
tree26a9722f16481ad49f5f7a22aa1c95a532b9e72d
parent0664b3c1c769aea90117de5c02c4aac59b6a5fb1
tcp: small optimization in tcp_v6_send_check()

For TCP flows, inet6_sk(sk)->saddr has the same value
than sk->sk_v6_rcv_saddr.

Using sk->sk_v6_rcv_saddr increases data locality.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c