]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookie
authorEric Dumazet <edumazet@google.com>
Mon, 25 Oct 2021 16:48:17 +0000 (09:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:28:42 +0000 (12:28 +0100)
commit98a8e5c2002727c4de303e11e38de25777746111
tree750f415dffc05a9b213d1df0df8d2a08b780acbd
parent8e096cffc6d35437bc4b8a7b2d6734413675239c
ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookie

[ Upstream commit ef57c1610dd8fba5031bf71e0db73356190de151 ]

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

This removes one or two cache line misses in IPv6 early demux (TCP/UDP)

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