net: introduce struct net_hotdata
authorEric Dumazet <edumazet@google.com>
Wed, 6 Mar 2024 16:00:14 +0000 (16:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Mar 2024 05:12:41 +0000 (21:12 -0800)
commit2658b5a8a4eee5fad378d0bde2f221deacbc58f1
tree04ee99ee98634d5fb654c935b21b2fa1351ce589
parentd3423ed9b89d27d0fd8386dbb9bee89728c92b87
net: introduce struct net_hotdata

Instead of spreading networking critical fields
all over the places, add a custom net_hotdata
structure so that we can precisely control its layout.

In this first patch, move :

- gro_normal_batch used in rx (GRO stack)
- offload_base used in rx and tx (GRO and TSO stacks)

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-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
include/net/gro.h
include/net/hotdata.h [new file with mode: 0644]
net/core/Makefile
net/core/gro.c
net/core/gso.c
net/core/hotdata.c [new file with mode: 0644]
net/core/sysctl_net_core.c