- #endif
- } else if (!strcmp(eal_long_options[option_index].name, OPT_HUGE_DIR)) {
- internal_config.hugepage_dir = optarg;
- } else if (!strcmp(eal_long_options[option_index].name, OPT_FILE_PREFIX)) {
- internal_config.hugefile_prefix = optarg;
- } else if (!strcmp(eal_long_options[option_index].name, OPT_SOCKET_MEM)) {
- if (eal_parse_socket_mem(optarg) < 0) {
- RTE_LOG(ERR, EAL, "invalid parameters for --"
- OPT_SOCKET_MEM "\n");
- eal_usage(prgname);
- return -1;
- }
- } else if (!strcmp(eal_long_options[option_index].name, OPT_BASE_VIRTADDR)) {
- if (eal_parse_base_virtaddr(optarg) < 0) {
- RTE_LOG(ERR, EAL, "invalid parameter for --"
- OPT_BASE_VIRTADDR "\n");
- eal_usage(prgname);
- return -1;
- }
- } else if (!strcmp(eal_long_options[option_index].name, OPT_VFIO_INTR)) {
- if (eal_parse_vfio_intr(optarg) < 0) {
- RTE_LOG(ERR, EAL, "invalid parameters for --"
- OPT_VFIO_INTR "\n");
- eal_usage(prgname);
- return -1;
- }
- } else if (!strcmp(eal_long_options[option_index].name, OPT_CREATE_UIO_DEV)) {
- internal_config.create_uio_dev = 1;
- } else {
- RTE_LOG(ERR, EAL, "Option %s is not supported "
- "on Linux\n",
- eal_long_options[option_index].name);
+ }
+ break;
+
+ case OPT_BASE_VIRTADDR_NUM:
+ if (eal_parse_base_virtaddr(optarg) < 0) {
+ RTE_LOG(ERR, EAL, "invalid parameter for --"
+ OPT_BASE_VIRTADDR "\n");
+ eal_usage(prgname);
+ return -1;
+ }
+ break;
+
+ case OPT_VFIO_INTR_NUM:
+ if (eal_parse_vfio_intr(optarg) < 0) {
+ RTE_LOG(ERR, EAL, "invalid parameters for --"
+ OPT_VFIO_INTR "\n");