1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation.
3 * Copyright(c) 2014 6WIND S.A.
9 #ifndef RTE_EXEC_ENV_WINDOWS
16 #ifndef RTE_EXEC_ENV_WINDOWS
19 #include <sys/types.h>
23 #include <rte_string_fns.h>
26 #include <rte_lcore.h>
27 #include <rte_memory.h>
28 #include <rte_tailq.h>
29 #include <rte_version.h>
30 #include <rte_devargs.h>
31 #include <rte_memcpy.h>
32 #ifndef RTE_EXEC_ENV_WINDOWS
33 #include <rte_telemetry.h>
36 #include "eal_internal_cfg.h"
37 #include "eal_options.h"
38 #include "eal_filesystem.h"
39 #include "eal_private.h"
40 #ifndef RTE_EXEC_ENV_WINDOWS
41 #include "eal_trace.h"
44 #define BITS_PER_HEX 4
45 #define LCORE_OPT_LST 1
46 #define LCORE_OPT_MSK 2
47 #define LCORE_OPT_MAP 3
51 "b:" /* pci-blacklist */
53 "s:" /* service coremask */
57 "S:" /* service corelist */
58 "m:" /* memory size */
59 "n:" /* memory channels */
60 "r:" /* memory ranks */
62 "w:" /* pci-whitelist */
66 eal_long_options[] = {
67 {OPT_BASE_VIRTADDR, 1, NULL, OPT_BASE_VIRTADDR_NUM },
68 {OPT_CREATE_UIO_DEV, 0, NULL, OPT_CREATE_UIO_DEV_NUM },
69 {OPT_FILE_PREFIX, 1, NULL, OPT_FILE_PREFIX_NUM },
70 {OPT_HELP, 0, NULL, OPT_HELP_NUM },
71 {OPT_HUGE_DIR, 1, NULL, OPT_HUGE_DIR_NUM },
72 {OPT_HUGE_UNLINK, 0, NULL, OPT_HUGE_UNLINK_NUM },
73 {OPT_IOVA_MODE, 1, NULL, OPT_IOVA_MODE_NUM },
74 {OPT_LCORES, 1, NULL, OPT_LCORES_NUM },
75 {OPT_LOG_LEVEL, 1, NULL, OPT_LOG_LEVEL_NUM },
76 {OPT_TRACE, 1, NULL, OPT_TRACE_NUM },
77 {OPT_TRACE_DIR, 1, NULL, OPT_TRACE_DIR_NUM },
78 {OPT_TRACE_BUF_SIZE, 1, NULL, OPT_TRACE_BUF_SIZE_NUM },
79 {OPT_TRACE_MODE, 1, NULL, OPT_TRACE_MODE_NUM },
80 {OPT_MASTER_LCORE, 1, NULL, OPT_MASTER_LCORE_NUM },
81 {OPT_MBUF_POOL_OPS_NAME, 1, NULL, OPT_MBUF_POOL_OPS_NAME_NUM},
82 {OPT_NO_HPET, 0, NULL, OPT_NO_HPET_NUM },
83 {OPT_NO_HUGE, 0, NULL, OPT_NO_HUGE_NUM },
84 {OPT_NO_PCI, 0, NULL, OPT_NO_PCI_NUM },
85 {OPT_NO_SHCONF, 0, NULL, OPT_NO_SHCONF_NUM },
86 {OPT_IN_MEMORY, 0, NULL, OPT_IN_MEMORY_NUM },
87 {OPT_PCI_BLACKLIST, 1, NULL, OPT_PCI_BLACKLIST_NUM },
88 {OPT_PCI_WHITELIST, 1, NULL, OPT_PCI_WHITELIST_NUM },
89 {OPT_PROC_TYPE, 1, NULL, OPT_PROC_TYPE_NUM },
90 {OPT_SOCKET_MEM, 1, NULL, OPT_SOCKET_MEM_NUM },
91 {OPT_SOCKET_LIMIT, 1, NULL, OPT_SOCKET_LIMIT_NUM },
92 {OPT_SYSLOG, 1, NULL, OPT_SYSLOG_NUM },
93 {OPT_VDEV, 1, NULL, OPT_VDEV_NUM },
94 {OPT_VFIO_INTR, 1, NULL, OPT_VFIO_INTR_NUM },
95 {OPT_VMWARE_TSC_MAP, 0, NULL, OPT_VMWARE_TSC_MAP_NUM },
96 {OPT_LEGACY_MEM, 0, NULL, OPT_LEGACY_MEM_NUM },
97 {OPT_SINGLE_FILE_SEGMENTS, 0, NULL, OPT_SINGLE_FILE_SEGMENTS_NUM},
98 {OPT_MATCH_ALLOCATIONS, 0, NULL, OPT_MATCH_ALLOCATIONS_NUM},
99 {OPT_TELEMETRY, 0, NULL, OPT_TELEMETRY_NUM },
100 {OPT_NO_TELEMETRY, 0, NULL, OPT_NO_TELEMETRY_NUM },
104 TAILQ_HEAD(shared_driver_list, shared_driver);
106 /* Definition for shared object drivers. */
107 struct shared_driver {
108 TAILQ_ENTRY(shared_driver) next;
114 /* List of external loadable drivers */
115 static struct shared_driver_list solib_list =
116 TAILQ_HEAD_INITIALIZER(solib_list);
118 /* Default path of external loadable drivers */
119 static const char *default_solib_dir = RTE_EAL_PMD_PATH;
122 * Stringified version of solib path used by dpdk-pmdinfo.py
123 * Note: PLEASE DO NOT ALTER THIS without making a corresponding
124 * change to usertools/dpdk-pmdinfo.py
126 static const char dpdk_solib_path[] __rte_used =
127 "DPDK_PLUGIN_PATH=" RTE_EAL_PMD_PATH;
129 TAILQ_HEAD(device_option_list, device_option);
131 struct device_option {
132 TAILQ_ENTRY(device_option) next;
134 enum rte_devtype type;
138 static struct device_option_list devopt_list =
139 TAILQ_HEAD_INITIALIZER(devopt_list);
141 static int master_lcore_parsed;
142 static int mem_parsed;
143 static int core_parsed;
145 #ifndef RTE_EXEC_ENV_WINDOWS
146 static char **eal_args;
147 static char **eal_app_args;
149 #define EAL_PARAM_REQ "/eal/params"
150 #define EAL_APP_PARAM_REQ "/eal/app_params"
152 /* callback handler for telemetry library to report out EAL flags */
154 handle_eal_info_request(const char *cmd, const char *params __rte_unused,
155 struct rte_tel_data *d)
161 if (strcmp(cmd, EAL_PARAM_REQ) == 0)
166 rte_tel_data_start_array(d, RTE_TEL_STRING_VAL);
167 if (args == NULL || args[0] == NULL)
170 for ( ; args[i] != NULL; i++)
171 used = rte_tel_data_add_array_string(d, args[i]);
176 eal_save_args(int argc, char **argv)
180 rte_telemetry_register_cmd(EAL_PARAM_REQ, handle_eal_info_request,
181 "Returns EAL commandline parameters used. Takes no parameters");
182 rte_telemetry_register_cmd(EAL_APP_PARAM_REQ, handle_eal_info_request,
183 "Returns app commandline parameters used. Takes no parameters");
185 /* clone argv to report out later. We overprovision, but
186 * this does not waste huge amounts of memory
188 eal_args = calloc(argc + 1, sizeof(*eal_args));
189 if (eal_args == NULL)
192 for (i = 0; i < argc; i++) {
193 eal_args[i] = strdup(argv[i]);
194 if (strcmp(argv[i], "--") == 0)
197 eal_args[i++] = NULL; /* always finish with NULL */
199 /* allow reporting of any app args we know about too */
203 eal_app_args = calloc(argc - i + 1, sizeof(*eal_args));
204 if (eal_app_args == NULL)
207 for (j = 0; i < argc; j++, i++)
208 eal_app_args[j] = strdup(argv[i]);
209 eal_app_args[j] = NULL;
216 eal_option_device_add(enum rte_devtype type, const char *optarg)
218 struct device_option *devopt;
222 optlen = strlen(optarg) + 1;
223 devopt = calloc(1, sizeof(*devopt) + optlen);
224 if (devopt == NULL) {
225 RTE_LOG(ERR, EAL, "Unable to allocate device option\n");
230 ret = strlcpy(devopt->arg, optarg, optlen);
232 RTE_LOG(ERR, EAL, "Unable to copy device option\n");
236 TAILQ_INSERT_TAIL(&devopt_list, devopt, next);
241 eal_option_device_parse(void)
243 struct device_option *devopt;
247 TAILQ_FOREACH_SAFE(devopt, &devopt_list, next, tmp) {
249 ret = rte_devargs_add(devopt->type, devopt->arg);
251 RTE_LOG(ERR, EAL, "Unable to parse device '%s'\n",
254 TAILQ_REMOVE(&devopt_list, devopt, next);
261 eal_get_hugefile_prefix(void)
263 if (internal_config.hugefile_prefix != NULL)
264 return internal_config.hugefile_prefix;
265 return HUGEFILE_PREFIX_DEFAULT;
269 eal_reset_internal_config(struct internal_config *internal_cfg)
273 internal_cfg->memory = 0;
274 internal_cfg->force_nrank = 0;
275 internal_cfg->force_nchannel = 0;
276 internal_cfg->hugefile_prefix = NULL;
277 internal_cfg->hugepage_dir = NULL;
278 internal_cfg->force_sockets = 0;
279 /* zero out the NUMA config */
280 for (i = 0; i < RTE_MAX_NUMA_NODES; i++)
281 internal_cfg->socket_mem[i] = 0;
282 internal_cfg->force_socket_limits = 0;
283 /* zero out the NUMA limits config */
284 for (i = 0; i < RTE_MAX_NUMA_NODES; i++)
285 internal_cfg->socket_limit[i] = 0;
286 /* zero out hugedir descriptors */
287 for (i = 0; i < MAX_HUGEPAGE_SIZES; i++) {
288 memset(&internal_cfg->hugepage_info[i], 0,
289 sizeof(internal_cfg->hugepage_info[0]));
290 internal_cfg->hugepage_info[i].lock_descriptor = -1;
292 internal_cfg->base_virtaddr = 0;
295 internal_cfg->syslog_facility = LOG_DAEMON;
298 /* if set to NONE, interrupt mode is determined automatically */
299 internal_cfg->vfio_intr_mode = RTE_INTR_MODE_NONE;
301 #ifdef RTE_LIBEAL_USE_HPET
302 internal_cfg->no_hpet = 0;
304 internal_cfg->no_hpet = 1;
306 internal_cfg->vmware_tsc_map = 0;
307 internal_cfg->create_uio_dev = 0;
308 internal_cfg->iova_mode = RTE_IOVA_DC;
309 internal_cfg->user_mbuf_pool_ops_name = NULL;
310 CPU_ZERO(&internal_cfg->ctrl_cpuset);
311 internal_cfg->init_complete = 0;
315 eal_plugin_add(const char *path)
317 struct shared_driver *solib;
319 solib = malloc(sizeof(*solib));
321 RTE_LOG(ERR, EAL, "malloc(solib) failed\n");
324 memset(solib, 0, sizeof(*solib));
325 strlcpy(solib->name, path, PATH_MAX-1);
326 solib->name[PATH_MAX-1] = 0;
327 TAILQ_INSERT_TAIL(&solib_list, solib, next);
333 eal_plugindir_init(const char *path)
336 struct dirent *dent = NULL;
337 char sopath[PATH_MAX];
339 if (path == NULL || *path == '\0')
344 RTE_LOG(ERR, EAL, "failed to open directory %s: %s\n",
345 path, strerror(errno));
349 while ((dent = readdir(d)) != NULL) {
352 snprintf(sopath, sizeof(sopath), "%s/%s", path, dent->d_name);
354 if (!(stat(sopath, &sb) == 0 && S_ISREG(sb.st_mode)))
357 if (eal_plugin_add(sopath) == -1)
362 /* XXX this ignores failures from readdir() itself */
363 return (dent == NULL) ? 0 : -1;
367 eal_plugins_init(void)
369 #ifndef RTE_EXEC_ENV_WINDOWS
370 struct shared_driver *solib = NULL;
373 if (*default_solib_dir != '\0' && stat(default_solib_dir, &sb) == 0 &&
375 eal_plugin_add(default_solib_dir);
377 TAILQ_FOREACH(solib, &solib_list, next) {
379 if (stat(solib->name, &sb) == 0 && S_ISDIR(sb.st_mode)) {
380 if (eal_plugindir_init(solib->name) == -1) {
382 "Cannot init plugin directory %s\n",
387 RTE_LOG(DEBUG, EAL, "open shared lib %s\n",
389 solib->lib_handle = dlopen(solib->name, RTLD_NOW);
390 if (solib->lib_handle == NULL) {
391 RTE_LOG(ERR, EAL, "%s\n", dlerror());
402 * Parse the coremask given as argument (hexadecimal string) and fill
403 * the global configuration (core role and core count) with the parsed
406 static int xdigit2val(unsigned char c)
420 eal_parse_service_coremask(const char *coremask)
422 struct rte_config *cfg = rte_eal_get_configuration();
424 unsigned int count = 0;
427 uint32_t taken_lcore_count = 0;
429 if (coremask == NULL)
431 /* Remove all blank characters ahead and after .
432 * Remove 0x/0X if exists.
434 while (isblank(*coremask))
436 if (coremask[0] == '0' && ((coremask[1] == 'x')
437 || (coremask[1] == 'X')))
439 i = strlen(coremask);
440 while ((i > 0) && isblank(coremask[i - 1]))
446 for (i = i - 1; i >= 0 && idx < RTE_MAX_LCORE; i--) {
448 if (isxdigit(c) == 0) {
449 /* invalid characters */
453 for (j = 0; j < BITS_PER_HEX && idx < RTE_MAX_LCORE;
455 if ((1 << j) & val) {
456 /* handle master lcore already parsed */
457 uint32_t lcore = idx;
458 if (master_lcore_parsed &&
459 cfg->master_lcore == lcore) {
461 "lcore %u is master lcore, cannot use as service core\n",
466 if (eal_cpu_detected(idx) == 0) {
468 "lcore %u unavailable\n", idx);
472 if (cfg->lcore_role[idx] == ROLE_RTE)
475 lcore_config[idx].core_role = ROLE_SERVICE;
482 if (coremask[i] != '0')
485 for (; idx < RTE_MAX_LCORE; idx++)
486 lcore_config[idx].core_index = -1;
491 if (core_parsed && taken_lcore_count != count) {
492 RTE_LOG(WARNING, EAL,
493 "Not all service cores are in the coremask. "
494 "Please ensure -c or -l includes service cores\n");
497 cfg->service_lcore_count = count;
502 eal_service_cores_parsed(void)
505 for (idx = 0; idx < RTE_MAX_LCORE; idx++) {
506 if (lcore_config[idx].core_role == ROLE_SERVICE)
513 update_lcore_config(int *cores)
515 struct rte_config *cfg = rte_eal_get_configuration();
516 unsigned int count = 0;
520 for (i = 0; i < RTE_MAX_LCORE; i++) {
521 if (cores[i] != -1) {
522 if (eal_cpu_detected(i) == 0) {
523 RTE_LOG(ERR, EAL, "lcore %u unavailable\n", i);
527 cfg->lcore_role[i] = ROLE_RTE;
530 cfg->lcore_role[i] = ROLE_OFF;
532 lcore_config[i].core_index = cores[i];
535 cfg->lcore_count = count;
540 eal_parse_coremask(const char *coremask, int *cores)
547 for (idx = 0; idx < RTE_MAX_LCORE; idx++)
551 /* Remove all blank characters ahead and after .
552 * Remove 0x/0X if exists.
554 while (isblank(*coremask))
556 if (coremask[0] == '0' && ((coremask[1] == 'x')
557 || (coremask[1] == 'X')))
559 i = strlen(coremask);
560 while ((i > 0) && isblank(coremask[i - 1]))
565 for (i = i - 1; i >= 0 && idx < RTE_MAX_LCORE; i--) {
567 if (isxdigit(c) == 0) {
568 /* invalid characters */
572 for (j = 0; j < BITS_PER_HEX && idx < RTE_MAX_LCORE; j++, idx++)
574 if ((1 << j) & val) {
581 if (coremask[i] != '0')
589 eal_parse_service_corelist(const char *corelist)
591 struct rte_config *cfg = rte_eal_get_configuration();
596 uint32_t taken_lcore_count = 0;
598 if (corelist == NULL)
601 /* Remove all blank characters ahead and after */
602 while (isblank(*corelist))
604 i = strlen(corelist);
605 while ((i > 0) && isblank(corelist[i - 1]))
608 /* Get list of cores */
611 while (isblank(*corelist))
613 if (*corelist == '\0')
616 idx = strtoul(corelist, &end, 10);
617 if (errno || end == NULL)
619 while (isblank(*end))
623 } else if ((*end == ',') || (*end == '\0')) {
625 if (min == RTE_MAX_LCORE)
627 for (idx = min; idx <= max; idx++) {
628 if (cfg->lcore_role[idx] != ROLE_SERVICE) {
629 /* handle master lcore already parsed */
630 uint32_t lcore = idx;
631 if (cfg->master_lcore == lcore &&
632 master_lcore_parsed) {
634 "Error: lcore %u is master lcore, cannot use as service core\n",
638 if (cfg->lcore_role[idx] == ROLE_RTE)
641 lcore_config[idx].core_role =
650 } while (*end != '\0');
655 if (core_parsed && taken_lcore_count != count) {
656 RTE_LOG(WARNING, EAL,
657 "Not all service cores were in the coremask. "
658 "Please ensure -c or -l includes service cores\n");
665 eal_parse_corelist(const char *corelist, int *cores)
672 for (idx = 0; idx < RTE_MAX_LCORE; idx++)
675 /* Remove all blank characters ahead */
676 while (isblank(*corelist))
679 /* Get list of cores */
682 while (isblank(*corelist))
684 if (*corelist == '\0')
687 idx = strtol(corelist, &end, 10);
688 if (errno || end == NULL)
690 if (idx < 0 || idx >= RTE_MAX_LCORE)
692 while (isblank(*end))
696 } else if ((*end == ',') || (*end == '\0')) {
698 if (min == RTE_MAX_LCORE)
700 for (idx = min; idx <= max; idx++) {
701 if (cores[idx] == -1) {
710 } while (*end != '\0');
717 /* Changes the lcore id of the master thread */
719 eal_parse_master_lcore(const char *arg)
722 struct rte_config *cfg = rte_eal_get_configuration();
725 cfg->master_lcore = (uint32_t) strtol(arg, &parsing_end, 0);
726 if (errno || parsing_end[0] != 0)
728 if (cfg->master_lcore >= RTE_MAX_LCORE)
730 master_lcore_parsed = 1;
732 /* ensure master core is not used as service core */
733 if (lcore_config[cfg->master_lcore].core_role == ROLE_SERVICE) {
735 "Error: Master lcore is used as a service core\n");
743 * Parse elem, the elem could be single number/range or '(' ')' group
744 * 1) A single number elem, it's just a simple digit. e.g. 9
745 * 2) A single range elem, two digits with a '-' between. e.g. 2-6
746 * 3) A group elem, combines multiple 1) or 2) with '( )'. e.g (0,2-4,6)
747 * Within group elem, '-' used for a range separator;
748 * ',' used for a single number.
751 eal_parse_set(const char *input, rte_cpuset_t *set)
754 const char *str = input;
760 while (isblank(*str))
763 /* only digit or left bracket is qualify for start point */
764 if ((!isdigit(*str) && *str != '(') || *str == '\0')
767 /* process single number or single range of number */
770 idx = strtoul(str, &end, 10);
771 if (errno || end == NULL || idx >= CPU_SETSIZE)
774 while (isblank(*end))
780 /* process single <number>-<number> */
782 while (isblank(*end))
788 idx = strtoul(end, &end, 10);
789 if (errno || end == NULL || idx >= CPU_SETSIZE)
792 while (isblank(*end))
794 if (*end != ',' && *end != '\0')
798 if (*end != ',' && *end != '\0' &&
802 for (idx = RTE_MIN(min, max);
803 idx <= RTE_MAX(min, max); idx++)
810 /* process set within bracket */
812 while (isblank(*str))
820 /* go ahead to the first digit */
821 while (isblank(*str))
826 /* get the digit value */
828 idx = strtoul(str, &end, 10);
829 if (errno || end == NULL || idx >= CPU_SETSIZE)
832 /* go ahead to separator '-',',' and ')' */
833 while (isblank(*end))
836 if (min == RTE_MAX_LCORE)
838 else /* avoid continuous '-' */
840 } else if ((*end == ',') || (*end == ')')) {
842 if (min == RTE_MAX_LCORE)
844 for (idx = RTE_MIN(min, max);
845 idx <= RTE_MAX(min, max); idx++)
853 } while (*end != '\0' && *end != ')');
856 * to avoid failure that tail blank makes end character check fail
857 * in eal_parse_lcores( )
859 while (isblank(*str))
866 check_cpuset(rte_cpuset_t *set)
870 for (idx = 0; idx < CPU_SETSIZE; idx++) {
871 if (!CPU_ISSET(idx, set))
874 if (eal_cpu_detected(idx) == 0) {
875 RTE_LOG(ERR, EAL, "core %u "
876 "unavailable\n", idx);
884 * The format pattern: --lcores='<lcores[@cpus]>[<,lcores[@cpus]>...]'
885 * lcores, cpus could be a single digit/range or a group.
886 * '(' and ')' are necessary if it's a group.
887 * If not supply '@cpus', the value of cpus uses the same as lcores.
888 * e.g. '1,2@(5-7),(3-5)@(0,2),(0,6),7-8' means start 9 EAL thread as below
889 * lcore 0 runs on cpuset 0x41 (cpu 0,6)
890 * lcore 1 runs on cpuset 0x2 (cpu 1)
891 * lcore 2 runs on cpuset 0xe0 (cpu 5,6,7)
892 * lcore 3,4,5 runs on cpuset 0x5 (cpu 0,2)
893 * lcore 6 runs on cpuset 0x41 (cpu 0,6)
894 * lcore 7 runs on cpuset 0x80 (cpu 7)
895 * lcore 8 runs on cpuset 0x100 (cpu 8)
898 eal_parse_lcores(const char *lcores)
900 struct rte_config *cfg = rte_eal_get_configuration();
901 rte_cpuset_t lcore_set;
902 unsigned int set_count;
905 const char *lcore_start = NULL;
906 const char *end = NULL;
915 /* Remove all blank characters ahead and after */
916 while (isblank(*lcores))
921 /* Reset lcore config */
922 for (idx = 0; idx < RTE_MAX_LCORE; idx++) {
923 cfg->lcore_role[idx] = ROLE_OFF;
924 lcore_config[idx].core_index = -1;
925 CPU_ZERO(&lcore_config[idx].cpuset);
928 /* Get list of cores */
930 while (isblank(*lcores))
937 /* record lcore_set start point */
938 lcore_start = lcores;
940 /* go across a complete bracket */
941 if (*lcore_start == '(') {
942 lcores += strcspn(lcores, ")");
943 if (*lcores++ == '\0')
947 /* scan the separator '@', ','(next) or '\0'(finish) */
948 lcores += strcspn(lcores, "@,");
950 if (*lcores == '@') {
951 /* explicit assign cpuset and update the end cursor */
952 offset = eal_parse_set(lcores + 1, &cpuset);
955 end = lcores + 1 + offset;
956 } else { /* ',' or '\0' */
957 /* haven't given cpuset, current loop done */
960 /* go back to check <number>-<number> */
961 offset = strcspn(lcore_start, "(-");
962 if (offset < (end - lcore_start) &&
963 *(lcore_start + offset) != '(')
967 if (*end != ',' && *end != '\0')
970 /* parse lcore_set from start point */
971 if (eal_parse_set(lcore_start, &lcore_set) < 0)
974 /* without '@', by default using lcore_set as cpuset */
976 rte_memcpy(&cpuset, &lcore_set, sizeof(cpuset));
978 set_count = CPU_COUNT(&lcore_set);
979 /* start to update lcore_set */
980 for (idx = 0; idx < RTE_MAX_LCORE; idx++) {
981 if (!CPU_ISSET(idx, &lcore_set))
985 if (cfg->lcore_role[idx] != ROLE_RTE) {
986 lcore_config[idx].core_index = count;
987 cfg->lcore_role[idx] = ROLE_RTE;
993 CPU_SET(idx, &cpuset);
996 if (check_cpuset(&cpuset) < 0)
998 rte_memcpy(&lcore_config[idx].cpuset, &cpuset,
999 sizeof(rte_cpuset_t));
1002 /* some cores from the lcore_set can't be handled by EAL */
1007 } while (*end != '\0');
1012 cfg->lcore_count = count;
1020 #ifndef RTE_EXEC_ENV_WINDOWS
1022 eal_parse_syslog(const char *facility, struct internal_config *conf)
1025 static const struct {
1029 { "auth", LOG_AUTH },
1030 { "cron", LOG_CRON },
1031 { "daemon", LOG_DAEMON },
1033 { "kern", LOG_KERN },
1035 { "mail", LOG_MAIL },
1036 { "news", LOG_NEWS },
1037 { "syslog", LOG_SYSLOG },
1038 { "user", LOG_USER },
1039 { "uucp", LOG_UUCP },
1040 { "local0", LOG_LOCAL0 },
1041 { "local1", LOG_LOCAL1 },
1042 { "local2", LOG_LOCAL2 },
1043 { "local3", LOG_LOCAL3 },
1044 { "local4", LOG_LOCAL4 },
1045 { "local5", LOG_LOCAL5 },
1046 { "local6", LOG_LOCAL6 },
1047 { "local7", LOG_LOCAL7 },
1051 for (i = 0; map[i].name; i++) {
1052 if (!strcmp(facility, map[i].name)) {
1053 conf->syslog_facility = map[i].value;
1062 eal_parse_log_priority(const char *level)
1064 static const char * const levels[] = {
1065 [RTE_LOG_EMERG] = "emergency",
1066 [RTE_LOG_ALERT] = "alert",
1067 [RTE_LOG_CRIT] = "critical",
1068 [RTE_LOG_ERR] = "error",
1069 [RTE_LOG_WARNING] = "warning",
1070 [RTE_LOG_NOTICE] = "notice",
1071 [RTE_LOG_INFO] = "info",
1072 [RTE_LOG_DEBUG] = "debug",
1074 size_t len = strlen(level);
1082 /* look for named values, skip 0 which is not a valid level */
1083 for (i = 1; i < RTE_DIM(levels); i++) {
1084 if (strncmp(levels[i], level, len) == 0)
1088 /* not a string, maybe it is numeric */
1090 tmp = strtoul(level, &end, 0);
1092 /* check for errors */
1093 if (errno != 0 || end == NULL || *end != '\0' ||
1101 eal_parse_log_level(const char *arg)
1103 const char *pattern = NULL;
1104 const char *regex = NULL;
1112 if ((level = strchr(str, ','))) {
1115 } else if ((level = strchr(str, ':'))) {
1122 priority = eal_parse_log_priority(level);
1124 fprintf(stderr, "invalid log priority: %s\n", level);
1129 if (rte_log_set_level_regexp(regex, priority) < 0) {
1130 fprintf(stderr, "cannot set log level %s,%d\n",
1134 if (rte_log_save_regexp(regex, priority) < 0)
1136 } else if (pattern) {
1137 if (rte_log_set_level_pattern(pattern, priority) < 0) {
1138 fprintf(stderr, "cannot set log level %s:%d\n",
1142 if (rte_log_save_pattern(pattern, priority) < 0)
1145 rte_log_set_global_level(priority);
1156 static enum rte_proc_type_t
1157 eal_parse_proc_type(const char *arg)
1159 if (strncasecmp(arg, "primary", sizeof("primary")) == 0)
1160 return RTE_PROC_PRIMARY;
1161 if (strncasecmp(arg, "secondary", sizeof("secondary")) == 0)
1162 return RTE_PROC_SECONDARY;
1163 if (strncasecmp(arg, "auto", sizeof("auto")) == 0)
1164 return RTE_PROC_AUTO;
1166 return RTE_PROC_INVALID;
1170 eal_parse_iova_mode(const char *name)
1177 if (!strcmp("pa", name))
1179 else if (!strcmp("va", name))
1184 internal_config.iova_mode = mode;
1189 eal_parse_base_virtaddr(const char *arg)
1195 addr = strtoull(arg, &end, 16);
1197 /* check for errors */
1198 if ((errno != 0) || (arg[0] == '\0') || end == NULL || (*end != '\0'))
1201 /* make sure we don't exceed 32-bit boundary on 32-bit target */
1203 if (addr >= UINTPTR_MAX)
1207 /* align the addr on 16M boundary, 16MB is the minimum huge page
1208 * size on IBM Power architecture. If the addr is aligned to 16MB,
1209 * it can align to 2MB for x86. So this alignment can also be used
1210 * on x86 and other architectures.
1212 internal_config.base_virtaddr =
1213 RTE_PTR_ALIGN_CEIL((uintptr_t)addr, (size_t)RTE_PGSIZE_16M);
1218 /* caller is responsible for freeing the returned string */
1220 available_cores(void)
1228 /* find the first available cpu */
1229 for (idx = 0; idx < RTE_MAX_LCORE; idx++) {
1230 if (eal_cpu_detected(idx) == 0)
1234 if (idx >= RTE_MAX_LCORE)
1237 /* first sequence */
1238 if (asprintf(&str, "%d", idx) < 0)
1243 for (idx++ ; idx < RTE_MAX_LCORE; idx++) {
1244 if (eal_cpu_detected(idx) == 0)
1247 if (idx == previous + 1) {
1253 /* finish current sequence */
1255 if (asprintf(&tmp, "%s-%d", str, previous) < 0) {
1264 if (asprintf(&tmp, "%s,%d", str, idx) < 0) {
1274 /* finish last sequence */
1276 if (asprintf(&tmp, "%s-%d", str, previous) < 0) {
1288 eal_parse_common_option(int opt, const char *optarg,
1289 struct internal_config *conf)
1299 if (eal_option_device_add(RTE_DEVTYPE_BLACKLISTED_PCI,
1309 if (eal_option_device_add(RTE_DEVTYPE_WHITELISTED_PCI,
1317 int lcore_indexes[RTE_MAX_LCORE];
1319 if (eal_service_cores_parsed())
1320 RTE_LOG(WARNING, EAL,
1321 "Service cores parsed before dataplane cores. Please ensure -c is before -s or -S\n");
1322 if (eal_parse_coremask(optarg, lcore_indexes) < 0) {
1323 RTE_LOG(ERR, EAL, "invalid coremask syntax\n");
1326 if (update_lcore_config(lcore_indexes) < 0) {
1327 char *available = available_cores();
1330 "invalid coremask, please check specified cores are part of %s\n",
1337 RTE_LOG(ERR, EAL, "Option -c is ignored, because (%s) is set!\n",
1338 (core_parsed == LCORE_OPT_LST) ? "-l" :
1339 (core_parsed == LCORE_OPT_MAP) ? "--lcore" :
1344 core_parsed = LCORE_OPT_MSK;
1349 int lcore_indexes[RTE_MAX_LCORE];
1351 if (eal_service_cores_parsed())
1352 RTE_LOG(WARNING, EAL,
1353 "Service cores parsed before dataplane cores. Please ensure -l is before -s or -S\n");
1355 if (eal_parse_corelist(optarg, lcore_indexes) < 0) {
1356 RTE_LOG(ERR, EAL, "invalid core list syntax\n");
1359 if (update_lcore_config(lcore_indexes) < 0) {
1360 char *available = available_cores();
1363 "invalid core list, please check specified cores are part of %s\n",
1370 RTE_LOG(ERR, EAL, "Option -l is ignored, because (%s) is set!\n",
1371 (core_parsed == LCORE_OPT_MSK) ? "-c" :
1372 (core_parsed == LCORE_OPT_MAP) ? "--lcore" :
1377 core_parsed = LCORE_OPT_LST;
1380 /* service coremask */
1382 if (eal_parse_service_coremask(optarg) < 0) {
1383 RTE_LOG(ERR, EAL, "invalid service coremask\n");
1387 /* service corelist */
1389 if (eal_parse_service_corelist(optarg) < 0) {
1390 RTE_LOG(ERR, EAL, "invalid service core list\n");
1394 /* size of memory */
1396 conf->memory = atoi(optarg);
1397 conf->memory *= 1024ULL;
1398 conf->memory *= 1024ULL;
1401 /* force number of channels */
1403 conf->force_nchannel = atoi(optarg);
1404 if (conf->force_nchannel == 0) {
1405 RTE_LOG(ERR, EAL, "invalid channel number\n");
1409 /* force number of ranks */
1411 conf->force_nrank = atoi(optarg);
1412 if (conf->force_nrank == 0 ||
1413 conf->force_nrank > 16) {
1414 RTE_LOG(ERR, EAL, "invalid rank number\n");
1418 /* force loading of external driver */
1420 if (eal_plugin_add(optarg) == -1)
1424 /* since message is explicitly requested by user, we
1425 * write message at highest log level so it can always
1427 * even if info or warning messages are disabled */
1428 RTE_LOG(CRIT, EAL, "RTE Version: '%s'\n", rte_version());
1432 case OPT_HUGE_UNLINK_NUM:
1433 conf->hugepage_unlink = 1;
1436 case OPT_NO_HUGE_NUM:
1437 conf->no_hugetlbfs = 1;
1438 /* no-huge is legacy mem */
1439 conf->legacy_mem = 1;
1442 case OPT_NO_PCI_NUM:
1446 case OPT_NO_HPET_NUM:
1450 case OPT_VMWARE_TSC_MAP_NUM:
1451 conf->vmware_tsc_map = 1;
1454 case OPT_NO_SHCONF_NUM:
1455 conf->no_shconf = 1;
1458 case OPT_IN_MEMORY_NUM:
1459 conf->in_memory = 1;
1460 /* in-memory is a superset of noshconf and huge-unlink */
1461 conf->no_shconf = 1;
1462 conf->hugepage_unlink = 1;
1465 case OPT_PROC_TYPE_NUM:
1466 conf->process_type = eal_parse_proc_type(optarg);
1469 case OPT_MASTER_LCORE_NUM:
1470 if (eal_parse_master_lcore(optarg) < 0) {
1471 RTE_LOG(ERR, EAL, "invalid parameter for --"
1472 OPT_MASTER_LCORE "\n");
1478 if (eal_option_device_add(RTE_DEVTYPE_VIRTUAL,
1484 #ifndef RTE_EXEC_ENV_WINDOWS
1485 case OPT_SYSLOG_NUM:
1486 if (eal_parse_syslog(optarg, conf) < 0) {
1487 RTE_LOG(ERR, EAL, "invalid parameters for --"
1494 case OPT_LOG_LEVEL_NUM: {
1495 if (eal_parse_log_level(optarg) < 0) {
1497 "invalid parameters for --"
1498 OPT_LOG_LEVEL "\n");
1504 #ifndef RTE_EXEC_ENV_WINDOWS
1505 case OPT_TRACE_NUM: {
1506 if (eal_trace_args_save(optarg) < 0) {
1507 RTE_LOG(ERR, EAL, "invalid parameters for --"
1514 case OPT_TRACE_DIR_NUM: {
1515 if (eal_trace_dir_args_save(optarg) < 0) {
1516 RTE_LOG(ERR, EAL, "invalid parameters for --"
1517 OPT_TRACE_DIR "\n");
1523 case OPT_TRACE_BUF_SIZE_NUM: {
1524 if (eal_trace_bufsz_args_save(optarg) < 0) {
1525 RTE_LOG(ERR, EAL, "invalid parameters for --"
1526 OPT_TRACE_BUF_SIZE "\n");
1532 case OPT_TRACE_MODE_NUM: {
1533 if (eal_trace_mode_args_save(optarg) < 0) {
1534 RTE_LOG(ERR, EAL, "invalid parameters for --"
1535 OPT_TRACE_MODE "\n");
1540 #endif /* !RTE_EXEC_ENV_WINDOWS */
1542 case OPT_LCORES_NUM:
1543 if (eal_parse_lcores(optarg) < 0) {
1544 RTE_LOG(ERR, EAL, "invalid parameter for --"
1550 RTE_LOG(ERR, EAL, "Option --lcore is ignored, because (%s) is set!\n",
1551 (core_parsed == LCORE_OPT_LST) ? "-l" :
1552 (core_parsed == LCORE_OPT_MSK) ? "-c" :
1557 core_parsed = LCORE_OPT_MAP;
1559 case OPT_LEGACY_MEM_NUM:
1560 conf->legacy_mem = 1;
1562 case OPT_SINGLE_FILE_SEGMENTS_NUM:
1563 conf->single_file_segments = 1;
1565 case OPT_IOVA_MODE_NUM:
1566 if (eal_parse_iova_mode(optarg) < 0) {
1567 RTE_LOG(ERR, EAL, "invalid parameters for --"
1568 OPT_IOVA_MODE "\n");
1572 case OPT_BASE_VIRTADDR_NUM:
1573 if (eal_parse_base_virtaddr(optarg) < 0) {
1574 RTE_LOG(ERR, EAL, "invalid parameter for --"
1575 OPT_BASE_VIRTADDR "\n");
1579 case OPT_TELEMETRY_NUM:
1581 case OPT_NO_TELEMETRY_NUM:
1582 conf->no_telemetry = 1;
1585 /* don't know what to do, leave this to caller */
1593 RTE_LOG(ERR, EAL, "Options blacklist (-b) and whitelist (-w) "
1594 "cannot be used at the same time\n");
1599 eal_auto_detect_cores(struct rte_config *cfg)
1601 unsigned int lcore_id;
1602 unsigned int removed = 0;
1603 rte_cpuset_t affinity_set;
1605 if (pthread_getaffinity_np(pthread_self(), sizeof(rte_cpuset_t),
1607 CPU_ZERO(&affinity_set);
1609 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {
1610 if (cfg->lcore_role[lcore_id] == ROLE_RTE &&
1611 !CPU_ISSET(lcore_id, &affinity_set)) {
1612 cfg->lcore_role[lcore_id] = ROLE_OFF;
1617 cfg->lcore_count -= removed;
1621 compute_ctrl_threads_cpuset(struct internal_config *internal_cfg)
1623 rte_cpuset_t *cpuset = &internal_cfg->ctrl_cpuset;
1624 rte_cpuset_t default_set;
1625 unsigned int lcore_id;
1627 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {
1628 if (rte_lcore_has_role(lcore_id, ROLE_OFF))
1630 RTE_CPU_OR(cpuset, cpuset, &lcore_config[lcore_id].cpuset);
1632 RTE_CPU_NOT(cpuset, cpuset);
1634 if (pthread_getaffinity_np(pthread_self(), sizeof(rte_cpuset_t),
1636 CPU_ZERO(&default_set);
1638 RTE_CPU_AND(cpuset, cpuset, &default_set);
1640 /* if no remaining cpu, use master lcore cpu affinity */
1641 if (!CPU_COUNT(cpuset)) {
1642 memcpy(cpuset, &lcore_config[rte_get_master_lcore()].cpuset,
1648 eal_cleanup_config(struct internal_config *internal_cfg)
1650 if (internal_cfg->hugefile_prefix != NULL)
1651 free(internal_cfg->hugefile_prefix);
1652 if (internal_cfg->hugepage_dir != NULL)
1653 free(internal_cfg->hugepage_dir);
1654 if (internal_cfg->user_mbuf_pool_ops_name != NULL)
1655 free(internal_cfg->user_mbuf_pool_ops_name);
1661 eal_adjust_config(struct internal_config *internal_cfg)
1664 struct rte_config *cfg = rte_eal_get_configuration();
1667 eal_auto_detect_cores(cfg);
1669 if (internal_config.process_type == RTE_PROC_AUTO)
1670 internal_config.process_type = eal_proc_type_detect();
1672 /* default master lcore is the first one */
1673 if (!master_lcore_parsed) {
1674 cfg->master_lcore = rte_get_next_lcore(-1, 0, 0);
1675 if (cfg->master_lcore >= RTE_MAX_LCORE)
1677 lcore_config[cfg->master_lcore].core_role = ROLE_RTE;
1680 compute_ctrl_threads_cpuset(internal_cfg);
1682 /* if no memory amounts were requested, this will result in 0 and
1683 * will be overridden later, right after eal_hugepage_info_init() */
1684 for (i = 0; i < RTE_MAX_NUMA_NODES; i++)
1685 internal_cfg->memory += internal_cfg->socket_mem[i];
1691 eal_check_common_options(struct internal_config *internal_cfg)
1693 struct rte_config *cfg = rte_eal_get_configuration();
1695 if (cfg->lcore_role[cfg->master_lcore] != ROLE_RTE) {
1696 RTE_LOG(ERR, EAL, "Master lcore is not enabled for DPDK\n");
1700 if (internal_cfg->process_type == RTE_PROC_INVALID) {
1701 RTE_LOG(ERR, EAL, "Invalid process type specified\n");
1704 if (internal_cfg->hugefile_prefix != NULL &&
1705 strlen(internal_cfg->hugefile_prefix) < 1) {
1706 RTE_LOG(ERR, EAL, "Invalid length of --" OPT_FILE_PREFIX " option\n");
1709 if (internal_cfg->hugepage_dir != NULL &&
1710 strlen(internal_cfg->hugepage_dir) < 1) {
1711 RTE_LOG(ERR, EAL, "Invalid length of --" OPT_HUGE_DIR" option\n");
1714 if (internal_cfg->user_mbuf_pool_ops_name != NULL &&
1715 strlen(internal_cfg->user_mbuf_pool_ops_name) < 1) {
1716 RTE_LOG(ERR, EAL, "Invalid length of --" OPT_MBUF_POOL_OPS_NAME" option\n");
1719 if (index(eal_get_hugefile_prefix(), '%') != NULL) {
1720 RTE_LOG(ERR, EAL, "Invalid char, '%%', in --"OPT_FILE_PREFIX" "
1724 if (mem_parsed && internal_cfg->force_sockets == 1) {
1725 RTE_LOG(ERR, EAL, "Options -m and --"OPT_SOCKET_MEM" cannot "
1726 "be specified at the same time\n");
1729 if (internal_cfg->no_hugetlbfs && internal_cfg->force_sockets == 1) {
1730 RTE_LOG(ERR, EAL, "Option --"OPT_SOCKET_MEM" cannot "
1731 "be specified together with --"OPT_NO_HUGE"\n");
1734 if (internal_cfg->no_hugetlbfs && internal_cfg->hugepage_unlink &&
1735 !internal_cfg->in_memory) {
1736 RTE_LOG(ERR, EAL, "Option --"OPT_HUGE_UNLINK" cannot "
1737 "be specified together with --"OPT_NO_HUGE"\n");
1740 if (internal_config.force_socket_limits && internal_config.legacy_mem) {
1741 RTE_LOG(ERR, EAL, "Option --"OPT_SOCKET_LIMIT
1742 " is only supported in non-legacy memory mode\n");
1744 if (internal_cfg->single_file_segments &&
1745 internal_cfg->hugepage_unlink &&
1746 !internal_cfg->in_memory) {
1747 RTE_LOG(ERR, EAL, "Option --"OPT_SINGLE_FILE_SEGMENTS" is "
1748 "not compatible with --"OPT_HUGE_UNLINK"\n");
1751 if (internal_cfg->legacy_mem &&
1752 internal_cfg->in_memory) {
1753 RTE_LOG(ERR, EAL, "Option --"OPT_LEGACY_MEM" is not compatible "
1754 "with --"OPT_IN_MEMORY"\n");
1757 if (internal_cfg->legacy_mem && internal_cfg->match_allocations) {
1758 RTE_LOG(ERR, EAL, "Option --"OPT_LEGACY_MEM" is not compatible "
1759 "with --"OPT_MATCH_ALLOCATIONS"\n");
1762 if (internal_cfg->no_hugetlbfs && internal_cfg->match_allocations) {
1763 RTE_LOG(ERR, EAL, "Option --"OPT_NO_HUGE" is not compatible "
1764 "with --"OPT_MATCH_ALLOCATIONS"\n");
1767 if (internal_cfg->legacy_mem && internal_cfg->memory == 0) {
1768 RTE_LOG(NOTICE, EAL, "Static memory layout is selected, "
1769 "amount of reserved memory can be adjusted with "
1770 "-m or --"OPT_SOCKET_MEM"\n");
1777 eal_common_usage(void)
1779 printf("[options]\n\n"
1780 "EAL common options:\n"
1781 " -c COREMASK Hexadecimal bitmask of cores to run on\n"
1782 " -l CORELIST List of cores to run on\n"
1783 " The argument format is <c1>[-c2][,c3[-c4],...]\n"
1784 " where c1, c2, etc are core indexes between 0 and %d\n"
1785 " --"OPT_LCORES" COREMAP Map lcore set to physical cpu set\n"
1786 " The argument format is\n"
1787 " '<lcores[@cpus]>[<,lcores[@cpus]>...]'\n"
1788 " lcores and cpus list are grouped by '(' and ')'\n"
1789 " Within the group, '-' is used for range separator,\n"
1790 " ',' is used for single number separator.\n"
1791 " '( )' can be omitted for single element group,\n"
1792 " '@' can be omitted if cpus and lcores have the same value\n"
1793 " -s SERVICE COREMASK Hexadecimal bitmask of cores to be used as service cores\n"
1794 " --"OPT_MASTER_LCORE" ID Core ID that is used as master\n"
1795 " --"OPT_MBUF_POOL_OPS_NAME" Pool ops name for mbuf to use\n"
1796 " -n CHANNELS Number of memory channels\n"
1797 " -m MB Memory to allocate (see also --"OPT_SOCKET_MEM")\n"
1798 " -r RANKS Force number of memory ranks (don't detect)\n"
1799 " -b, --"OPT_PCI_BLACKLIST" Add a PCI device in black list.\n"
1800 " Prevent EAL from using this PCI device. The argument\n"
1801 " format is <domain:bus:devid.func>.\n"
1802 " -w, --"OPT_PCI_WHITELIST" Add a PCI device in white list.\n"
1803 " Only use the specified PCI devices. The argument format\n"
1804 " is <[domain:]bus:devid.func>. This option can be present\n"
1805 " several times (once per device).\n"
1806 " [NOTE: PCI whitelist cannot be used with -b option]\n"
1807 " --"OPT_VDEV" Add a virtual device.\n"
1808 " The argument format is <driver><id>[,key=val,...]\n"
1809 " (ex: --vdev=net_pcap0,iface=eth2).\n"
1810 " --"OPT_IOVA_MODE" Set IOVA mode. 'pa' for IOVA_PA\n"
1811 " 'va' for IOVA_VA\n"
1812 " -d LIB.so|DIR Add a driver or driver directory\n"
1813 " (can be used multiple times)\n"
1814 " --"OPT_VMWARE_TSC_MAP" Use VMware TSC map instead of native RDTSC\n"
1815 " --"OPT_PROC_TYPE" Type of this process (primary|secondary|auto)\n"
1816 #ifndef RTE_EXEC_ENV_WINDOWS
1817 " --"OPT_SYSLOG" Set syslog facility\n"
1819 " --"OPT_LOG_LEVEL"=<int> Set global log level\n"
1820 " --"OPT_LOG_LEVEL"=<type-match>:<int>\n"
1821 " Set specific log level\n"
1822 #ifndef RTE_EXEC_ENV_WINDOWS
1823 " --"OPT_TRACE"=<regex-match>\n"
1824 " Enable trace based on regular expression trace name.\n"
1825 " By default, the trace is disabled.\n"
1826 " User must specify this option to enable trace.\n"
1827 " --"OPT_TRACE_DIR"=<directory path>\n"
1828 " Specify trace directory for trace output.\n"
1829 " By default, trace output will created at\n"
1830 " $HOME directory and parameter must be\n"
1831 " specified once only.\n"
1832 " --"OPT_TRACE_BUF_SIZE"=<int>\n"
1833 " Specify maximum size of allocated memory\n"
1834 " for trace output for each thread. Valid\n"
1835 " unit can be either 'B|K|M' for 'Bytes',\n"
1836 " 'KBytes' and 'MBytes' respectively.\n"
1837 " Default is 1MB and parameter must be\n"
1838 " specified once only.\n"
1839 " --"OPT_TRACE_MODE"=<o[verwrite] | d[iscard]>\n"
1840 " Specify the mode of update of trace\n"
1841 " output file. Either update on a file can\n"
1842 " be wrapped or discarded when file size\n"
1843 " reaches its maximum limit.\n"
1844 " Default mode is 'overwrite' and parameter\n"
1845 " must be specified once only.\n"
1846 #endif /* !RTE_EXEC_ENV_WINDOWS */
1847 " -v Display version information on startup\n"
1848 " -h, --help This help\n"
1849 " --"OPT_IN_MEMORY" Operate entirely in memory. This will\n"
1850 " disable secondary process support\n"
1851 " --"OPT_BASE_VIRTADDR" Base virtual address\n"
1852 " --"OPT_TELEMETRY" Enable telemetry support (on by default)\n"
1853 " --"OPT_NO_TELEMETRY" Disable telemetry support\n"
1854 "\nEAL options for DEBUG use only:\n"
1855 " --"OPT_HUGE_UNLINK" Unlink hugepage files after init\n"
1856 " --"OPT_NO_HUGE" Use malloc instead of hugetlbfs\n"
1857 " --"OPT_NO_PCI" Disable PCI\n"
1858 " --"OPT_NO_HPET" Disable HPET\n"
1859 " --"OPT_NO_SHCONF" No shared config (mmap'd files)\n"
1860 "\n", RTE_MAX_LCORE);