xref: /linux-6.15/net/core/hotdata.c (revision c353e898)
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),
102658b5a8SEric Dumazet 	.gro_normal_batch = 8,
11ae6e22f7SEric Dumazet 
12ae6e22f7SEric Dumazet 	.netdev_budget = 300,
13ae6e22f7SEric Dumazet 	/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
14ae6e22f7SEric Dumazet 	.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
15f59b5416SEric Dumazet 
16f59b5416SEric Dumazet 	.tstamp_prequeue = 1,
17edbc666cSEric Dumazet 	.max_backlog = 1000,
1826722dc7SEric Dumazet 	.dev_tx_weight = 64,
1971c0de9bSEric Dumazet 	.dev_rx_weight = 64,
20a86a0661SEric Dumazet 	.sysctl_max_skb_frags = MAX_SKB_FRAGS,
21d480dc76SEric Dumazet 	.sysctl_skb_defer_max = 64,
22*c204fef9SEric Dumazet 	.sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE
232658b5a8SEric Dumazet };
24edbc666cSEric Dumazet EXPORT_SYMBOL(net_hotdata);
25