All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Venkatesan, Venky" <venky.venkatesan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH 07/10] eal: add core list input format
Date: Mon, 24 Nov 2014 06:52:08 -0800	[thread overview]
Message-ID: <54734618.1020905@intel.com> (raw)
In-Reply-To: <20141124132821.GA11116@bricha3-MOBL3>


On 11/24/2014 5:28 AM, Bruce Richardson wrote:
> On Mon, Nov 24, 2014 at 02:19:16PM +0100, Thomas Monjalon wrote:
>> Hi Bruce and Neil,
>>
>> 2014-11-24 11:28, Bruce Richardson:
>>> On Sat, Nov 22, 2014 at 08:35:17PM -0500, Neil Horman wrote:
>>>> On Sat, Nov 22, 2014 at 10:43:39PM +0100, Thomas Monjalon wrote:
>>>>> From: Didier Pallard <didier.pallard-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
>>>>>
>>>>> In current version, used cores can only be specified using a bitmask.
>>>>> It will now be possible to specify cores in 2 different ways:
>>>>> - Using a bitmask (-c [0x]nnn): bitmask must be in hex format
>>>>> - Using a list in following format: -l <c1>[-c2][,c3[-c4],...]
>>>>>
>>>>> The letter -l can stand for lcore or list.
>>>>>
>>>>> -l 0-7,16-23,31 being equivalent to -c 0x80FF00FF
>>>> Do you want to burn an option letter on that?  It seems like it might be better
>>>> to search the string for 0x and base the selection of bitmap of list parsing
>>>> based on its presence or absence.
>> It was the initial proposal (in April):
>> 	http://dpdk.org/ml/archives/dev/2014-April/002173.html
>> And I liked keeping only 1 option;
>> 	http://dpdk.org/ml/archives/dev/2014-May/002722.html
>> But Anatoly raised the compatibility problem:
>> 	http://dpdk.org/ml/archives/dev/2014-May/002723.html
>> Then there was no other comment so Didier and I reworked a separate option.
>>
>>> The existing coremask parsing always assumes a hex coremask, so just looking
>>> for a 0x will not work. I prefer this scheme of using a new flag for this method
>>> of specifying the cores to use.
>>>
>>> If you don't want to use up a single-letter option, two alternatives:
>>> 1) use a long option instead.
>>> 2) if the -c parameter includes a "-" or a ",", treat it as a new-style option,
>>> otherwise treat as old. The only abiguity here would be for specifying a single
>>> core value 1-9 e.g. is "-c 6" a mask with two bits, or a single-core to run on.
>>> [0 is obviously a named core as it's an invalid mask, and A-F are obviously
>>> masks.] If we did want this scheme, I would suggest that we allow trailing
>>> commas in the list specifier, so we can force users to clear ambiguity by
>>> either writing "0x6" or "6," i.e. disallow ambiguous values to avoid problems.
>>> However, this is probably more work that it's worth to avoid using up a letter
>>> option.
>>>
>>> I'd prefer any of these options to breaking backward compatibility in this case.
>> We need a consensus here.
>> Who is supporting a "burn" of an one-letter option with clear usage?
>> Who is supporting a "re-merge" of the 2 syntaxes with more complicated rules
>> (list syntax is triggered by presence of "-" or ",")?
>>
> Burn!
Burn ^ 2 ;)

  parent reply	other threads:[~2014-11-24 14:52 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-22 21:43 [PATCH 00/10] eal cleanup and new options Thomas Monjalon
     [not found] ` <1416692622-28886-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-22 21:43   ` [PATCH 01/10] eal: move internal headers in source directory Thomas Monjalon
     [not found]     ` <1416692622-28886-2-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:21       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 02/10] eal: factorize common headers Thomas Monjalon
     [not found]     ` <1416692622-28886-3-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:23       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 03/10] eal: fix header guards Thomas Monjalon
     [not found]     ` <1416692622-28886-4-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:28       ` Bruce Richardson
2014-11-25 12:23         ` Thomas Monjalon
2014-11-25 13:37           ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 04/10] eal: factorize internal config reset Thomas Monjalon
     [not found]     ` <1416692622-28886-5-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:30       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 05/10] eal: factorize options sanity check Thomas Monjalon
     [not found]     ` <1416692622-28886-6-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:42       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 06/10] eal: factorize configuration adjustment Thomas Monjalon
     [not found]     ` <1416692622-28886-7-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:44       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 07/10] eal: add core list input format Thomas Monjalon
     [not found]     ` <1416692622-28886-8-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-23  1:35       ` Neil Horman
     [not found]         ` <20141123013517.GA3982-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2014-11-24 11:28           ` Bruce Richardson
2014-11-24 13:19             ` Thomas Monjalon
2014-11-24 13:28               ` Bruce Richardson
2014-11-24 13:37                 ` Burakov, Anatoly
     [not found]                   ` <C6ECDF3AB251BE4894318F4E4512369780C1FF99-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-11-24 14:01                     ` Neil Horman
2014-11-24 14:52                 ` Venkatesan, Venky [this message]
     [not found]                   ` <54734618.1020905-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-11-24 16:12                     ` Roger Keith Wiles
     [not found]                       ` <7E169FC8-CED0-4DD1-B2DA-CAAAFFBD7231-mVuRI66OGLPQT0dZR+AlfA@public.gmane.org>
2014-11-24 17:04                         ` Neil Horman
     [not found]                           ` <20141124170445.GA7532-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-11-24 17:09                             ` Roger Keith Wiles
2014-11-24 17:11                             ` Burakov, Anatoly
     [not found]                               ` <C6ECDF3AB251BE4894318F4E4512369780C20171-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-11-24 17:17                                 ` Neil Horman
2014-11-25 10:45       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 08/10] config: support 128 cores Thomas Monjalon
     [not found]     ` <1416692622-28886-9-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:46       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 09/10] eal: get relative core index Thomas Monjalon
     [not found]     ` <1416692622-28886-10-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25 10:51       ` Bruce Richardson
2014-11-22 21:43   ` [PATCH 10/10] eal: add option --master-lcore Thomas Monjalon
     [not found]     ` <1416692622-28886-11-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-25  9:09       ` Simon Kuenzer
     [not found]         ` <54744756.4010207-kcmmt4fgdiuHXe+LvDLADg@public.gmane.org>
2014-11-25 12:45           ` Thomas Monjalon
2014-11-25 13:39             ` Bruce Richardson
2014-11-26 10:34               ` Simon Kuenzer
2014-11-25 14:55   ` [PATCH 00/10] eal cleanup and new options Thomas Monjalon
2014-11-25 15:06     ` Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54734618.1020905@intel.com \
    --to=venky.venkatesan-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.