]> 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)
commit8653514a1f05b2f54f2892b6d647d7238eb9d942
treea991c865b20f6a75c9ab89bef3304bd8b2bea28e
parentc4b21aedd07fa9fc1da4893a3c386ca30303edd8
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