From patchwork Tue Jul 4 23:56:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABtan_Rivet?= X-Patchwork-Id: 26472 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A5E667D2F; Wed, 5 Jul 2017 01:57:40 +0200 (CEST) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 98AC47CEC for ; Wed, 5 Jul 2017 01:57:25 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id 62so207799172wmw.1 for ; Tue, 04 Jul 2017 16:57:25 -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=qRjfQBxBVHNisBRe4PlJCZb1msskiY9uMmkU4bHyWESKoVr4RGsUz+3nnzjuwZFCbR fSOQaWxn9HQJl+NR60zvE8ejSMa9a9EnNdkSXBux3CWLZ+TOny0BuoitUGOScJu4L9Op gcNJR9FN4DHvnYwfJtCyQLsHc311kJ/DDT7Mk3DxAVDmKQsATDgQbfz589DmfdZDQRXC SqqjnEAYqoTlfwB9XETdMveeMAXsDRWPK9gDWT9APf3XOU1e0OPRL4hbvGIK856MLhYU ZL2nH9IzeLnHE3rcWQ/L8Ikl1SZHkwzNP+ScmPq4yKgGe2bXI03UTQBhsqijn5Ci95Vg 18JA== 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=QY97bQ5yjAmwN1PNrUdNhiYRMGPQbfo7E3XmEOpnvObhHz2+zPRqkl5dy+ACcrc0FT m/qwJvFMEyTrc+Cs4HNj1TQCBagaqUABIpoS+Z0G0zII3ZanJovWJdR4uXHgKw8bui0g 2UeBgs8v0QCfDpeR7SnORphvZp49XyqK9MdMVoGKTsiTS4QHtVyZBzmTS8yVEVimxzbi kJQ0DawIBNfUzURMerSB6mI+Qwk3vMwwEDLdGnZPivlkSptfx2Sxv0xYImWgd+lj4koz BmImXZ0v1JEnuAgXvFZZEg780blZ5VjsET1uSed/xUrLDT0KgyQdrplVPxamDR1OpH3I KYlA== X-Gm-Message-State: AKS2vOxxcAkNj1HG24PUuWpaCWf4ThYdJoqjXabD3JDMQCtZxrKI4v6s 3ATWd7Dtu6ip85TbR78= X-Received: by 10.28.232.133 with SMTP id f5mr19396469wmi.46.1499212645066; Tue, 04 Jul 2017 16:57:25 -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 w197sm27273899wme.20.2017.07.04.16.57.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Jul 2017 16:57:24 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 5 Jul 2017 01:56:49 +0200 Message-Id: <88971d9cbcc0f8025df8a4d27b119ca9f2aa64ff.1499211959.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 v6 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by: John McNamara --- 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 */