xref: /linux-6.15/net/core/hotdata.c (revision ae6e22f7)
12658b5a8SEric Dumazet // SPDX-License-Identifier: GPL-2.0-or-later
22658b5a8SEric Dumazet #include <net/hotdata.h>
32658b5a8SEric Dumazet #include <linux/cache.h>
4*ae6e22f7SEric Dumazet #include <linux/jiffies.h>
52658b5a8SEric Dumazet #include <linux/list.h>
62658b5a8SEric Dumazet 
7*ae6e22f7SEric 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,
11*ae6e22f7SEric Dumazet 
12*ae6e22f7SEric Dumazet 	.netdev_budget = 300,
13*ae6e22f7SEric Dumazet 	/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
14*ae6e22f7SEric Dumazet 	.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
152658b5a8SEric Dumazet };
16