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>
This commit is contained in:
committed by
Jakub Kicinski
parent
fd559a943e
commit
0c0a5ef809
@ -207,11 +207,10 @@ struct inet_sock {
|
||||
__be32 inet_saddr;
|
||||
__s16 uc_ttl;
|
||||
__u16 cmsg_flags;
|
||||
struct ip_options_rcu __rcu *inet_opt;
|
||||
__be16 inet_sport;
|
||||
__u16 inet_id;
|
||||
|
||||
struct ip_options_rcu __rcu *inet_opt;
|
||||
int rx_dst_ifindex;
|
||||
__u8 tos;
|
||||
__u8 min_ttl;
|
||||
__u8 mc_ttl;
|
||||
|
Reference in New Issue
Block a user