]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/lib/librte_eal/common/eal_options.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_eal / common / eal_options.h
CommitLineData
11fdf7f2
TL
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014 6WIND S.A.
7c673cae
FG
3 */
4
5#ifndef EAL_OPTIONS_H
6#define EAL_OPTIONS_H
7
9f95a23c
TL
8#include "getopt.h"
9
7c673cae
FG
10enum {
11 /* long options mapped to a short option */
12#define OPT_HELP "help"
13 OPT_HELP_NUM = 'h',
14#define OPT_PCI_BLACKLIST "pci-blacklist"
15 OPT_PCI_BLACKLIST_NUM = 'b',
16#define OPT_PCI_WHITELIST "pci-whitelist"
17 OPT_PCI_WHITELIST_NUM = 'w',
18
19 /* first long only option value must be >= 256, so that we won't
20 * conflict with short options */
21 OPT_LONG_MIN_NUM = 256,
22#define OPT_BASE_VIRTADDR "base-virtaddr"
23 OPT_BASE_VIRTADDR_NUM,
24#define OPT_CREATE_UIO_DEV "create-uio-dev"
25 OPT_CREATE_UIO_DEV_NUM,
26#define OPT_FILE_PREFIX "file-prefix"
27 OPT_FILE_PREFIX_NUM,
28#define OPT_HUGE_DIR "huge-dir"
29 OPT_HUGE_DIR_NUM,
30#define OPT_HUGE_UNLINK "huge-unlink"
31 OPT_HUGE_UNLINK_NUM,
32#define OPT_LCORES "lcores"
33 OPT_LCORES_NUM,
34#define OPT_LOG_LEVEL "log-level"
35 OPT_LOG_LEVEL_NUM,
36#define OPT_MASTER_LCORE "master-lcore"
37 OPT_MASTER_LCORE_NUM,
11fdf7f2
TL
38#define OPT_MBUF_POOL_OPS_NAME "mbuf-pool-ops-name"
39 OPT_MBUF_POOL_OPS_NAME_NUM,
7c673cae
FG
40#define OPT_PROC_TYPE "proc-type"
41 OPT_PROC_TYPE_NUM,
42#define OPT_NO_HPET "no-hpet"
43 OPT_NO_HPET_NUM,
44#define OPT_NO_HUGE "no-huge"
45 OPT_NO_HUGE_NUM,
46#define OPT_NO_PCI "no-pci"
47 OPT_NO_PCI_NUM,
48#define OPT_NO_SHCONF "no-shconf"
49 OPT_NO_SHCONF_NUM,
11fdf7f2
TL
50#define OPT_IN_MEMORY "in-memory"
51 OPT_IN_MEMORY_NUM,
7c673cae
FG
52#define OPT_SOCKET_MEM "socket-mem"
53 OPT_SOCKET_MEM_NUM,
11fdf7f2
TL
54#define OPT_SOCKET_LIMIT "socket-limit"
55 OPT_SOCKET_LIMIT_NUM,
7c673cae
FG
56#define OPT_SYSLOG "syslog"
57 OPT_SYSLOG_NUM,
58#define OPT_VDEV "vdev"
59 OPT_VDEV_NUM,
60#define OPT_VFIO_INTR "vfio-intr"
61 OPT_VFIO_INTR_NUM,
62#define OPT_VMWARE_TSC_MAP "vmware-tsc-map"
63 OPT_VMWARE_TSC_MAP_NUM,
11fdf7f2
TL
64#define OPT_LEGACY_MEM "legacy-mem"
65 OPT_LEGACY_MEM_NUM,
66#define OPT_SINGLE_FILE_SEGMENTS "single-file-segments"
67 OPT_SINGLE_FILE_SEGMENTS_NUM,
9f95a23c
TL
68#define OPT_IOVA_MODE "iova-mode"
69 OPT_IOVA_MODE_NUM,
70#define OPT_MATCH_ALLOCATIONS "match-allocations"
71 OPT_MATCH_ALLOCATIONS_NUM,
7c673cae
FG
72 OPT_LONG_MAX_NUM
73};
74
75extern const char eal_short_options[];
76extern const struct option eal_long_options[];
77
78int eal_parse_common_option(int opt, const char *argv,
79 struct internal_config *conf);
11fdf7f2 80int eal_option_device_parse(void);
7c673cae 81int eal_adjust_config(struct internal_config *internal_cfg);
9f95a23c 82int eal_cleanup_config(struct internal_config *internal_cfg);
7c673cae
FG
83int eal_check_common_options(struct internal_config *internal_cfg);
84void eal_common_usage(void);
85enum rte_proc_type_t eal_proc_type_detect(void);
86int eal_plugins_init(void);
87
88#endif /* EAL_OPTIONS_H */