| 1 | |
| 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 |
|
| 10 | struct 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 |
|
| 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 | };
|
| 27 | EXPORT_SYMBOL(net_hotdata);
|
| 28 |
|
| 29 | struct net_aligned_data net_aligned_data;
|