1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Intel Corporation
6 * @file Header file containing DPDK compilation parameters
8 * Header file containing DPDK compilation parameters. Also include the
9 * meson-generated header file containing the detected parameters that
10 * are variable across builds or build environments.
12 * NOTE: This file is only used for meson+ninja builds. For builds done
13 * using make/gmake, the rte_config.h file is autogenerated from the
14 * defconfig_* files in the config directory.
16 #ifndef _RTE_CONFIG_H_
17 #define _RTE_CONFIG_H_
19 #include <rte_build_config.h>
21 /****** library defines ********/
24 #define RTE_MAX_MEMSEG 512
25 #define RTE_MAX_MEMZONE 2560
26 #define RTE_MAX_TAILQ 32
27 #define RTE_LOG_LEVEL RTE_LOG_INFO
28 #define RTE_LOG_DP_LEVEL RTE_LOG_INFO
29 #define RTE_BACKTRACE 1
30 #define RTE_EAL_VFIO 1
32 /* bsd module defines */
33 #define RTE_CONTIGMEM_MAX_NUM_BUFS 64
34 #define RTE_CONTIGMEM_DEFAULT_NUM_BUFS 1
35 #define RTE_CONTIGMEM_DEFAULT_BUF_SIZE (512*1024*1024)
38 #define RTE_MEMPOOL_CACHE_MAX_SIZE 512
41 #define RTE_MBUF_DEFAULT_MEMPOOL_OPS "ring_mp_mc"
42 #define RTE_MBUF_REFCNT_ATOMIC 1
43 #define RTE_PKTMBUF_HEADROOM 128
46 #define RTE_MAX_ETHPORTS 32
47 #define RTE_MAX_QUEUES_PER_PORT 1024
48 #define RTE_ETHDEV_QUEUE_STAT_CNTRS 16
49 #define RTE_ETHDEV_RXTX_CALLBACKS 1
51 /* cryptodev defines */
52 #define RTE_CRYPTO_MAX_DEVS 64
53 #define RTE_CRYPTODEV_NAME_LEN 64
55 /* eventdev defines */
56 #define RTE_EVENT_MAX_DEVS 16
57 #define RTE_EVENT_MAX_QUEUES_PER_DEV 64
59 /* ip_fragmentation defines */
60 #define RTE_LIBRTE_IP_FRAG_MAX_FRAG 4
61 #undef RTE_LIBRTE_IP_FRAG_TBL_STAT
63 /* rte_power defines */
64 #define RTE_MAX_LCORE_FREQS 64
66 /* rte_sched defines */
68 #undef RTE_SCHED_COLLECT_STATS
69 #undef RTE_SCHED_SUBPORT_TC_OV
70 #define RTE_SCHED_PORT_N_GRINDERS 8
71 #undef RTE_SCHED_VECTOR
73 /****** driver defines ********/
76 * Number of sessions to create in the session memory pool
77 * on a single QuickAssist device.
79 #define RTE_QAT_PMD_MAX_NB_SESSIONS 2048
82 #define RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE 1
85 #define RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC 1
86 #undef RTE_LIBRTE_I40E_16BYTE_RX_DESC
87 #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF 64
88 #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF 4
89 #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM 4
90 /* interval up to 8160 us, aligned to 2 (or default value) */
91 #define RTE_LIBRTE_I40E_ITR_INTERVAL -1
93 /* Ring net PMD settings */
94 #define RTE_PMD_RING_MAX_RX_RINGS 16
95 #define RTE_PMD_RING_MAX_TX_RINGS 16
97 #endif /* _RTE_CONFIG_H_ */