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 996F845BB0; Mon, 4 Nov 2024 04:09:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F378402AF; Mon, 4 Nov 2024 04:09:50 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2075.outbound.protection.outlook.com [40.107.236.75]) by mails.dpdk.org (Postfix) with ESMTP id E7DB74021F for ; Mon, 4 Nov 2024 04:09:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y3nXzFjetg2w94vhg+LArVdO8VIHSLxOoZMO85p21PlZSkS/WUS+P/XoXxwZVornkt3Q0Yi5mzXsnN6Z0YDet9zkhfducZRIrj4x/vXMwSTx+3mhXmwTW/15v+tYV2dE5CQM836XgLmX1VdK7HNEvjfkASMWeysiaIU1aqbwM9TPw/E+gbDPuV2Z7DojOYJ3K4eN2yYcZhX7MuY85BX3aeY16Szgabwj1+5wEFuGUwu7r2p2ZGfaXX5HUyGLd5C1xg8XSH4HTExM3Blq1MvbD3iNC1ReW5uxSYRQxR6xPJ0B0X6hESbvoQDSi7uKd4TVnE2aZDOAltjruXGVIHebGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JaGTRKoVycpMd4AGIgVbsTTfIVuKjATFhLhEPtM6SWI=; b=hDYAt0FcalLxmjqqgttgneGW42MQ0B/mJ3OhaHTODShsxbAlQE8z0kPe2kgwHUXXh2nE7HO/v1DpaBXVIcet91Qb2XKZllpOP4GoOhgNu+SzdQIraXiWZx9Jwa169sVbk7xVs8di/JN0hIkKtidpNeTm1j6hbfS+qURHdedn/iS5GpprsMOtEK+T7EQUs7tB7eXmEOFO+XzeUB03xsX9Vnsnkv0nq7L/x3H6/vLpCo0WfD2c9ZiALZLMKFQbIMKW8ogmUVlcEdMtPNLxc/rNRpN+gff3cYWdif5u+jM03Te+sE6kKXxk1Hp2Glp7BbVSQU71r8duo7tnBl+mliZLxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JaGTRKoVycpMd4AGIgVbsTTfIVuKjATFhLhEPtM6SWI=; b=HEkkBK3sQopfmkbLQUoxiYfIit2tE477jADFJlro4jFu+wovgri4lX8o5CEYXVaS69kGbpgUHjLNe9b835pyNL6AULDurbs5JpvxiRLuUtAj/7EHdTMPfBgJwc8/ak8+/cSbqmZYV7yK27jrxvluHlmT1M1MNzE4C6lTGvrD57A= Received: from PH7PR12MB8596.namprd12.prod.outlook.com (2603:10b6:510:1b7::6) by SJ2PR12MB9192.namprd12.prod.outlook.com (2603:10b6:a03:55d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Mon, 4 Nov 2024 03:09:46 +0000 Received: from PH7PR12MB8596.namprd12.prod.outlook.com ([fe80::a011:943d:7291:8069]) by PH7PR12MB8596.namprd12.prod.outlook.com ([fe80::a011:943d:7291:8069%6]) with mapi id 15.20.8114.028; Mon, 4 Nov 2024 03:09:46 +0000 From: "Varghese, Vipin" To: Stephen Hemminger CC: "dev@dpdk.org" , "roretzla@linux.microsoft.com" , "bruce.richardson@intel.com" , "john.mcnamara@intel.com" , "dmitry.kozliuk@gmail.com" , "jerinj@marvell.com" , "ruifeng.wang@arm.com" , "mattias.ronnblom@ericsson.com" , "anatoly.burakov@intel.com" , "Yigit, Ferruh" , "honnappa.nagarahalli@arm.com" , "wathsala.vithanage@arm.com" , "konstantin.ananyev@huawei.com" Subject: RE: [RFC v3 1/3] eal/lcore: add topology based functions Thread-Topic: [RFC v3 1/3] eal/lcore: add topology based functions Thread-Index: AQHbKo7TkSe1qp6krEGG1fG5vPPPL7Kfb9YAgAcI4LA= Date: Mon, 4 Nov 2024 03:09:46 +0000 Message-ID: References: <20241030054133.520-1-vipin.varghese@amd.com> <20241030054133.520-2-vipin.varghese@amd.com> <20241030084334.44cab447@hermes.local> In-Reply-To: <20241030084334.44cab447@hermes.local> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_ActionId=e7210786-2233-4ac4-acdc-6a6b8761b846; MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_ContentBits=0; MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_Enabled=true; MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_Method=Privileged; MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_Name=Non-Business_New; MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_SetDate=2024-11-04T03:09:15Z; MSIP_Label_94523dde-f9d1-4aa7-80a9-c0900420d3c3_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR12MB8596:EE_|SJ2PR12MB9192:EE_ x-ms-office365-filtering-correlation-id: b2709561-3cf7-47a3-462f-08dcfc7e2330 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|7416014|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?KgcL6J7ujUxnVFJMThoiQARy4zq9P2LSYdXjNDdNQptX3m/TZbjNfek6nOmP?= =?us-ascii?Q?jm0gybvPL86WqwuFWYJ75+0a1typuiari58T4dawyqeAC59WK/oDhpWGjj9q?= =?us-ascii?Q?yDLnMgmlBQ9DwqlwfmHrfFqXetlQxIzceoO9bszXGXzCLwXZ+uv26KhKgJUn?= =?us-ascii?Q?TduiLwnOQ3PQFwGVM0Bvls6hA7G4KGwEOhBYcpAC/fYoZd7iD+/zKX2wFJKp?= =?us-ascii?Q?dtXUu8DThOnpumEpBkok/74bgUgVUFVuKugQBvjx8ev+UHd+qb/DenSHjw0t?= =?us-ascii?Q?qK42u/2uBOnTL37qAgJI5n5sPuwiP0W6N9dzJd1HU72qKPSylxgT85+p231N?= =?us-ascii?Q?zX7QSF7XNZe60QWIRqIJOFCkY4mqinECpPo1leW3nrXIJ9xLm165xk/tmvSc?= =?us-ascii?Q?A6ue9EUNoRBkJXKPimBTGLgYOn8yUqG3oqD7mJH5mgtAUUDW1cPK5+lNCc3U?= =?us-ascii?Q?gJthI+hdCowYrq1Wq6GyGrsqVr/JAhALm7yk6oukagjNHXLqEoQAKi8XjxAM?= =?us-ascii?Q?0bfNKj1wDHa9Al/5kvbIxn+cN7Em8NNLTMmuNLEDbxPydsyfH5RklwRHwO3c?= =?us-ascii?Q?aoTsGR3UobU8sp36HNtka6njbJf9GBYy7NhHHXvme1g0L7tqFeTD6lIPUnFN?= =?us-ascii?Q?paUsERZ7KthG20AwbE6Dm5KSnBdKvy/ArTaNRKke1QD3Xx+33If1zGKh9wJA?= =?us-ascii?Q?zZa/Qmc2hm0cN883mGIJheU15WbIuR5E36aXlfUIkpWaJgDOCrQ1edI5megn?= =?us-ascii?Q?wq8qk/D+qvbjIK88KnGxBm5utDPCbth7lvxCfA+vh8NarTsHw7TxUXYc+5f+?= =?us-ascii?Q?74WjPtbaTi3TxuVxP3MeIMhCTcG+7eyjh7pCpYU1G2Y331oHlEOtR86rI49V?= =?us-ascii?Q?u6wxXrHsRtQug/2MHRHTDz1fQbzEiQ7EECmYtMytkmaW7gr8dlwnYfNqv0Of?= =?us-ascii?Q?KCnuACJX3zm824eX01VzqfRIyNkpAAy0qZuzp0sFpPaCoNJvoBOITTewqXW9?= =?us-ascii?Q?lie1RZ7rVUpv3y2d5mi5raglq+3+TQvMuWEgp2vXeX3XB/3PhykUjNDCMHaF?= =?us-ascii?Q?TYF/7iTe7wn9l8Ea7MdaTdhK+a+igSAuAHauP35oDp7cL+odFObJEzBhiVCW?= =?us-ascii?Q?uFzUlIVsI0mIFhc3KOI0iQ3TOFL7AifIPRq02dOAmxg4Red0diha+B3yklj0?= =?us-ascii?Q?EtSx993IsUXbrWu40KO66qqp6Ff5IGngJlPKV8XjISvDu/Ku3IzuRgV74wld?= =?us-ascii?Q?Ye5y2Q8lGrmLJ3X55O+jDGHQ3gVSC+U9oKLKM06Iexjwo64FQvSV9AFhGTzX?= =?us-ascii?Q?4iJwUdcyWx7XRcm+CSkZh0X9vwaB733nLmUDucDmrax/IJTuTX8yYeZVisab?= =?us-ascii?Q?I79Ep6Y=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR12MB8596.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(7416014)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1Jm/ctdmGO+7YRJybgOrBHigJ5FTxsIJpaUs7WgvCEgjPa8he+acwadrqHni?= =?us-ascii?Q?+/udydoSfhQdu1XcZC/NVZeZfKlJ98i0h/bjdS/Ig9BwWQjdTtHjpsLclN+Z?= =?us-ascii?Q?qG2BKEXV0jXKMZoklbZx48MTrLJuIevVInwPTLKE8afAhuKDDDNW6yLsW85T?= =?us-ascii?Q?TOAGi6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KXrIMZSkQH?= =?us-ascii?Q?EUQroS7s1VHXsiva+F9paH36duM+EpKLCIWDuVlbAPVCXzKlYBR/CARTbqil?= =?us-ascii?Q?QEul2L8HuxhO2RKTlyzOmEUYskaLuuRm9nEbgr4wN7Z+vgLoQqa1n9v8zp0c?= =?us-ascii?Q?QR2UKIFeybvQ8unknGtOT1AVuLAvCRSYywUblb76ZrUdOdEi7fM9MtPygAwI?= =?us-ascii?Q?ZSjobMG0bCZ0CD8uqSFpKV7Fsn5m2lmZNtD5o8mRYTDq1u8CfuEEg9dZ8S+a?= =?us-ascii?Q?1Z9xgJooXWVA3By4QiYb1SkgsSOm8vX2hX09353NlS+SRW7y0QHkRD+HICJa?= =?us-ascii?Q?He/C7XakcwZ+x/S2rnoBwBdj7Oql/6Di5Oas2AuEJgL17hqOXRnvkBbovGZ8?= =?us-ascii?Q?m/Ym/d0J78tK9uoP05UIWCrIBH+mWzkBbNn0wFF7Q5ACqHJtCqpxLtCduvv6?= =?us-ascii?Q?NBEsQBHzftZqkR2t9UICEiFu0DzVYGnsEYu4a9GyK+KDtu2aGVTMZJtlmaXo?= =?us-ascii?Q?VXQhy9mL4WEmGW/46Gw=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB8596.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2709561-3cf7-47a3-462f-08dcfc7e2330 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2024 03:09:46.6164 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5GbaAEcPItRvq69Q8I9dS5X2NMZIRIddfJr3DuAGhnaLDrylqFilC+YqRZb+8ZfYCXrWyH9M1bBgxsekKTLF4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9192 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 Snipped >=20 > On Wed, 30 Oct 2024 11:11:31 +0530 > Vipin Varghese wrote: >=20 > > topo_cnfg.l3[j] =3D (struct core_domain_mapping *= ) > > + malloc(sizeof(struct core_domain_= mapping)); >=20 > Minor nit, no need to cast return value from malloc(). > In C void * can be assigned to a type directly. Thank you Stephen, will address this with v4