From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16]) by dpdk.org (Postfix) with ESMTP id 8E3276CA6 for ; Tue, 17 May 2016 20:12:44 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so2.wedos.net (Postfix) with ESMTPSA id 3r8QRJ24Ngz3qn; Tue, 17 May 2016 20:12:44 +0200 (CEST) Date: Tue, 17 May 2016 20:10:59 +0200 From: Jan Viktorin To: Jianbo Liu Cc: dev@dpdk.org, David Marchand , Thomas Monjalon , Bruce Richardson , Declan Doherty , Jerin Jacob , Keith Wiles , Stephen Hemminger Message-ID: <20160517201059.08f28dcc@pcviktorin.fit.vutbr.cz> In-Reply-To: References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1462542490-15556-1-git-send-email-viktorin@rehivetech.com> <1462542490-15556-10-git-send-email-viktorin@rehivetech.com> Organization: RehiveTech MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1 09/28] eal: introduce --no-soc option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2016 18:12:44 -0000 On Fri, 13 May 2016 11:28:18 +0800 Jianbo Liu wrote: > On 6 May 2016 at 21:47, Jan Viktorin wrote: > > This option has the same meaning for the SoC infra as the --no-pci > > for the PCI infra. > > > > Signed-off-by: Jan Viktorin > > --- > > lib/librte_eal/common/eal_common_options.c | 5 +++++ > > lib/librte_eal/common/eal_internal_cfg.h | 1 + > > lib/librte_eal/common/eal_options.h | 2 ++ > > 3 files changed, 8 insertions(+) > > > > diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c > > index 3efc90f..09d64f7 100644 > > --- a/lib/librte_eal/common/eal_common_options.c > > +++ b/lib/librte_eal/common/eal_common_options.c > > @@ -85,6 +85,7 @@ eal_long_options[] = { > > {OPT_NO_HPET, 0, NULL, OPT_NO_HPET_NUM }, > > {OPT_NO_HUGE, 0, NULL, OPT_NO_HUGE_NUM }, > > {OPT_NO_PCI, 0, NULL, OPT_NO_PCI_NUM }, > > + {OPT_NO_SOC, 0, NULL, OPT_NO_SOC_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 }, > > @@ -841,6 +842,10 @@ eal_parse_common_option(int opt, const char *optarg, > > conf->no_pci = 1; > > break; > > > > + case OPT_NO_SOC_NUM: > > + conf->no_soc = 1; > > Could it be better to rename to enable_soc, and disable soc by default? Sure, I tried to be consistent with PCI... [...] -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic