examples: enable linking both static and shared
[dpdk.git] / config / rte_config.h
1 /*
2  *   BSD LICENSE
3  *
4  *   Copyright(c) 2017 Intel Corporation.
5  *   All rights reserved.
6  *
7  *   Redistribution and use in source and binary forms, with or without
8  *   modification, are permitted provided that the following conditions
9  *   are met:
10  *
11  *     * Redistributions of source code must retain the above copyright
12  *       notice, this list of conditions and the following disclaimer.
13  *     * Redistributions in binary form must reproduce the above copyright
14  *       notice, this list of conditions and the following disclaimer in
15  *       the documentation and/or other materials provided with the
16  *       distribution.
17  *     * Neither the name of Intel Corporation nor the names of its
18  *       contributors may be used to endorse or promote products derived
19  *       from this software without specific prior written permission.
20  *
21  *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 /**
35  * @file Header file containing DPDK compilation parameters
36  *
37  * Header file containing DPDK compilation parameters. Also include the
38  * meson-generated header file containing the detected parameters that
39  * are variable across builds or build environments.
40  *
41  * NOTE: This file is only used for meson+ninja builds. For builds done
42  * using make/gmake, the rte_config.h file is autogenerated from the
43  * defconfig_* files in the config directory.
44  */
45 #ifndef _RTE_CONFIG_H_
46 #define _RTE_CONFIG_H_
47
48 #include <rte_build_config.h>
49
50 /****** library defines ********/
51
52 /* EAL defines */
53 #define RTE_MAX_MEMSEG 512
54 #define RTE_MAX_MEMZONE 2560
55 #define RTE_MAX_TAILQ 32
56 #define RTE_LOG_LEVEL RTE_LOG_INFO
57 #define RTE_LOG_DP_LEVEL RTE_LOG_INFO
58 #define RTE_BACKTRACE 1
59 #define RTE_EAL_VFIO 1
60
61 /* bsd module defines */
62 #define RTE_CONTIGMEM_MAX_NUM_BUFS 64
63 #define RTE_CONTIGMEM_DEFAULT_NUM_BUFS 1
64 #define RTE_CONTIGMEM_DEFAULT_BUF_SIZE (512*1024*1024)
65
66 /* mempool defines */
67 #define RTE_MEMPOOL_CACHE_MAX_SIZE 512
68
69 /* mbuf defines */
70 #define RTE_MBUF_DEFAULT_MEMPOOL_OPS "ring_mp_mc"
71 #define RTE_MBUF_REFCNT_ATOMIC 1
72 #define RTE_PKTMBUF_HEADROOM 128
73
74 /* ether defines */
75 #define RTE_MAX_ETHPORTS 32
76 #define RTE_MAX_QUEUES_PER_PORT 1024
77 #define RTE_ETHDEV_QUEUE_STAT_CNTRS 16
78 #define RTE_ETHDEV_RXTX_CALLBACKS 1
79
80 /* cryptodev defines */
81 #define RTE_CRYPTO_MAX_DEVS 64
82 #define RTE_CRYPTODEV_NAME_LEN 64
83
84 /* eventdev defines */
85 #define RTE_EVENT_MAX_DEVS 16
86 #define RTE_EVENT_MAX_QUEUES_PER_DEV 64
87
88 /* ip_fragmentation defines */
89 #define RTE_LIBRTE_IP_FRAG_MAX_FRAG 4
90 #undef RTE_LIBRTE_IP_FRAG_TBL_STAT
91
92 /* rte_power defines */
93 #define RTE_MAX_LCORE_FREQS 64
94
95 /* rte_sched defines */
96 #undef RTE_SCHED_RED
97 #undef RTE_SCHED_COLLECT_STATS
98 #undef RTE_SCHED_SUBPORT_TC_OV
99 #define RTE_SCHED_PORT_N_GRINDERS 8
100 #undef RTE_SCHED_VECTOR
101
102 /****** driver defines ********/
103
104 /*
105  * Number of sessions to create in the session memory pool
106  * on a single QuickAssist device.
107  */
108 #define RTE_QAT_PMD_MAX_NB_SESSIONS 2048
109
110 /* fm10k defines */
111 #define RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE 1
112
113 /* i40e defines */
114 #define RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC 1
115 #undef RTE_LIBRTE_I40E_16BYTE_RX_DESC
116 #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF 64
117 #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF 4
118 #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM 4
119 /* interval up to 8160 us, aligned to 2 (or default value) */
120 #define RTE_LIBRTE_I40E_ITR_INTERVAL -1
121
122 /* Ring net PMD settings */
123 #define RTE_PMD_RING_MAX_RX_RINGS 16
124 #define RTE_PMD_RING_MAX_TX_RINGS 16
125
126 #endif /* _RTE_CONFIG_H_ */