xref: /linux/net/core/hotdata.c (revision af2d6148d2a159e1a0862bce5a2c88c1618a2b27)
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/aligned_data.h>
6 #include <net/hotdata.h>
7 #include <net/ip.h>
8 #include <net/proto_memory.h>
9 
10 struct net_hotdata net_hotdata __cacheline_aligned = {
11 	.offload_base = LIST_HEAD_INIT(net_hotdata.offload_base),
12 	.gro_normal_batch = 8,
13 
14 	.netdev_budget = 300,
15 	/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
16 	.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
17 
18 	.tstamp_prequeue = 1,
19 	.max_backlog = 1000,
20 	.dev_tx_weight = 64,
21 	.dev_rx_weight = 64,
22 	.sysctl_max_skb_frags = MAX_SKB_FRAGS,
23 	.sysctl_skb_defer_max = 64,
24 	.sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE
25 };
26 EXPORT_SYMBOL(net_hotdata);
27 
28 struct net_aligned_data net_aligned_data;
29 EXPORT_IPV6_MOD(net_aligned_data);
30