1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014 6WIND S.A.
13 /* long options mapped to a short option */
14 #define OPT_HELP "help"
16 #define OPT_PCI_BLACKLIST "pci-blacklist"
17 OPT_PCI_BLACKLIST_NUM = 'b',
18 #define OPT_PCI_WHITELIST "pci-whitelist"
19 OPT_PCI_WHITELIST_NUM = 'w',
21 /* first long only option value must be >= 256, so that we won't
22 * conflict with short options */
23 OPT_LONG_MIN_NUM = 256,
24 #define OPT_BASE_VIRTADDR "base-virtaddr"
25 OPT_BASE_VIRTADDR_NUM,
26 #define OPT_CREATE_UIO_DEV "create-uio-dev"
27 OPT_CREATE_UIO_DEV_NUM,
28 #define OPT_FILE_PREFIX "file-prefix"
30 #define OPT_HUGE_DIR "huge-dir"
32 #define OPT_HUGE_UNLINK "huge-unlink"
34 #define OPT_LCORES "lcores"
36 #define OPT_LOG_LEVEL "log-level"
38 #define OPT_TRACE "trace"
40 #define OPT_TRACE_DIR "trace-dir"
42 #define OPT_TRACE_BUF_SIZE "trace-bufsz"
43 OPT_TRACE_BUF_SIZE_NUM,
44 #define OPT_TRACE_MODE "trace-mode"
46 #define OPT_MASTER_LCORE "master-lcore"
48 #define OPT_MBUF_POOL_OPS_NAME "mbuf-pool-ops-name"
49 OPT_MBUF_POOL_OPS_NAME_NUM,
50 #define OPT_PROC_TYPE "proc-type"
52 #define OPT_NO_HPET "no-hpet"
54 #define OPT_NO_HUGE "no-huge"
56 #define OPT_NO_PCI "no-pci"
58 #define OPT_NO_SHCONF "no-shconf"
60 #define OPT_IN_MEMORY "in-memory"
62 #define OPT_SOCKET_MEM "socket-mem"
64 #define OPT_SOCKET_LIMIT "socket-limit"
66 #define OPT_SYSLOG "syslog"
68 #define OPT_VDEV "vdev"
70 #define OPT_VFIO_INTR "vfio-intr"
72 #define OPT_VFIO_VF_TOKEN "vfio-vf-token"
73 OPT_VFIO_VF_TOKEN_NUM,
74 #define OPT_VMWARE_TSC_MAP "vmware-tsc-map"
75 OPT_VMWARE_TSC_MAP_NUM,
76 #define OPT_LEGACY_MEM "legacy-mem"
78 #define OPT_SINGLE_FILE_SEGMENTS "single-file-segments"
79 OPT_SINGLE_FILE_SEGMENTS_NUM,
80 #define OPT_IOVA_MODE "iova-mode"
82 #define OPT_MATCH_ALLOCATIONS "match-allocations"
83 OPT_MATCH_ALLOCATIONS_NUM,
84 #define OPT_TELEMETRY "telemetry"
86 #define OPT_NO_TELEMETRY "no-telemetry"
88 #define OPT_FORCE_MAX_SIMD_BITWIDTH "force-max-simd-bitwidth"
89 OPT_FORCE_MAX_SIMD_BITWIDTH_NUM,
93 extern const char eal_short_options[];
94 extern const struct option eal_long_options[];
96 int eal_parse_common_option(int opt, const char *argv,
97 struct internal_config *conf);
98 int eal_option_device_parse(void);
99 int eal_adjust_config(struct internal_config *internal_cfg);
100 int eal_cleanup_config(struct internal_config *internal_cfg);
101 int eal_check_common_options(struct internal_config *internal_cfg);
102 void eal_common_usage(void);
103 enum rte_proc_type_t eal_proc_type_detect(void);
104 int eal_plugins_init(void);
105 int eal_save_args(int argc, char **argv);
106 int handle_eal_info_request(const char *cmd, const char *params __rte_unused,
107 struct rte_tel_data *d);
109 #endif /* EAL_OPTIONS_H */