1 // SPDX-License-Identifier: GPL-2.0-or-later 2 #include <linux/cache.h> 3 #include <linux/jiffies.h> 4 #include <linux/list.h> 5 #include <net/hotdata.h> 6 #include <net/proto_memory.h> 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 .sysctl_max_skb_frags = MAX_SKB_FRAGS, 22 .sysctl_skb_defer_max = 64, 23 .sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE 24 }; 25 EXPORT_SYMBOL(net_hotdata); 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.