summaryrefslogtreecommitdiff
path: root/net/core/hotdata.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 19:00:17 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-08 08:12:41 +0300
commit0b91fa4bfb1caedd01cb6eb3b733cbc77c9edb0e (patch)
treee5f372f14503a19d33a34fdcb90c3a3a862a7af8 /net/core/hotdata.c
parentf59b5416c396ac4910dd7a0cdf26cbb0e1faf529 (diff)
downloadlinux-0b91fa4bfb1caedd01cb6eb3b733cbc77c9edb0e.tar.xz
net: move ptype_all into net_hotdata
ptype_all is used in rx/tx fast paths. Move it 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-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/hotdata.c')
-rw-r--r--net/core/hotdata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/hotdata.c b/net/core/hotdata.c
index 087c4c84987d..29fcfe89fd9a 100644
--- a/net/core/hotdata.c
+++ b/net/core/hotdata.c
@@ -7,6 +7,7 @@
struct net_hotdata net_hotdata __cacheline_aligned = {
.offload_base = LIST_HEAD_INIT(net_hotdata.offload_base),
+ .ptype_all = LIST_HEAD_INIT(net_hotdata.ptype_all),
.gro_normal_batch = 8,
.netdev_budget = 300,