DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Aaron Campbell <aaron-rd7evPjynkNeoWH0uzbU5w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH] eal/linuxapp: Add parameter to specify master lcore id
Date: Tue, 04 Nov 2014 20:00:58 +0100	[thread overview]
Message-ID: <3986981.sR7Aq8MzkS@xps13> (raw)
In-Reply-To: <582DA5F6-0A84-4FDD-8DC6-D8E5C6B1652A-rd7evPjynkNeoWH0uzbU5w@public.gmane.org>

2014-11-03 13:02, Aaron Campbell:
> > On Jul 8, 2014, at 5:28 AM, Simon Kuenzer <simon.kuenzer-kcmmt4fgdiuHXe+LvDLADg@public.gmane.org> wrote:
> > 
> > +			else if (!strcmp(lgopts[option_index].name, OPT_MASTER_LCORE)) {
> > +				if (!coremask_ok) {
> > +					RTE_LOG(ERR, EAL, "please specify the master "
> > +							"lcore id after specifying "
> > +							"the coremask\n");
> > +					eal_usage(prgname);
> > +					return -1;
> > +				}
> 
> 
> Hi Simon,
> 
> I think that forcing a particular command line order is not that clean.
> It might be better to remove the cfg->master_lcore setting from
> eal_parse_coremask(), and defer the selection of the master lcore until
> all of the command-line options have been parsed.  If —master-lcore was
> specified, save the value and use that, otherwise
> rte_get_next_lcore(-1, 0, 0) can return the first bit set in the coremask.

It's not sufficient: eal_parse_master_lcore() requires cfg->lcore_role
to be set. There is a real dependency between these 2 options.
I'm going to submit a v2. Feel free to improve it with another patch.

-- 
Thomas

  parent reply	other threads:[~2014-11-04 19:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-08  8:28 [PATCH] eal/linuxapp: Add parameter to specify master lcore id Simon Kuenzer
     [not found] ` <1404808110-16314-1-git-send-email-simon.kuenzer-kcmmt4fgdiuHXe+LvDLADg@public.gmane.org>
2014-07-08  9:42   ` Simon Kuenzer
     [not found]     ` <53BBBCFC.1070907-kcmmt4fgdiuHXe+LvDLADg@public.gmane.org>
2014-07-21 16:21       ` Simon Kuenzer
     [not found]         ` <53CD3E26.1060708-kcmmt4fgdiuHXe+LvDLADg@public.gmane.org>
2014-07-22 23:40           ` Hiroshi Shimamoto
     [not found]             ` <7F861DC0615E0C47A872E6F3C5FCDDBD01161242-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
2014-07-23  7:50               ` Thomas Monjalon
2014-07-23  8:53                 ` Hiroshi Shimamoto
     [not found]                   ` <7F861DC0615E0C47A872E6F3C5FCDDBD011625D2-ZmjkEB1lVlLt6d3pZDjeaEtBU8KWyXPq@public.gmane.org>
2014-07-23  9:04                     ` Thomas Monjalon
2014-07-23 12:05                       ` Simon Kuenzer
2014-08-04  2:48                       ` Hiroshi Shimamoto
2014-07-23 12:10                     ` Simon Kuenzer
     [not found]                       ` <53CFA637.1090706-kcmmt4fgdiuHXe+LvDLADg@public.gmane.org>
2014-11-03 17:02                         ` Aaron Campbell
     [not found]                           ` <CDC4C356-008C-4099-A6BB-16D931CBBF52-rd7evPjynkNeoWH0uzbU5w@public.gmane.org>
2014-11-03 22:29                             ` Thomas Monjalon
2014-07-23  8:03               ` Gray, Mark D
2014-11-03 17:02   ` Aaron Campbell
     [not found]     ` <582DA5F6-0A84-4FDD-8DC6-D8E5C6B1652A-rd7evPjynkNeoWH0uzbU5w@public.gmane.org>
2014-11-04 19:00       ` Thomas Monjalon [this message]
2014-11-05 15:34         ` Aaron Campbell
2014-11-04 21:40   ` [PATCH v2] eal: add option --master-lcore Thomas Monjalon
     [not found]     ` <1415137233-6364-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-11-05 11:54       ` Ananyev, Konstantin
     [not found]         ` <2601191342CEEE43887BDE71AB977258213A2877-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-11-05 16:52           ` Thomas Monjalon
2014-11-05 15:34       ` Aaron Campbell
2014-11-05 23:43       ` Simon Kuenzer

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=3986981.sR7Aq8MzkS@xps13 \
    --to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=aaron-rd7evPjynkNeoWH0uzbU5w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox