]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: move inet->rx_dst_ifindex to sk->sk_rx_dst_ifindex
authorEric Dumazet <edumazet@google.com>
Mon, 25 Oct 2021 16:48:16 +0000 (09:48 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Oct 2021 01:02:12 +0000 (18:02 -0700)
commit206f0a26c41d5fabf63d95bffbe6bfb3a6f332c4
treea991c865b20f6a75c9ab89bef3304bd8b2bea28e
parentf18db5336786b8009a65a03c9e7303a1f31ce63f
tcp: move inet->rx_dst_ifindex to sk->sk_rx_dst_ifindex

Increase cache locality by moving rx_dst_ifindex next to sk->sk_rx_dst

This is part of an effort to reduce cache line misses in TCP fast path.

This removes one cache line miss in early demux.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_sock.h
include/net/sock.h
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c