summaryrefslogtreecommitdiff
path: root/include/net/hotdata.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 19:00:31 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-08 08:12:43 +0300
commitce7f49ab741591d83e33e56948bac2f12de6e14e (patch)
tree29b291f5ccbeb9324f98f48e352a84d311314f69 /include/net/hotdata.h
parent490a79faf95e705ba0ffd9ebf04a624b379e53c9 (diff)
downloadlinux-ce7f49ab741591d83e33e56948bac2f12de6e14e.tar.xz
net: move rps_sock_flow_table to net_hotdata
rps_sock_flow_table and rps_cpu_mask are used in fast path. Move them to net_hotdata for better cache locality. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20240306160031.874438-19-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/hotdata.h')
-rw-r--r--include/net/hotdata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/hotdata.h b/include/net/hotdata.h
index b0b847585f7e..003667a1efd6 100644
--- a/include/net/hotdata.h
+++ b/include/net/hotdata.h
@@ -27,6 +27,10 @@ struct net_hotdata {
struct kmem_cache *skbuff_cache;
struct kmem_cache *skbuff_fclone_cache;
struct kmem_cache *skb_small_head_cache;
+#ifdef CONFIG_RPS
+ struct rps_sock_flow_table __rcu *rps_sock_flow_table;
+ u32 rps_cpu_mask;
+#endif
int gro_normal_batch;
int netdev_budget;
int netdev_budget_usecs;