From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 46D3045C16; Wed, 30 Oct 2024 16:48:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 075AB4028F; Wed, 30 Oct 2024 16:48:04 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id DE7BF40281 for ; Wed, 30 Oct 2024 16:48:02 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-20c805a0753so184585ad.0 for ; Wed, 30 Oct 2024 08:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1730303282; x=1730908082; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=1fRlDNywXHL+uSnxDLfOCGUL1T/7q/qi07byF7/dDuc=; b=jY83f47o6TUMtoPTWpGw8NnQhCkzHFfzg/fDZ8N6yfN3BAw8Fs8sMteAk4X6IACzD3 +Q7Rs2yG0m0Ma5O7ME3HROkW8wUqhIJB7xSea39iuSiTd0/It40Su/MkfBDYIfBxA1vp STQCCH+iZq4+2UVWJF6o/gjoonfxeA3zxeTX2lrZRLcKc07TH/wPm7iBZClTqIeNaiD7 vmlzIEXMb2FjRLzNHlV5Cqy2EhiLQMTb1qayNrsuUCI+k1k9ivXbXBTx/nWudbA6AxCd ajrJl/8zitTjm++Der/imAndDUCY3VUtix2n0rCi7qjOheMeikAn+fXAwhfq3DRNOc4u JZuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730303282; x=1730908082; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1fRlDNywXHL+uSnxDLfOCGUL1T/7q/qi07byF7/dDuc=; b=q+2P/TKZDi6vBJ31pOtEl/Ylkvw6VXZr3Qy5rNMv7jtsjsPapixfp2AxxRED98vYm0 LC7l7gSxLKOX8+ekXFfMGoNFXBKawI/MN2qdHETDkngdVt0B3EzwAKzz6RJue4XKi4Ew se7LCKcylLWkEyPVV9ggCgaSuJegKF7nQc4ml0KSW1QS6ngrqeNCQqGBls0O//W52QV+ RMDtcSzvr0KSrz1jXWcL6SnQlmLxRk5zymtd4UR2Vf26unhcm5tnMKXL0nmZFH0ZFSwI 1ZtjfVfOUGDNcUsV/KStGMz2IhttXati3UmA9pH2YrCuEgySXMsS8NDLk4SwGK7aWUuL XLhw== X-Gm-Message-State: AOJu0YzuoJXhqJo2kyZ6xF25WcmECR3KM86Bw2RckjwuYgFB7P1wdv93 69KN1Fm4FgiojYSsuI0OWmTvDsYUybjlm4yUNtWudz5XqJKAkHfdpAnf31iODtw= X-Google-Smtp-Source: AGHT+IF+gsFENyFm8nBBXHhL+v83nFiEC2o0JEyPTYr+v6Qud4qMtjlWGOoaRr7Bay2OrKyKrlhDBQ== X-Received: by 2002:a17:902:f542:b0:20b:8bf5:cd72 with SMTP id d9443c01a7336-210c6c6f727mr209974885ad.49.1730303281973; Wed, 30 Oct 2024 08:48:01 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bbf84597sm81898445ad.111.2024.10.30.08.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 08:48:01 -0700 (PDT) Date: Wed, 30 Oct 2024 08:47:59 -0700 From: Stephen Hemminger To: Vipin Varghese Cc: , , , , , , , , , , , , Subject: Re: [RFC v3 1/3] eal/lcore: add topology based functions Message-ID: <20241030084759.2937bc4e@hermes.local> In-Reply-To: <20241030054133.520-2-vipin.varghese@amd.com> References: <20241030054133.520-1-vipin.varghese@amd.com> <20241030054133.520-2-vipin.varghese@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 30 Oct 2024 11:11:31 +0530 Vipin Varghese wrote: > +struct topology_config { > +#ifdef RTE_EAL_HWLOC_TOPOLOGY_PROBE > + hwloc_topology_t topology; > +#endif > + > + /* domain count */ > + uint16_t l1_count; > + uint16_t l2_count; > + uint8_t l3_count; > + uint8_t io_count; > + > + /* total cores under all domain */ > + uint16_t l1_core_count; > + uint16_t l2_core_count; > + uint16_t l3_core_count; > + uint16_t io_core_count; > + > + /* two dimensional array for each domain */ > + struct core_domain_mapping **l1; > + struct core_domain_mapping **l2; > + struct core_domain_mapping **l3; > + struct core_domain_mapping **io; > +}; > +extern struct topology_config topo_cnfg; > + To work with primary/secondary process model, it might be better to keep this info in hugpage/shared memory. I.e put topology_config into space allocated with rte_malloc() and populated by primary process.