diff options
author | Eric Dumazet <edumazet@google.com> | 2024-04-29 16:40:25 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-01 04:46:52 +0300 |
commit | c204fef97ee62ca3310f43d12bbda4eb10266c7c (patch) | |
tree | 6cc12ade57310fb99b3a64b72516bee33488c1b3 /net/core/hotdata.c | |
parent | f3d93817fba30a8d3508fa990405039c0820dca3 (diff) | |
download | linux-c204fef97ee62ca3310f43d12bbda4eb10266c7c.tar.xz |
net: move sysctl_mem_pcpu_rsv to net_hotdata
sysctl_mem_pcpu_rsv is used in TCP fast path,
move it to net_hodata for better cache locality.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240429134025.1233626-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/hotdata.c')
-rw-r--r-- | net/core/hotdata.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/hotdata.c b/net/core/hotdata.c index a359ff160d54..d0aaaaa556f2 100644 --- a/net/core/hotdata.c +++ b/net/core/hotdata.c @@ -1,9 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later -#include <net/hotdata.h> #include <linux/cache.h> #include <linux/jiffies.h> #include <linux/list.h> - +#include <net/hotdata.h> +#include <net/proto_memory.h> struct net_hotdata net_hotdata __cacheline_aligned = { .offload_base = LIST_HEAD_INIT(net_hotdata.offload_base), @@ -20,5 +20,6 @@ struct net_hotdata net_hotdata __cacheline_aligned = { .dev_rx_weight = 64, .sysctl_max_skb_frags = MAX_SKB_FRAGS, .sysctl_skb_defer_max = 64, + .sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE }; EXPORT_SYMBOL(net_hotdata); |