eal: add and use unaligned integer types
[dpdk.git] / config / common_linuxapp
1 #   BSD LICENSE
2 #
3 #   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
4 #   All rights reserved.
5 #
6 #   Redistribution and use in source and binary forms, with or without
7 #   modification, are permitted provided that the following conditions
8 #   are met:
9 #
10 #     * Redistributions of source code must retain the above copyright
11 #       notice, this list of conditions and the following disclaimer.
12 #     * Redistributions in binary form must reproduce the above copyright
13 #       notice, this list of conditions and the following disclaimer in
14 #       the documentation and/or other materials provided with the
15 #       distribution.
16 #     * Neither the name of Intel Corporation nor the names of its
17 #       contributors may be used to endorse or promote products derived
18 #       from this software without specific prior written permission.
19 #
20 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 #   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 #   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 #   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 #   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 #   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 #   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 #   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 #   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #
32
33 #
34 # define executive environment
35 #
36 # CONFIG_RTE_EXEC_ENV can be linuxapp, bsdapp
37 #
38 CONFIG_RTE_EXEC_ENV="linuxapp"
39 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
40
41 ##
42 ## machine can define specific variables or action for a specific board
43 ## RTE_MACHINE can be:
44 ## default  nothing specific
45 ## native   current machine
46 ## atm      Intel® Atom™ microarchitecture
47 ## nhm      Intel® microarchitecture code name Nehalem
48 ## wsm      Intel® microarchitecture code name Westmere
49 ## snb      Intel® microarchitecture code name Sandy Bridge
50 ## ivb      Intel® microarchitecture code name Ivy Bridge
51 ##
52 ## Note: if your compiler does not support the relevant -march options,
53 ## it will be compiled with whatever latest processor the compiler supports!
54 ##
55 #CONFIG_RTE_MACHINE="native"
56 #
57 ##
58 ## define the architecture we compile for.
59 ## CONFIG_RTE_ARCH can be i686, x86_64, x86_64_32
60 ##
61 #CONFIG_RTE_ARCH="x86_64"
62 #CONFIG_RTE_ARCH_X86_64=y
63 #
64 ##
65 ## The compiler we use.
66 ## Can be gcc, icc or clang.
67 ##
68 #CONFIG_RTE_TOOLCHAIN="gcc"
69 #CONFIG_RTE_TOOLCHAIN_GCC=y
70
71 #
72 # Use intrinsics or assembly code for key routines
73 #
74 CONFIG_RTE_FORCE_INTRINSICS=n
75
76 #
77 # Machine forces strict alignment constraints.
78 #
79 CONFIG_RTE_ARCH_STRICT_ALIGN=n
80
81 #
82 # Compile to share library
83 #
84 CONFIG_RTE_BUILD_SHARED_LIB=n
85
86 #
87 # Combine to one single library
88 #
89 CONFIG_RTE_BUILD_COMBINE_LIBS=n
90 CONFIG_RTE_LIBNAME="intel_dpdk"
91
92 #
93 # Compile Environment Abstraction Layer
94 #
95 CONFIG_RTE_LIBRTE_EAL=y
96 CONFIG_RTE_MAX_LCORE=128
97 CONFIG_RTE_MAX_NUMA_NODES=8
98 CONFIG_RTE_MAX_MEMSEG=256
99 CONFIG_RTE_MAX_MEMZONE=2560
100 CONFIG_RTE_MAX_TAILQ=32
101 CONFIG_RTE_LOG_LEVEL=8
102 CONFIG_RTE_LOG_HISTORY=256
103 CONFIG_RTE_LIBEAL_USE_HPET=n
104 CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
105 CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n
106 CONFIG_RTE_EAL_IGB_UIO=y
107 CONFIG_RTE_EAL_VFIO=y
108
109 #
110 # Special configurations in PCI Config Space for high performance
111 #
112 CONFIG_RTE_PCI_CONFIG=n
113 CONFIG_RTE_PCI_EXTENDED_TAG=""
114 CONFIG_RTE_PCI_MAX_READ_REQUEST_SIZE=0
115
116 #
117 # Compile Environment Abstraction Layer for linux
118 #
119 CONFIG_RTE_LIBRTE_EAL_LINUXAPP=y
120
121 #
122 # Compile Environment Abstraction Layer to support hotplug
123 #
124 CONFIG_RTE_LIBRTE_EAL_HOTPLUG=y
125
126 #
127 # Compile Environment Abstraction Layer to support Vmware TSC map
128 #
129 CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=y
130
131 #
132 # Compile the argument parser library
133 #
134 CONFIG_RTE_LIBRTE_KVARGS=y
135
136 #
137 # Compile generic ethernet library
138 #
139 CONFIG_RTE_LIBRTE_ETHER=y
140 CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n
141 CONFIG_RTE_MAX_ETHPORTS=32
142 CONFIG_RTE_MAX_QUEUES_PER_PORT=1024
143 CONFIG_RTE_LIBRTE_IEEE1588=n
144 CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16
145 CONFIG_RTE_ETHDEV_RXTX_CALLBACKS=y
146
147 #
148 # Support NIC bypass logic
149 #
150 CONFIG_RTE_NIC_BYPASS=n
151
152 #
153 # Compile burst-oriented IGB & EM PMD drivers
154 #
155 CONFIG_RTE_LIBRTE_EM_PMD=y
156 CONFIG_RTE_LIBRTE_IGB_PMD=y
157 CONFIG_RTE_LIBRTE_E1000_DEBUG_INIT=n
158 CONFIG_RTE_LIBRTE_E1000_DEBUG_RX=n
159 CONFIG_RTE_LIBRTE_E1000_DEBUG_TX=n
160 CONFIG_RTE_LIBRTE_E1000_DEBUG_TX_FREE=n
161 CONFIG_RTE_LIBRTE_E1000_DEBUG_DRIVER=n
162 CONFIG_RTE_LIBRTE_E1000_PF_DISABLE_STRIP_CRC=n
163
164 #
165 # Compile burst-oriented IXGBE PMD driver
166 #
167 CONFIG_RTE_LIBRTE_IXGBE_PMD=y
168 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_INIT=n
169 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_RX=n
170 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX=n
171 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX_FREE=n
172 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_DRIVER=n
173 CONFIG_RTE_LIBRTE_IXGBE_PF_DISABLE_STRIP_CRC=n
174 CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y
175 CONFIG_RTE_IXGBE_INC_VECTOR=y
176 CONFIG_RTE_IXGBE_RX_OLFLAGS_ENABLE=y
177
178 #
179 # Compile burst-oriented I40E PMD driver
180 #
181 CONFIG_RTE_LIBRTE_I40E_PMD=y
182 CONFIG_RTE_LIBRTE_I40E_DEBUG_INIT=n
183 CONFIG_RTE_LIBRTE_I40E_DEBUG_RX=n
184 CONFIG_RTE_LIBRTE_I40E_DEBUG_TX=n
185 CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n
186 CONFIG_RTE_LIBRTE_I40E_DEBUG_DRIVER=n
187 CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y
188 CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n
189 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=4
190 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=4
191 # interval up to 8160 us, aligned to 2 (or default value)
192 CONFIG_RTE_LIBRTE_I40E_ITR_INTERVAL=-1
193
194 #
195 # Compile burst-oriented FM10K PMD
196 #
197 CONFIG_RTE_LIBRTE_FM10K_PMD=y
198 CONFIG_RTE_LIBRTE_FM10K_DEBUG_INIT=n
199 CONFIG_RTE_LIBRTE_FM10K_DEBUG_RX=n
200 CONFIG_RTE_LIBRTE_FM10K_DEBUG_TX=n
201 CONFIG_RTE_LIBRTE_FM10K_DEBUG_TX_FREE=n
202 CONFIG_RTE_LIBRTE_FM10K_DEBUG_DRIVER=n
203 CONFIG_RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y
204
205 #
206 # Compile burst-oriented Mellanox ConnectX-3 (MLX4) PMD
207 #
208 CONFIG_RTE_LIBRTE_MLX4_PMD=n
209 CONFIG_RTE_LIBRTE_MLX4_DEBUG=n
210 CONFIG_RTE_LIBRTE_MLX4_SGE_WR_N=4
211 CONFIG_RTE_LIBRTE_MLX4_MAX_INLINE=0
212 CONFIG_RTE_LIBRTE_MLX4_TX_MP_CACHE=8
213 CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=1
214
215 #
216 # Compile burst-oriented Cisco ENIC PMD driver
217 #
218 CONFIG_RTE_LIBRTE_ENIC_PMD=y
219 CONFIG_RTE_LIBRTE_ENIC_DEBUG=n
220
221 #
222 # Compile burst-oriented VIRTIO PMD driver
223 #
224 CONFIG_RTE_LIBRTE_VIRTIO_PMD=y
225 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=n
226 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=n
227 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=n
228 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=n
229 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n
230
231 #
232 # Compile burst-oriented VMXNET3 PMD driver
233 #
234 CONFIG_RTE_LIBRTE_VMXNET3_PMD=y
235 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_INIT=n
236 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_RX=n
237 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX=n
238 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE=n
239 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_DRIVER=n
240
241 #
242 # Compile example software rings based PMD
243 #
244 CONFIG_RTE_LIBRTE_PMD_RING=y
245 CONFIG_RTE_PMD_RING_MAX_RX_RINGS=16
246 CONFIG_RTE_PMD_RING_MAX_TX_RINGS=16
247
248 #
249 # Compile software PMD backed by PCAP files
250 #
251 CONFIG_RTE_LIBRTE_PMD_PCAP=n
252
253 #
254 # Compile link bonding PMD library
255 #
256 CONFIG_RTE_LIBRTE_PMD_BOND=y
257 CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB=n
258 CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB_L1=n
259
260 #
261 # Compile software PMD backed by AF_PACKET sockets (Linux only)
262 #
263 CONFIG_RTE_LIBRTE_PMD_AF_PACKET=y
264
265 #
266 # Compile Xen PMD
267 #
268 CONFIG_RTE_LIBRTE_PMD_XENVIRT=n
269
270 #
271 # Compile null PMD
272 #
273 CONFIG_RTE_LIBRTE_PMD_NULL=y
274
275 #
276 # Do prefetch of packet data within PMD driver receive function
277 #
278 CONFIG_RTE_PMD_PACKET_PREFETCH=y
279
280 #
281 # Compile librte_ring
282 #
283 CONFIG_RTE_LIBRTE_RING=y
284 CONFIG_RTE_LIBRTE_RING_DEBUG=n
285 CONFIG_RTE_RING_SPLIT_PROD_CONS=n
286 CONFIG_RTE_RING_PAUSE_REP_COUNT=0
287
288 #
289 # Compile librte_mempool
290 #
291 CONFIG_RTE_LIBRTE_MEMPOOL=y
292 CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE=512
293 CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG=n
294
295 #
296 # Compile librte_mbuf
297 #
298 CONFIG_RTE_LIBRTE_MBUF=y
299 CONFIG_RTE_LIBRTE_MBUF_DEBUG=n
300 CONFIG_RTE_MBUF_REFCNT_ATOMIC=y
301 CONFIG_RTE_PKTMBUF_HEADROOM=128
302
303 #
304 # Compile librte_timer
305 #
306 CONFIG_RTE_LIBRTE_TIMER=y
307 CONFIG_RTE_LIBRTE_TIMER_DEBUG=n
308
309 #
310 # Compile librte_malloc
311 #
312 CONFIG_RTE_LIBRTE_MALLOC=y
313 CONFIG_RTE_LIBRTE_MALLOC_DEBUG=n
314 CONFIG_RTE_MALLOC_MEMZONE_SIZE=11M
315
316 #
317 # Compile librte_cfgfile
318 #
319 CONFIG_RTE_LIBRTE_CFGFILE=y
320
321 #
322 # Compile librte_cmdline
323 #
324 CONFIG_RTE_LIBRTE_CMDLINE=y
325 CONFIG_RTE_LIBRTE_CMDLINE_DEBUG=n
326
327 #
328 # Compile librte_hash
329 #
330 CONFIG_RTE_LIBRTE_HASH=y
331 CONFIG_RTE_LIBRTE_HASH_DEBUG=n
332
333 #
334 # Compile librte_jobstats
335 #
336 CONFIG_RTE_LIBRTE_JOBSTATS=y
337
338 #
339 # Compile librte_lpm
340 #
341 CONFIG_RTE_LIBRTE_LPM=y
342 CONFIG_RTE_LIBRTE_LPM_DEBUG=n
343
344 #
345 # Compile librte_acl
346 #
347 CONFIG_RTE_LIBRTE_ACL=y
348 CONFIG_RTE_LIBRTE_ACL_DEBUG=n
349
350 #
351 # Compile librte_power
352 #
353 CONFIG_RTE_LIBRTE_POWER=y
354 CONFIG_RTE_LIBRTE_POWER_DEBUG=n
355 CONFIG_RTE_MAX_LCORE_FREQS=64
356
357 #
358 # Compile librte_net
359 #
360 CONFIG_RTE_LIBRTE_NET=y
361
362 #
363 # Compile librte_ip_frag
364 #
365 CONFIG_RTE_LIBRTE_IP_FRAG=y
366 CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n
367 CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4
368 CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n
369
370 #
371 # Compile librte_meter
372 #
373 CONFIG_RTE_LIBRTE_METER=y
374
375 #
376 # Compile librte_sched
377 #
378 CONFIG_RTE_LIBRTE_SCHED=y
379 CONFIG_RTE_SCHED_RED=n
380 CONFIG_RTE_SCHED_COLLECT_STATS=n
381 CONFIG_RTE_SCHED_SUBPORT_TC_OV=n
382 CONFIG_RTE_SCHED_PORT_N_GRINDERS=8
383
384 #
385 # Compile the distributor library
386 #
387 CONFIG_RTE_LIBRTE_DISTRIBUTOR=y
388
389 #
390 # Compile the reorder library
391 #
392 CONFIG_RTE_LIBRTE_REORDER=y
393
394 #
395 # Compile librte_port
396 #
397 CONFIG_RTE_LIBRTE_PORT=y
398 CONFIG_RTE_PORT_STATS_COLLECT=n
399
400 #
401 # Compile librte_table
402 #
403 CONFIG_RTE_LIBRTE_TABLE=y
404 CONFIG_RTE_TABLE_STATS_COLLECT=n
405
406 #
407 # Compile librte_pipeline
408 #
409 CONFIG_RTE_LIBRTE_PIPELINE=y
410 CONFIG_RTE_PIPELINE_STATS_COLLECT=n
411
412 #
413 # Compile librte_kni
414 #
415 CONFIG_RTE_LIBRTE_KNI=y
416 CONFIG_RTE_KNI_PREEMPT_DEFAULT=y
417 CONFIG_RTE_KNI_KO_DEBUG=n
418 CONFIG_RTE_KNI_VHOST=n
419 CONFIG_RTE_KNI_VHOST_MAX_CACHE_SIZE=1024
420 CONFIG_RTE_KNI_VHOST_VNET_HDR_EN=n
421 CONFIG_RTE_KNI_VHOST_DEBUG_RX=n
422 CONFIG_RTE_KNI_VHOST_DEBUG_TX=n
423
424 #
425 # Compile vhost library
426 # fuse-devel is needed to run vhost-cuse.
427 # fuse-devel enables user space char driver development
428 # vhost-user is turned on by default.
429 #
430 CONFIG_RTE_LIBRTE_VHOST=n
431 CONFIG_RTE_LIBRTE_VHOST_USER=y
432 CONFIG_RTE_LIBRTE_VHOST_DEBUG=n
433
434 #
435 #Compile Xen domain0 support
436 #
437 CONFIG_RTE_LIBRTE_XEN_DOM0=n
438
439 #
440 # Enable warning directives
441 #
442 CONFIG_RTE_INSECURE_FUNCTION_WARNING=n
443
444 #
445 # Compile the test application
446 #
447 CONFIG_RTE_APP_TEST=y
448
449 #
450 # Compile the PMD test application
451 #
452 CONFIG_RTE_TEST_PMD=y
453 CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=n
454 CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS=n