1 // SPDX-License-Identifier: GPL-2.0-or-later 2 #include <net/hotdata.h> 3 #include <linux/cache.h> 4 #include <linux/jiffies.h> 5 #include <linux/list.h> 6 7 8 struct net_hotdata net_hotdata __cacheline_aligned = { 9 .offload_base = LIST_HEAD_INIT(net_hotdata.offload_base), 10 .ptype_all = LIST_HEAD_INIT(net_hotdata.ptype_all), 11 .gro_normal_batch = 8, 12 13 .netdev_budget = 300, 14 /* Must be at least 2 jiffes to guarantee 1 jiffy timeout */ 15 .netdev_budget_usecs = 2 * USEC_PER_SEC / HZ, 16 17 .tstamp_prequeue = 1, 18 .max_backlog = 1000, 19 .dev_tx_weight = 64, 20 .dev_rx_weight = 64, 21 }; 22 EXPORT_SYMBOL(net_hotdata); 23