config: add a common x86 flag
[dpdk.git] / config / common_bsdapp
1 #   BSD LICENSE
2 #
3 #   Copyright(c) 2010-2015 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 # RTE_EXEC_ENV values are the directories in mk/exec-env/
36 #
37 CONFIG_RTE_EXEC_ENV="bsdapp"
38 CONFIG_RTE_EXEC_ENV_BSDAPP=y
39
40 ##
41 ## machine can define specific variables or action for a specific board
42 ## RTE_MACHINE values are the directories in mk/machine/
43 ##
44 #CONFIG_RTE_MACHINE="native"
45 #
46 ##
47 ## define the architecture we compile for.
48 ## RTE_ARCH values are the directories in mk/arch/
49 ##
50 #CONFIG_RTE_ARCH="x86_64"
51 #CONFIG_RTE_ARCH_X86_64=y
52 #CONFIG_RTE_ARCH_X86=y
53 #
54 ##
55 ## The compiler we use.
56 ## RTE_TOOLCHAIN values are the directories in mk/toolchain/
57 ##
58 #CONFIG_RTE_TOOLCHAIN="gcc"
59 #CONFIG_RTE_TOOLCHAIN_GCC=y
60
61 #
62 # Use intrinsics or assembly code for key routines
63 #
64 CONFIG_RTE_FORCE_INTRINSICS=n
65
66 #
67 # Machine forces strict alignment constraints.
68 #
69 CONFIG_RTE_ARCH_STRICT_ALIGN=n
70
71 #
72 # Compile to share library
73 #
74 CONFIG_RTE_BUILD_SHARED_LIB=n
75
76 #
77 # Combine to one single library
78 #
79 CONFIG_RTE_BUILD_COMBINE_LIBS=n
80
81 #
82 # Use newest code breaking previous ABI
83 #
84 CONFIG_RTE_NEXT_ABI=y
85
86 #
87 # Compile Environment Abstraction Layer
88 #
89 CONFIG_RTE_LIBRTE_EAL=y
90 CONFIG_RTE_MAX_LCORE=128
91 CONFIG_RTE_MAX_NUMA_NODES=8
92 CONFIG_RTE_MAX_MEMSEG=256
93 CONFIG_RTE_MAX_MEMZONE=2560
94 CONFIG_RTE_MAX_TAILQ=32
95 CONFIG_RTE_LOG_LEVEL=8
96 CONFIG_RTE_LOG_HISTORY=256
97 CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
98 CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n
99 CONFIG_RTE_MALLOC_DEBUG=n
100
101 # Default driver path (or "" to disable)
102 CONFIG_RTE_EAL_PMD_PATH=""
103
104 #
105 # FreeBSD contiguous memory driver settings
106 #
107 CONFIG_RTE_CONTIGMEM_MAX_NUM_BUFS=64
108 CONFIG_RTE_CONTIGMEM_DEFAULT_NUM_BUFS=2
109 CONFIG_RTE_CONTIGMEM_DEFAULT_BUF_SIZE=1024*1024*1024
110
111 #
112 # Compile Environment Abstraction Layer for BSD
113 #
114 CONFIG_RTE_LIBRTE_EAL_BSDAPP=y
115
116 #
117 # Compile Environment Abstraction Layer for linux
118 #
119 CONFIG_RTE_LIBRTE_EAL_LINUXAPP=n
120
121 #
122 # Compile Environment Abstraction Layer to support Vmware TSC map
123 #
124 CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=y
125
126 #
127 # Compile the argument parser library
128 #
129 CONFIG_RTE_LIBRTE_KVARGS=y
130
131 #
132 # Compile generic ethernet library
133 #
134 CONFIG_RTE_LIBRTE_ETHER=y
135 CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n
136 CONFIG_RTE_MAX_ETHPORTS=32
137 CONFIG_RTE_MAX_QUEUES_PER_PORT=1024
138 CONFIG_RTE_LIBRTE_IEEE1588=n
139 CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16
140 CONFIG_RTE_ETHDEV_RXTX_CALLBACKS=y
141
142 #
143 # Support NIC bypass logic
144 #
145 CONFIG_RTE_NIC_BYPASS=n
146
147 #
148 # Compile burst-oriented IGB & EM PMD drivers
149 #
150 CONFIG_RTE_LIBRTE_EM_PMD=y
151 CONFIG_RTE_LIBRTE_IGB_PMD=y
152 CONFIG_RTE_LIBRTE_E1000_DEBUG_INIT=n
153 CONFIG_RTE_LIBRTE_E1000_DEBUG_RX=n
154 CONFIG_RTE_LIBRTE_E1000_DEBUG_TX=n
155 CONFIG_RTE_LIBRTE_E1000_DEBUG_TX_FREE=n
156 CONFIG_RTE_LIBRTE_E1000_DEBUG_DRIVER=n
157 CONFIG_RTE_LIBRTE_E1000_PF_DISABLE_STRIP_CRC=n
158
159 #
160 # Compile burst-oriented IXGBE PMD driver
161 #
162 CONFIG_RTE_LIBRTE_IXGBE_PMD=y
163 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_INIT=n
164 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_RX=n
165 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX=n
166 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX_FREE=n
167 CONFIG_RTE_LIBRTE_IXGBE_DEBUG_DRIVER=n
168 CONFIG_RTE_LIBRTE_IXGBE_PF_DISABLE_STRIP_CRC=n
169 CONFIG_RTE_IXGBE_INC_VECTOR=y
170 CONFIG_RTE_IXGBE_RX_OLFLAGS_ENABLE=y
171
172 #
173 # Compile burst-oriented I40E PMD driver
174 #
175 CONFIG_RTE_LIBRTE_I40E_PMD=y
176 CONFIG_RTE_LIBRTE_I40E_DEBUG_INIT=n
177 CONFIG_RTE_LIBRTE_I40E_DEBUG_RX=n
178 CONFIG_RTE_LIBRTE_I40E_DEBUG_TX=n
179 CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n
180 CONFIG_RTE_LIBRTE_I40E_DEBUG_DRIVER=n
181 CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y
182 CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=n
183 CONFIG_RTE_LIBRTE_I40E_RX_OLFLAGS_ENABLE=y
184 CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n
185 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF=64
186 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=4
187 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=4
188 # interval up to 8160 us, aligned to 2 (or default value)
189 CONFIG_RTE_LIBRTE_I40E_ITR_INTERVAL=-1
190
191 #
192 # Compile burst-oriented FM10K PMD
193 #
194 CONFIG_RTE_LIBRTE_FM10K_PMD=y
195 CONFIG_RTE_LIBRTE_FM10K_DEBUG_INIT=n
196 CONFIG_RTE_LIBRTE_FM10K_DEBUG_RX=n
197 CONFIG_RTE_LIBRTE_FM10K_DEBUG_TX=n
198 CONFIG_RTE_LIBRTE_FM10K_DEBUG_TX_FREE=n
199 CONFIG_RTE_LIBRTE_FM10K_DEBUG_DRIVER=n
200 CONFIG_RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y
201
202 #
203 # Compile burst-oriented Mellanox ConnectX-3 (MLX4) PMD
204 #
205 CONFIG_RTE_LIBRTE_MLX4_PMD=n
206 CONFIG_RTE_LIBRTE_MLX4_DEBUG=n
207 CONFIG_RTE_LIBRTE_MLX4_SGE_WR_N=4
208 CONFIG_RTE_LIBRTE_MLX4_MAX_INLINE=0
209 CONFIG_RTE_LIBRTE_MLX4_TX_MP_CACHE=8
210 CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=1
211
212 #
213 # Compile burst-oriented Mellanox ConnectX-4 (MLX5) PMD
214 #
215 CONFIG_RTE_LIBRTE_MLX5_PMD=n
216 CONFIG_RTE_LIBRTE_MLX5_DEBUG=n
217 CONFIG_RTE_LIBRTE_MLX5_SGE_WR_N=4
218 CONFIG_RTE_LIBRTE_MLX5_MAX_INLINE=0
219 CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE=8
220
221 #
222 # Compile burst-oriented Broadcom PMD driver
223 #
224 CONFIG_RTE_LIBRTE_BNX2X_PMD=n
225 CONFIG_RTE_LIBRTE_BNX2X_DEBUG=n
226 CONFIG_RTE_LIBRTE_BNX2X_DEBUG_INIT=n
227 CONFIG_RTE_LIBRTE_BNX2X_DEBUG_RX=n
228 CONFIG_RTE_LIBRTE_BNX2X_DEBUG_TX=n
229 CONFIG_RTE_LIBRTE_BNX2X_MF_SUPPORT=n
230 CONFIG_RTE_LIBRTE_BNX2X_DEBUG_PERIODIC=n
231
232 #
233 # Compile burst-oriented Chelsio Terminator 10GbE/40GbE (CXGBE) PMD
234 #
235 CONFIG_RTE_LIBRTE_CXGBE_PMD=y
236 CONFIG_RTE_LIBRTE_CXGBE_DEBUG=n
237 CONFIG_RTE_LIBRTE_CXGBE_DEBUG_REG=n
238 CONFIG_RTE_LIBRTE_CXGBE_DEBUG_MBOX=n
239 CONFIG_RTE_LIBRTE_CXGBE_DEBUG_TX=n
240 CONFIG_RTE_LIBRTE_CXGBE_DEBUG_RX=n
241
242 #
243 # Compile burst-oriented Cisco ENIC PMD driver
244 #
245 CONFIG_RTE_LIBRTE_ENIC_PMD=y
246 CONFIG_RTE_LIBRTE_ENIC_DEBUG=n
247
248 #
249 # Compile software PMD backed by SZEDATA2 device
250 #
251 CONFIG_RTE_LIBRTE_PMD_SZEDATA2=n
252
253 #
254 # Compile burst-oriented VIRTIO PMD driver
255 #
256 CONFIG_RTE_LIBRTE_VIRTIO_PMD=y
257 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=n
258 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=n
259 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=n
260 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=n
261 CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n
262
263 #
264 # Compile burst-oriented VMXNET3 PMD driver
265 #
266 CONFIG_RTE_LIBRTE_VMXNET3_PMD=y
267 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_INIT=n
268 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_RX=n
269 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX=n
270 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE=n
271 CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_DRIVER=n
272
273 #
274 # Compile example software rings based PMD
275 #
276 CONFIG_RTE_LIBRTE_PMD_RING=y
277 CONFIG_RTE_PMD_RING_MAX_RX_RINGS=16
278 CONFIG_RTE_PMD_RING_MAX_TX_RINGS=16
279
280 #
281 # Compile software PMD backed by PCAP files
282 #
283 CONFIG_RTE_LIBRTE_PMD_PCAP=y
284
285 #
286 # Compile link bonding PMD library
287 #
288 CONFIG_RTE_LIBRTE_PMD_BOND=y
289 CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB=n
290 CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB_L1=n
291
292 #
293 # Compile null PMD
294 #
295 CONFIG_RTE_LIBRTE_PMD_NULL=y
296
297 #
298 # Do prefetch of packet data within PMD driver receive function
299 #
300 CONFIG_RTE_PMD_PACKET_PREFETCH=y
301
302 #
303 # Compile generic crypto device library
304 # EXPERIMENTAL: API may change without prior notice
305 #
306 CONFIG_RTE_LIBRTE_CRYPTODEV=y
307 CONFIG_RTE_LIBRTE_CRYPTODEV_DEBUG=n
308 CONFIG_RTE_CRYPTO_MAX_DEVS=64
309 CONFIG_RTE_CRYPTODEV_NAME_LEN=64
310
311 #
312 # Compile PMD for QuickAssist based devices
313 #
314 CONFIG_RTE_LIBRTE_PMD_QAT=n
315 CONFIG_RTE_LIBRTE_QAT_DEBUG_INIT=n
316 CONFIG_RTE_LIBRTE_QAT_DEBUG_TX=n
317 CONFIG_RTE_LIBRTE_QAT_DEBUG_RX=n
318 CONFIG_RTE_LIBRTE_QAT_DEBUG_DRIVER=n
319 #
320 # Number of sessions to create in the session memory pool
321 # on a single QuickAssist device.
322 #
323 CONFIG_RTE_MAX_QAT_SESSIONS=200
324
325 #
326 # Compile PMD for AESNI backed device
327 #
328 CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n
329 CONFIG_RTE_LIBRTE_AESNI_MB_DEBUG=n
330
331 #
332 # Compile librte_ring
333 #
334 CONFIG_RTE_LIBRTE_RING=y
335 CONFIG_RTE_LIBRTE_RING_DEBUG=n
336 CONFIG_RTE_RING_SPLIT_PROD_CONS=n
337 CONFIG_RTE_RING_PAUSE_REP_COUNT=0
338
339 #
340 # Compile librte_mempool
341 #
342 CONFIG_RTE_LIBRTE_MEMPOOL=y
343 CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE=512
344 CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG=n
345
346 #
347 # Compile librte_mbuf
348 #
349 CONFIG_RTE_LIBRTE_MBUF=y
350 CONFIG_RTE_LIBRTE_MBUF_DEBUG=n
351 CONFIG_RTE_MBUF_REFCNT_ATOMIC=y
352 CONFIG_RTE_PKTMBUF_HEADROOM=128
353
354 #
355 # Compile librte_mbuf_offload
356 # EXPERIMENTAL: API may change without prior notice
357 #
358 CONFIG_RTE_LIBRTE_MBUF_OFFLOAD=y
359 CONFIG_RTE_LIBRTE_MBUF_OFFLOAD_DEBUG=n
360
361 #
362 # Compile librte_timer
363 #
364 CONFIG_RTE_LIBRTE_TIMER=y
365 CONFIG_RTE_LIBRTE_TIMER_DEBUG=n
366
367 #
368 # Compile librte_cfgfile
369 #
370 CONFIG_RTE_LIBRTE_CFGFILE=y
371
372 #
373 # Compile librte_cmdline
374 #
375 CONFIG_RTE_LIBRTE_CMDLINE=y
376 CONFIG_RTE_LIBRTE_CMDLINE_DEBUG=n
377
378 #
379 # Compile librte_hash
380 #
381 CONFIG_RTE_LIBRTE_HASH=y
382 CONFIG_RTE_LIBRTE_HASH_DEBUG=n
383
384 #
385 # Compile librte_jobstats
386 #
387 CONFIG_RTE_LIBRTE_JOBSTATS=y
388
389 #
390 # Compile librte_lpm
391 #
392 CONFIG_RTE_LIBRTE_LPM=y
393 CONFIG_RTE_LIBRTE_LPM_DEBUG=n
394
395 #
396 # Compile librte_acl
397 #
398 CONFIG_RTE_LIBRTE_ACL=y
399 CONFIG_RTE_LIBRTE_ACL_DEBUG=n
400
401 #
402 # Compile librte_power
403 #
404 CONFIG_RTE_LIBRTE_POWER=n
405 CONFIG_RTE_LIBRTE_POWER_DEBUG=n
406 CONFIG_RTE_MAX_LCORE_FREQS=64
407
408 #
409 # Compile librte_net
410 #
411 CONFIG_RTE_LIBRTE_NET=y
412
413 #
414 # Compile librte_ip_frag
415 #
416 CONFIG_RTE_LIBRTE_IP_FRAG=y
417 CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n
418 CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4
419 CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n
420
421 #
422 # Compile librte_meter
423 #
424 CONFIG_RTE_LIBRTE_METER=y
425
426 #
427 # Compile librte_sched
428 #
429 CONFIG_RTE_LIBRTE_SCHED=y
430 CONFIG_RTE_SCHED_DEBUG=n
431 CONFIG_RTE_SCHED_RED=n
432 CONFIG_RTE_SCHED_COLLECT_STATS=n
433 CONFIG_RTE_SCHED_SUBPORT_TC_OV=n
434 CONFIG_RTE_SCHED_PORT_N_GRINDERS=8
435 CONFIG_RTE_SCHED_VECTOR=n
436
437 #
438 # Compile the distributor library
439 #
440 CONFIG_RTE_LIBRTE_DISTRIBUTOR=y
441
442 #
443 # Compile the reorder library
444 #
445 CONFIG_RTE_LIBRTE_REORDER=y
446
447 #
448 # Compile librte_port
449 #
450 CONFIG_RTE_LIBRTE_PORT=y
451 CONFIG_RTE_PORT_STATS_COLLECT=n
452
453 #
454 # Compile librte_table
455 #
456 CONFIG_RTE_LIBRTE_TABLE=y
457 CONFIG_RTE_TABLE_STATS_COLLECT=n
458
459 #
460 # Compile librte_pipeline
461 #
462 CONFIG_RTE_LIBRTE_PIPELINE=y
463 CONFIG_RTE_PIPELINE_STATS_COLLECT=n
464
465 #
466 # Enable warning directives
467 #
468 CONFIG_RTE_INSECURE_FUNCTION_WARNING=n
469
470 #
471 # Compile the test application
472 #
473 CONFIG_RTE_APP_TEST=y
474
475 #
476 # Compile the PMD test application
477 #
478 CONFIG_RTE_TEST_PMD=y
479 CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=n
480 CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS=n