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 5DFE745C16; Wed, 30 Oct 2024 16:43:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4870E4342C; Wed, 30 Oct 2024 16:43:38 +0100 (CET) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id 6AD1540281 for ; Wed, 30 Oct 2024 16:43:37 +0100 (CET) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71e681bc315so2837b3a.0 for ; Wed, 30 Oct 2024 08:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1730303016; x=1730907816; 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=Tvfu2ff5Jpm4/fGga7QoREkufBpjSjclue4eb7NTgK0=; b=hDZz5449m3FlJevcXWRRZC+Y7NPCwojbWVALS2Zhk8ilnolXehATEPJzxgj/VQriSD kJJ9VAfmAdjGFN/HvU6VNrMiCWVTqzvc9YpyBlQD675COQEJi5oYgTmWWlnvtygbsQ/F 6cyxi/G3lJtO6jQXPDa8SBZuXaCakgm+yG85rU4JTHNVlvYkntkeLJaTCVti9PeIzbRm w0u8w1NkUzYhQhfq7MTTHip5jPZPYq7O75FPQiKziiLYx5de8EG6ozV2dwvKx5nUmImy ZRicnYBiNOAa5ByLAVR0Td0e3w3SgMhZleZVShMRijCKUuy5G3HQ+x4PSQjsGN7nersH ZOqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730303016; x=1730907816; 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=Tvfu2ff5Jpm4/fGga7QoREkufBpjSjclue4eb7NTgK0=; b=cR27IhG235S+dTGTxwYc3wB2vhb1zpYuzQUcL467Ifuq32qpAjmhokv2rj7dHTVAKW cqr1AscUGbvSmtJD+olDYaqlx/LwMcLKHFb9k4NRdgWDkH4pwQY5elAjYHfg6Nz6ftlb qsG5TEa+OMjIcHoBDVSSh4Gp9+SyFyfxMwR74LIMENtwh/TZVhrbIaAUtvFxnsqH4XST Yi0wcnn6Rc2hTvJl/OuDaMs0UmMeQECZ8+Au/L3cSr+XokWzlQd+W1dKVTLq4mBp/mDc 5vycVI9z7+jNwlWfosD6jsnUMVr5CG2j7IBX9qZZk61Ty61CyRD94W4EYK8DfhcLpNzB 66yA== X-Gm-Message-State: AOJu0YwtINdXkHJp4gb7VSqeu8DIYblEOxknHThE6e0bhgrvorjs9phM rCIKeYVr5Z3+F75tNKnwfBORrfx8pitSgMAneiUw6XUCt4sxKMtMbk5z2Jivo5AK7gVYhVuAUf8 3 X-Google-Smtp-Source: AGHT+IGDQ5u+5p3cXcjhdwrz+HZO0NG5g5qVV3G5fPPVdyG7Y2QjYwPriV57gaDSERA18aWgmfy9KQ== X-Received: by 2002:a05:6a00:887:b0:71e:4a46:fdb6 with SMTP id d2e1a72fcca58-72096b9a9cfmr9464097b3a.3.1730303016504; Wed, 30 Oct 2024 08:43:36 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a3bf6asm9388164b3a.181.2024.10.30.08.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 08:43:36 -0700 (PDT) Date: Wed, 30 Oct 2024 08:43:34 -0700 From: Stephen Hemminger To: Vipin Varghese Cc: , , , , , , , , , , , , Subject: Re: [RFC v3 1/3] eal/lcore: add topology based functions Message-ID: <20241030084334.44cab447@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: > topo_cnfg.l3[j] = (struct core_domain_mapping *) > + malloc(sizeof(struct core_domain_mapping)); Minor nit, no need to cast return value from malloc(). In C void * can be assigned to a type directly.