From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 7816CB0FA for ; Wed, 11 Jun 2014 23:50:58 +0200 (CEST) Received: by mail-wg0-f41.google.com with SMTP id a1so364077wgh.0 for ; Wed, 11 Jun 2014 14:51:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=qtUQkq9AXaUSwMlUX3/1WtOQSQtHVJV5FX3JnGI/L5k=; b=HMjLpnWAVJ7jKUYLnAmDjv9AyoGSUkNQutfXyWkfiVoM7ZuhBXUV8Hw7oiWqvLPgvZ kf+QcTnSLoYSPMTg3WnPKLvBergT7E6lANvcBXE0GTe8Kgoah+N1bjaxyBotIBU77wct K/6mrne2rIqPPpI55v1293KlUnTenlf2l2D2BqzSPbapUUrrEqBriEzN6rRMpSHLIkEo AH9cEMf3FkIwgHqbSNnhd04/7rg/H/wei6b3XkKolbOlQVWsGLgSSB/x16yhGK/g7OJ2 U1rLxLSZbpV1hGiyKrJ5K98/rjDHduzS1JpYC+UuskdTpfXvXgcAU0s62uRAKyzTHPZ4 k0TQ== X-Gm-Message-State: ALoCoQkHf9rspDEx2/cYbZJgfRCNYk8EBIguvCeP061qCrY33Q8TYHXeO3bO5haVp8yZjXqSIg/R X-Received: by 10.180.100.41 with SMTP id ev9mr844914wib.22.1402523473085; Wed, 11 Jun 2014 14:51:13 -0700 (PDT) Received: from xps13.localnet (ip-96.net-80-236-123.rev.numericable.fr. [80.236.123.96]) by mx.google.com with ESMTPSA id gb6sm29538061wic.6.2014.06.11.14.51.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2014 14:51:11 -0700 (PDT) From: Thomas Monjalon To: Patrick Lu Date: Wed, 11 Jun 2014 23:51:11 +0200 Message-ID: <9007853.cgh6aaULN3@xps13> Organization: 6WIND User-Agent: KMail/4.13.1 (Linux/3.14.6-1-ARCH; KDE/4.13.1; x86_64; ; ) In-Reply-To: <1402519509-26653-1-git-send-email-Patrick.Lu@intel.com> References: <1402519509-26653-1-git-send-email-Patrick.Lu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] Add an API to query enabled core index 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: Wed, 11 Jun 2014 21:50:58 -0000 Hi, 2014-06-11 13:45, Patrick Lu: > EAL -c option allows the user to enable any lcore in the system. > Oftentimes, the user app wants to know 1st enabled core, 2nd > enabled core, etc, rather than phyical core ID (rte_lcore_id().) > > The new API rte_lcore_id2() will return an index from enabled lcores > starting from zero. I think core_id2 is not a representative name. What do you think of renaming core_id as lcore_hwid and core_id2 as lcore_index? -- Thomas