diff options
author | Eric Dumazet <edumazet@google.com> | 2024-03-06 19:00:19 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-08 08:12:42 +0300 |
commit | 61a0be1a5342045059ce53eabfe6500d499d2f89 (patch) | |
tree | 12ce8556fa83770c85b34955f9815a045737b6d4 /include | |
parent | edbc666cdcbf4a80ada4311c272a2078af87b880 (diff) | |
download | linux-61a0be1a5342045059ce53eabfe6500d499d2f89.tar.xz |
net: move ip_packet_offload and ipv6_packet_offload to net_hotdata
These structures are used in GRO and GSO paths.
v2: ipv6_packet_offload definition depends on CONFIG_INET
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-7-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/hotdata.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/hotdata.h b/include/net/hotdata.h index dc50b200a94b..d8ce20d3215d 100644 --- a/include/net/hotdata.h +++ b/include/net/hotdata.h @@ -3,9 +3,14 @@ #define _NET_HOTDATA_H #include <linux/types.h> +#include <linux/netdevice.h> /* Read mostly data used in network fast paths. */ struct net_hotdata { +#if IS_ENABLED(CONFIG_INET) + struct packet_offload ip_packet_offload; + struct packet_offload ipv6_packet_offload; +#endif struct list_head offload_base; struct list_head ptype_all; int gro_normal_batch; |