From: David Marchand Date: Mon, 22 Sep 2014 08:37:55 +0000 (+0200) Subject: eal: remove unused --use-device option X-Git-Tag: spdx-start~10399 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1ea1e7228e09e58134626a3d3e7ee47bd5126d8d;p=dpdk.git eal: remove unused --use-device option Following commit cac6d08c8bde and 4bf3fe634a4 (replace --use-device option by --pci-whitelist and --vdev), this option is not available anymore. Signed-off-by: David Marchand Acked-by: Neil Horman --- diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 2f84742f0c..ffdc441423 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -89,7 +89,6 @@ #define OPT_NO_HUGE "no-huge" #define OPT_FILE_PREFIX "file-prefix" #define OPT_SOCKET_MEM "socket-mem" -#define OPT_USE_DEVICE "use-device" #define OPT_PCI_WHITELIST "pci-whitelist" #define OPT_PCI_BLACKLIST "pci-blacklist" #define OPT_VDEV "vdev" @@ -645,12 +644,6 @@ eal_parse_args(int argc, char **argv) "FreeBSD\n"); return -1; } - else if (!strcmp(lgopts[option_index].name, OPT_USE_DEVICE)) { - printf("The --use-device option is deprecated, please use\n" - "--whitelist or --vdev instead.\n"); - eal_usage(prgname); - return -1; - } else if (!strcmp(lgopts[option_index].name, OPT_PCI_BLACKLIST)) { if (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI, optarg) < 0) { diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 38cace6b5c..633e3b8f8c 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -92,7 +92,6 @@ #define OPT_NO_HUGE "no-huge" #define OPT_FILE_PREFIX "file-prefix" #define OPT_SOCKET_MEM "socket-mem" -#define OPT_USE_DEVICE "use-device" #define OPT_PCI_WHITELIST "pci-whitelist" #define OPT_PCI_BLACKLIST "pci-blacklist" #define OPT_VDEV "vdev" @@ -880,12 +879,6 @@ eal_parse_args(int argc, char **argv) return -1; } } - else if (!strcmp(lgopts[option_index].name, OPT_USE_DEVICE)) { - printf("The --use-device option is deprecated, please use\n" - "--whitelist or --vdev instead.\n"); - eal_usage(prgname); - return -1; - } else if (!strcmp(lgopts[option_index].name, OPT_PCI_BLACKLIST)) { if (rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED_PCI, optarg) < 0) {