File Index
Files and directories
Sign in
FILE

hotdata.c

File preview with syntax highlighting.

linux-6.19.14/net/core/hotdata.c C
 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/aligned_data.h>
 6#include <net/hotdata.h>
 7#include <net/ip.h>
 8#include <net/proto_memory.h>
 9
10struct net_hotdata net_hotdata __cacheline_aligned = {
11	.offload_base = LIST_HEAD_INIT(net_hotdata.offload_base),
12	.gro_normal_batch = 8,
13
14	.netdev_budget = 300,
15	/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
16	.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
17
18	.tstamp_prequeue = 1,
19	.max_backlog = 1000,
20	.qdisc_max_burst = 1000,
21	.dev_tx_weight = 64,
22	.dev_rx_weight = 64,
23	.sysctl_max_skb_frags = MAX_SKB_FRAGS,
24	.sysctl_skb_defer_max = 128,
25	.sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE
26};
27EXPORT_SYMBOL(net_hotdata);
28
29struct net_aligned_data net_aligned_data;
30EXPORT_IPV6_MOD(net_aligned_data);
~/ Read-only file preview.