xref: /linux/net/core/hotdata.c (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
12658b5a8SEric Dumazet // SPDX-License-Identifier: GPL-2.0-or-later
22658b5a8SEric Dumazet #include <linux/cache.h>
3ae6e22f7SEric Dumazet #include <linux/jiffies.h>
42658b5a8SEric Dumazet #include <linux/list.h>
5*c204fef9SEric Dumazet #include <net/hotdata.h>
6*c204fef9SEric Dumazet #include <net/proto_memory.h>
7ae6e22f7SEric Dumazet 
82658b5a8SEric Dumazet struct net_hotdata net_hotdata __cacheline_aligned = {
92658b5a8SEric Dumazet 	.offload_base = LIST_HEAD_INIT(net_hotdata.offload_base),
100b91fa4bSEric Dumazet 	.ptype_all = LIST_HEAD_INIT(net_hotdata.ptype_all),
112658b5a8SEric Dumazet 	.gro_normal_batch = 8,
12ae6e22f7SEric Dumazet 
13ae6e22f7SEric Dumazet 	.netdev_budget = 300,
14ae6e22f7SEric Dumazet 	/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
15ae6e22f7SEric Dumazet 	.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
16f59b5416SEric Dumazet 
17f59b5416SEric Dumazet 	.tstamp_prequeue = 1,
18edbc666cSEric Dumazet 	.max_backlog = 1000,
1926722dc7SEric Dumazet 	.dev_tx_weight = 64,
2071c0de9bSEric Dumazet 	.dev_rx_weight = 64,
21a86a0661SEric Dumazet 	.sysctl_max_skb_frags = MAX_SKB_FRAGS,
22d480dc76SEric Dumazet 	.sysctl_skb_defer_max = 64,
23*c204fef9SEric Dumazet 	.sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE
242658b5a8SEric Dumazet };
25edbc666cSEric Dumazet EXPORT_SYMBOL(net_hotdata);
26