summaryrefslogtreecommitdiff
path: root/net/core/sysctl_net_core.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 16:00:18 +0000
committerJakub Kicinski <kuba@kernel.org>2024-03-07 21:12:42 -0800
commitedbc666cdcbf4a80ada4311c272a2078af87b880 (patch)
tree61104dd905b4d0eb4e81c7b88e56fc6be31f3f21 /net/core/sysctl_net_core.c
parent0b91fa4bfb1caedd01cb6eb3b733cbc77c9edb0e (diff)
downloadlwn-edbc666cdcbf4a80ada4311c272a2078af87b880.tar.gz
lwn-edbc666cdcbf4a80ada4311c272a2078af87b880.zip
net: move netdev_max_backlog to net_hotdata
netdev_max_backlog is used in rx fat path. Move it to net_hodata 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-6-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/sysctl_net_core.c')
-rw-r--r--net/core/sysctl_net_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
index bddd07da0998..8eaeeb289914 100644
--- a/net/core/sysctl_net_core.c
+++ b/net/core/sysctl_net_core.c
@@ -440,7 +440,7 @@ static struct ctl_table net_core_table[] = {
},
{
.procname = "netdev_max_backlog",
- .data = &netdev_max_backlog,
+ .data = &net_hotdata.max_backlog,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec