1 // SPDX-License-Identifier: GPL-2.0-or-later
2 #include <linux/cache.h>
3 #include <linux/jiffies.h>
4 #include <linux/list.h>
5 #include <net/hotdata.h>
6 #include <net/proto_memory.h>
8 struct net_hotdata net_hotdata __cacheline_aligned
= {
9 .offload_base
= LIST_HEAD_INIT(net_hotdata
.offload_base
),
10 .ptype_all
= LIST_HEAD_INIT(net_hotdata
.ptype_all
),
11 .gro_normal_batch
= 8,
14 /* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
15 .netdev_budget_usecs
= 2 * USEC_PER_SEC
/ HZ
,
21 .sysctl_max_skb_frags
= MAX_SKB_FRAGS
,
22 .sysctl_skb_defer_max
= 64,
23 .sysctl_mem_pcpu_rsv
= SK_MEMORY_PCPU_RESERVE
25 EXPORT_SYMBOL(net_hotdata
);