From: "Burakov, Anatoly" Subject: Re: [PATCH RFC] eal: change core mask input format Date: Fri, 23 May 2014 09:02:16 +0000 Message-ID: References: <1398867282-15076-1-git-send-email-david.marchand@6wind.com> <3072912.3LAuKXU4by@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Thomas Monjalon Return-path: In-Reply-To: <3072912.3LAuKXU4by@xps13> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Thomas, > I don't understand what would be improved by adding a new parameter. > I think being able to handle the 2 syntaxes within the same option is nic= e. Well, -c option has been handling everything as hex since forever. Our own = documentation usually has coremasks without the 0x prefix. That means that = there's probably a lot of legacy code (including our own internal validatio= n code, and probably a lot of customers' code too) that depend on this beha= vior and that will fail in an unobvious way (e.g. you specified -c 3, that = gave you cores 0,1 previously, now it gives you core 3). So I personally wo= uld much prefer leaving coremask as a *coremask* (e.g. a hex mask of cores)= , and add a new parameter to have a core *list* that would be interchangeab= le with coremask. Best regards, Anatoly Burakov DPDK SW Engineer