summaryrefslogtreecommitdiff
path: root/net/core/hotdata.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 19:00:18 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-08 08:12:42 +0300
commitedbc666cdcbf4a80ada4311c272a2078af87b880 (patch)
tree61104dd905b4d0eb4e81c7b88e56fc6be31f3f21 /net/core/hotdata.c
parent0b91fa4bfb1caedd01cb6eb3b733cbc77c9edb0e (diff)
downloadlinux-edbc666cdcbf4a80ada4311c272a2078af87b880.tar.xz
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/hotdata.c')
-rw-r--r--net/core/hotdata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/hotdata.c b/net/core/hotdata.c
index 29fcfe89fd9a..35ed5a83ecc7 100644
--- a/net/core/hotdata.c
+++ b/net/core/hotdata.c
@@ -15,4 +15,6 @@ struct net_hotdata net_hotdata __cacheline_aligned = {
.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
.tstamp_prequeue = 1,
+ .max_backlog = 1000,
};
+EXPORT_SYMBOL(net_hotdata);