From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id 761742C72 for ; Wed, 21 Jun 2017 01:36:27 +0200 (CEST) Received: by mail-wr0-f179.google.com with SMTP id y25so72321911wrd.2 for ; Tue, 20 Jun 2017 16:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=JnPfBxdaCjhDpkHCzwBRavZfgGC/jtnjHRTEey4TFAA=; b=SIc8NYXs69uGxedMusF+8T/sMXtdnbANo8wacq8Fp2T+Uas0Xeu11w865aia7gNghD zzfVpApuItF7asNO6MkSueI8InvwPbM/xDEQrp4qgN8DFtLPhuxMytACfWr5mUzQGJuq iHJyjLXxu3sZRUQFm+JKWwNVBEj+vR3FvI6VmBFvCbgQhvb1DEyAU+pksvIW/d6BFaRH Ro+gwAWRF9A9YbBwGHTlHPWtlW4va2fadNOixqg1YI11S/qrSKOP/dl5q+3ptNiYX40N mpw9Euj3TQX172+y33EA7tlkyXQOqwohU8SBx5iRNP4ivx9p2OD4aJRScH/p5bYypb2F 9sQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=JnPfBxdaCjhDpkHCzwBRavZfgGC/jtnjHRTEey4TFAA=; b=C/joLsBcqqCXaNju9YN91HdqIMpwrKsC87pRVSGCpQVJsl1KjUsbqiViliRvtoGc6A KMEhQJ2G0VvBqgQ/icWBXiE3tldOVdJJDaHhYhw0UTjl70frm28kvaTIaxbUwGiDkSrh JUcK1FExL1Xlvx1RoZHMaEq3/FLleSOJWlX9mELkSr4+pzzz9qGWyU9dEcluoS6Ii1Qc 8L3CxN18PLe/dmrbpBi/dNfOe+rQMmOWZp5kbqEWjkMvn8njdht1tqU5roqJbcdou6Kk C1ai0Ce/pwPyh8ALcfoVFN0LN0w2UbYr41w4+taKCx7CajP3yPvQ4iPAjr8ZscW23yRz iZtg== X-Gm-Message-State: AKS2vOzXBinlROC/S3ExGQFGW3Yw1wPj1bSNrnaW8lbyFKxrWpdVhG2t BkBhLAQBJ/Qi7FYFtb4= X-Received: by 10.223.133.99 with SMTP id 90mr22569427wrh.44.1498001786724; Tue, 20 Jun 2017 16:36:26 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id f45sm6463684wrf.2.2017.06.20.16.36.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 16:36:25 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Jun 2017 01:35:53 +0200 Message-Id: <49440d2922216f9e12e96540ca2b0f8a2c61cfdd.1498001626.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 19/19] eal: change whitelist / blacklist command line doc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 23:36:28 -0000 The use of these commands have evolved. It is now possible to use whitelist and blacklist on any bus. Update the source code accordingly. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_options.c | 18 +++++++++--------- lib/librte_eal/common/eal_options.h | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 075b0ea..245a276 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -86,8 +86,8 @@ eal_long_options[] = { {OPT_NO_HUGE, 0, NULL, OPT_NO_HUGE_NUM }, {OPT_NO_PCI, 0, NULL, OPT_NO_PCI_NUM }, {OPT_NO_SHCONF, 0, NULL, OPT_NO_SHCONF_NUM }, - {OPT_PCI_BLACKLIST, 1, NULL, OPT_PCI_BLACKLIST_NUM }, - {OPT_PCI_WHITELIST, 1, NULL, OPT_PCI_WHITELIST_NUM }, + {OPT_BUS_BLACKLIST, 1, NULL, OPT_BUS_BLACKLIST_NUM }, + {OPT_BUS_WHITELIST, 1, NULL, OPT_BUS_WHITELIST_NUM }, {OPT_PROC_TYPE, 1, NULL, OPT_PROC_TYPE_NUM }, {OPT_SOCKET_MEM, 1, NULL, OPT_SOCKET_MEM_NUM }, {OPT_SYSLOG, 1, NULL, OPT_SYSLOG_NUM }, @@ -1049,14 +1049,14 @@ eal_common_usage(void) " -n CHANNELS Number of memory channels\n" " -m MB Memory to allocate (see also --"OPT_SOCKET_MEM")\n" " -r RANKS Force number of memory ranks (don't detect)\n" - " -b, --"OPT_PCI_BLACKLIST" Add a PCI device in black list.\n" - " Prevent EAL from using this PCI device. The argument\n" - " format is .\n" - " -w, --"OPT_PCI_WHITELIST" Add a PCI device in white list.\n" - " Only use the specified PCI devices. The argument format\n" - " is <[domain:]bus:devid.func>. This option can be present\n" + " -b, --"OPT_BUS_BLACKLIST" Black list a device on its bus.\n" + " Prevents EAL from using this device. The argument\n" + " format depends on the bus.\n" + " -w, --"OPT_BUS_WHITELIST" White list a device on its bus.\n" + " Only use the specified devices. The argument format\n" + " depends on the bus. This option can be present\n" " several times (once per device).\n" - " [NOTE: PCI whitelist cannot be used with -b option]\n" + " [NOTE: whitelist cannot be used with -b option]\n" " --"OPT_VDEV" Add a virtual device.\n" " The argument format is [,key=val,...]\n" " (ex: --vdev=net_pcap0,iface=eth2).\n" diff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h index a881c62..4c5db07 100644 --- a/lib/librte_eal/common/eal_options.h +++ b/lib/librte_eal/common/eal_options.h @@ -37,10 +37,10 @@ enum { /* long options mapped to a short option */ #define OPT_HELP "help" OPT_HELP_NUM = 'h', -#define OPT_PCI_BLACKLIST "pci-blacklist" - OPT_PCI_BLACKLIST_NUM = 'b', -#define OPT_PCI_WHITELIST "pci-whitelist" - OPT_PCI_WHITELIST_NUM = 'w', +#define OPT_BUS_BLACKLIST "bus-blacklist" + OPT_BUS_BLACKLIST_NUM = 'b', +#define OPT_BUS_WHITELIST "bus-whitelist" + OPT_BUS_WHITELIST_NUM = 'w', /* first long only option value must be >= 256, so that we won't * conflict with short options */ -- 2.1.4