Files

30 lines
805 B
C
Raw Permalink Normal View History

2024-03-06 16:00:14 +00:00
// SPDX-License-Identifier: GPL-2.0-or-later
#include <linux/cache.h>
#include <linux/jiffies.h>
2024-03-06 16:00:14 +00:00
#include <linux/list.h>
2025-06-30 09:35:37 +00:00
#include <net/aligned_data.h>
#include <net/hotdata.h>
#include <net/ip.h>
#include <net/proto_memory.h>
2024-03-06 16:00:14 +00:00
struct net_hotdata net_hotdata __cacheline_aligned = {
.offload_base = LIST_HEAD_INIT(net_hotdata.offload_base),
.gro_normal_batch = 8,
.netdev_budget = 300,
/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
.tstamp_prequeue = 1,
2024-03-06 16:00:18 +00:00
.max_backlog = 1000,
2026-01-07 10:41:59 +00:00
.qdisc_max_burst = 1000,
2024-03-06 16:00:21 +00:00
.dev_tx_weight = 64,
2024-03-06 16:00:22 +00:00
.dev_rx_weight = 64,
.sysctl_max_skb_frags = MAX_SKB_FRAGS,
2025-11-06 20:29:35 +00:00
.sysctl_skb_defer_max = 128,
.sysctl_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE
2024-03-06 16:00:14 +00:00
};
2024-03-06 16:00:18 +00:00
EXPORT_SYMBOL(net_hotdata);
2025-06-30 09:35:37 +00:00
struct net_aligned_data net_aligned_data;