]> 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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Oct 2021 01:02:12 +0000 (18:02 -0700)
commitef57c1610dd8fba5031bf71e0db73356190de151
tree5ca9d14c1c8762c7e15fae0720d088d36661aac8
parent0c0a5ef809f9150e9229e7b13e43183b681b7a39
ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookie

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>
include/linux/ipv6.h
include/net/sock.h
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c