xref: /linux-6.15/net/core/hotdata.c (revision edbc666c)
12658b5a8SEric Dumazet // SPDX-License-Identifier: GPL-2.0-or-later
22658b5a8SEric Dumazet #include <net/hotdata.h>
32658b5a8SEric Dumazet #include <linux/cache.h>
4ae6e22f7SEric Dumazet #include <linux/jiffies.h>
52658b5a8SEric Dumazet #include <linux/list.h>
62658b5a8SEric Dumazet 
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,
18*edbc666cSEric Dumazet 	.max_backlog = 1000,
192658b5a8SEric Dumazet };
20*edbc666cSEric Dumazet EXPORT_SYMBOL(net_hotdata);
21