From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A2FB6376C for ; Mon, 17 Jul 2017 18:11:05 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2017 09:10:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,375,1496127600"; d="scan'208";a="993932632" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga003.jf.intel.com with ESMTP; 17 Jul 2017 09:10:39 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.9]) by IRSMSX152.ger.corp.intel.com ([169.254.6.83]) with mapi id 14.03.0319.002; Mon, 17 Jul 2017 17:10:38 +0100 From: "Ananyev, Konstantin" To: "Van Haaren, Harry" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "jerin.jacob@caviumnetworks.com" Thread-Topic: [dpdk-dev] [PATCH] service: add corelist to EAL arguments Thread-Index: AQHS/xCAcjzw6uv6kkGyT2/40gL0SKJYKydw///w8YCAABQWEA== Date: Mon, 17 Jul 2017 16:10:37 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258404CA254@IRSMSX103.ger.corp.intel.com> References: <2348349.WgB7oMYfnC@xps> <1500304914-42805-1-git-send-email-harry.van.haaren@intel.com> <2601191342CEEE43887BDE71AB977258404CA1B4@IRSMSX103.ger.corp.intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] service: add corelist to EAL arguments 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: Mon, 17 Jul 2017 16:11:06 -0000 > -----Original Message----- > From: Van Haaren, Harry > Sent: Monday, July 17, 2017 4:58 PM > To: Ananyev, Konstantin ; dev@dpdk.org > Cc: thomas@monjalon.net; jerin.jacob@caviumnetworks.com > Subject: RE: [dpdk-dev] [PATCH] service: add corelist to EAL arguments >=20 > > From: Ananyev, Konstantin > > Sent: Monday, July 17, 2017 4:54 PM > > To: Van Haaren, Harry ; dev@dpdk.org > > Cc: thomas@monjalon.net; jerin.jacob@caviumnetworks.com; Van Haaren, Ha= rry > > > > Subject: RE: [dpdk-dev] [PATCH] service: add corelist to EAL arguments > > > > Hi Harry, > > > > > -----Original Message----- > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Harry van Haaren > > > Sent: Monday, July 17, 2017 4:22 PM > > > To: dev@dpdk.org > > > Cc: thomas@monjalon.net; jerin.jacob@caviumnetworks.com; Van Haaren, = Harry > > > > > Subject: [dpdk-dev] [PATCH] service: add corelist to EAL arguments > > > > > > This commit allows the -S (captial 's') to be used to indicate > > > a corelist for Services. This is a "nice to have" patch, and does > > > not modify any of the service core functionality. > > > > > > Suggested-by: Jerin Jacob > > > Suggested-by: Thomas Monjalon > > > Signed-off-by: Harry van Haaren > > > --- > > > lib/librte_eal/common/eal_common_options.c | 74 ++++++++++++++++++++= ++++++++++ > > > 1 file changed, 74 insertions(+) > > > > > > diff --git a/lib/librte_eal/common/eal_common_options.c > > b/lib/librte_eal/common/eal_common_options.c > > > index 00265d6..696a627 100644 > > > --- a/lib/librte_eal/common/eal_common_options.c > > > +++ b/lib/librte_eal/common/eal_common_options.c > > > @@ -65,6 +65,7 @@ eal_short_options[] =3D > > > "d:" /* driver */ > > > "h" /* help */ > > > "l:" /* corelist */ > > > + "S:" /* service corelist */ > > > "m:" /* memory size */ > > > "n:" /* memory channels */ > > > "r:" /* memory ranks */ > > > @@ -402,6 +403,72 @@ eal_parse_coremask(const char *coremask) > > > } > > > > > > > Do we need a new parsing function here? > > Can't we reuse at least part of '-l' parsing code? > > Konstantin >=20 >=20 > Yep we should - in this instance (post-RC2..) I don't want to rock-the-bo= at and change any existing EAL functionality. >=20 > During review of eventdev-sample-app and service-cores, Jerin had noted t= hat we are duplicating various functions for parsing strings, and > really we should cleanup into a single function to call from all of them.= That should be scheduled as post 17.08 rework. Sound ok to me then. Konstantin