From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by dpdk.org (Postfix) with ESMTP id F2634593B for ; Fri, 26 Jul 2013 15:34:12 +0200 (CEST) Received: by mail-we0-f178.google.com with SMTP id u57so1903703wes.9 for ; Fri, 26 Jul 2013 06:34:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:organization:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=cmdcqLqf6sKYTVNYaEpEFqI3XW0u1Qsnxt6yFlfVeUs=; b=TC+Hbm79oEWjfRZwNHaPgtqjQW5M2qeNaIauVWKsl92PQOMfR3pSmu6b5cobH6Nfgr vjJ3Js+SetDEd/UXdntnDEWZQuPyY15yU0pYSsIWPxE7Z0EfKNKuUzO0jmvv0ytfa9JF DFPx4pDAHEVbtmbRzRzyPFch4hkSYB2EVu+Uak8LoP1JTtdylAO0EcprB6YKa0nFZFLu 0niq+6QeYAQNlozNmo8gUtSFdHMU0fOEvoNA+ut2Q5b++hGGX6HfxSrEZ29taVH3KAw1 CWCX+gYAxP2KBkGW79p8vNp3uOXEjoYfPTHLJNtIZlW+y2UvSgRFU7+M9DR9kwcyEaXh D9Ig== X-Received: by 10.194.179.129 with SMTP id dg1mr35569848wjc.38.1374845675829; Fri, 26 Jul 2013 06:34:35 -0700 (PDT) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id w4sm4778608wia.9.2013.07.26.06.34.33 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jul 2013 06:34:34 -0700 (PDT) From: Thomas Monjalon Organization: 6WIND To: dev@dpdk.org Date: Fri, 26 Jul 2013 15:34:32 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: <1374839749-28143-1-git-send-email-thomas.monjalon@6wind.com> In-Reply-To: <1374839749-28143-1-git-send-email-thomas.monjalon@6wind.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201307261534.32927.thomas.monjalon@6wind.com> X-Gm-Message-State: ALoCoQmtbGgjtK+y39ghuBaan6awIAypuN17mtQbaKEP5zaxwr3x8FCiWdgqCjrQbV+WPebUwcAo Subject: Re: [dpdk-dev] [PATCH] eal: fix recording of detected/enabled logical cores 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: Fri, 26 Jul 2013 13:34:13 -0000 26/07/2013 13:55, Thomas Monjalon : > From: Ivan Boule > > 1) In the EAL initialization phase, invoke the function rte_eal_cpu_init > to detect the set of running cores (and enable them by default) before > processing the [enabled] core mask option that is performed during the > parsing of EAL arguments. > > 2) In the function rte_eal_cpu_init(): > - to parse the set of all running logical cores on the machine, do not > use the RTE_LCORE_FOREACH macro that considers the set of already > detected cores... > Instead, use a standard loop based on the RTE_MAX_LCORE constant. > - explicitely set to ROLE_RTE the role of each detected logical core > that is recorded in the EAL configuration, as all running cores are > enabled by default. > > 3) In the function eal_parse_coremask(), update the "lcore_count" field > of the EAL configuration with the effective number of logical cores > that are set in the mask of enabled logical cores. > > Signed-off-by: Ivan Boule acked and pushed -- Thomas