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 006F1A0032; Thu, 21 Jul 2022 18:48:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4F9D40141; Thu, 21 Jul 2022 18:48:14 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id D9081400D7 for ; Thu, 21 Jul 2022 18:48:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658422093; x=1689958093; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=U8qQxEeS08QN9Z1mdEiFaO/7jzhJCqgQ6jdCQ4kKDD4=; b=guuf8ytGwy/ru8WCXKWwyHerc6jInCt+LrBtquufduyRl7yxssLfg6Z7 170WV54DSNAG6ZfY/iFfZDgLKFJ89T6Yr89K/ZJLxtcl4uFEy9Sxej3TY fazO0U5YrvLNNF2euHkmVXgyprNYdTvN6jPy5xfdHXYoHoap+wei4nKQQ 8K7XLisnq9JcXxvqY6wP0IvW2q3p+f2JikTMoWy2LHUU4potwE6WfcL6O PmNJIYzw6Gq9b3/7jIdnTK1fBIH9onmRJffqeo7ClfCgdIKRd9BmFWqlk 6wZ9XJfzzV1r6etHoXJfR8Rblfov8BiCo0esM1B5VeDU7mrkvin2Kufkz g==; X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="288270040" X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="288270040" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 09:48:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="631240756" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga001.jf.intel.com with ESMTP; 21 Jul 2022 09:48:11 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 21 Jul 2022 09:48:11 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Thu, 21 Jul 2022 09:48:11 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 21 Jul 2022 09:48:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YpMaMLxiE5yBPkbAoRA/ucZVuRC6j+MPk07jrweqqbH2zmKBlKXT3jQWVnnQvbRdoiwcD0Yz/U69cbEq8TNDaXZvjq5Ym6ja7gwqQVnNbVO8sGbqEaha1CYgP1Q0F+vRz7qnGk5tMvBpYn0cQ9B/p+72NYXqEigahcb0azcAYL7Wp4JPvx84yXC1cSXo/9KPCwFfEYBIvxn9rlWMRd6g+nsKq9dJeUgUdtsIGSrV3sMrb9Sb/8y7r4HyzTZ8gRjXOu73Oii0xly1pjxBIgqbmYHkQoUD8YbEDDN7/bOfFIqmGL7Ko4bZ6hxysDYD5bYS0mqaG97jZFMd26DiB3bUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=wMQezgp66VxHLn97iOlotd0Kdpje/U1P3kNYEBtBvOA=; b=Sf2zlW6vr2CEvpeAHQu0ALiyclO72FckdDTUKCW7JTNu0NzYbIaUedR8a/tZVb1yXowvjt1nz/dCwHFISAWx/6dlc6ulTH2rKZvem81uYuCRjwbIxl46SYQ2o+YKm9MTpehPQ0HDdiCpr36FwXCJ/12h4ODcS/XJ8S/aSf62Vmjs1KExHAkJbb+ah0AJ5+iYlfP7AULunTdOtsmxpBRT3J6lH2Eqi8lqcV9GfxbTwiT0Y/awBfb9E4zF/sXhbYASEUsCAOZ/Chj2SW4gunuJxbH0mFAV7JjnMgeZISYDAQ0Ph/bN69hC2gyH4AZXLN5l6clj/YAYInnLOUtRAVlkzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BYAPR11MB3366.namprd11.prod.outlook.com (2603:10b6:a03:7f::20) by BL3PR11MB5716.namprd11.prod.outlook.com (2603:10b6:208:353::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Thu, 21 Jul 2022 16:48:09 +0000 Received: from BYAPR11MB3366.namprd11.prod.outlook.com ([fe80::cb0:d200:dc4c:29a9]) by BYAPR11MB3366.namprd11.prod.outlook.com ([fe80::cb0:d200:dc4c:29a9%7]) with mapi id 15.20.5438.023; Thu, 21 Jul 2022 16:48:09 +0000 From: "Pattan, Reshma" To: "Kearney, Tadhg" , "dev@dpdk.org" CC: "Hunt, David" , "Burakov, Anatoly" Subject: RE: [PATCH v2 3/3] l3fwd-power: add option to call uncore API Thread-Topic: [PATCH v2 3/3] l3fwd-power: add option to call uncore API Thread-Index: AQHYlsHqAJ69QbenYk6JvbDbZrTqSa2JFIVA Date: Thu, 21 Jul 2022 16:48:09 +0000 Message-ID: References: <20220713140706.4143705-1-tadhg.kearney@intel.com> <20220713140706.4143705-4-tadhg.kearney@intel.com> In-Reply-To: <20220713140706.4143705-4-tadhg.kearney@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6cefb91f-48dd-4ae1-c48f-08da6b38caf6 x-ms-traffictypediagnostic: BL3PR11MB5716:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OZiiCraVvM+IWRf8LiY3GHuDwpQB5Hw6eoRaZRPohe0chMwC/bCl67oqZPgCD0eGJmwBnF/+GeLlmEXGJS/e2069Q1rOwU7YyV4f9OvBnmacO7szbC2j4gfUazC3HT/CbM6M/Aju9Ok9/dfxxXaxa1QD6dVxmoQAveyj9KGhI4GG5UnpiZ5tq/uop+bGkS9EiV+IUVZe0rQ1gqVK2w8p58FK9sv/Nz3XF06g2tNXzXTcJB9bi5s8hjh27quyVwGDKTDEGhLTq6/xkoVpawWT4FyaulU0ayRvCiTMITonNkDSJtTFRXbydgehANQz6MfCX2Mn049ncpBsR0xuAHQTtI8mAYmzCnuW/lWAt8KYGNk1GYjPoRI+LMqNXgsaOipZWfPMXlwSScWONR/vUBN/h/Kkyszf97qCJYdGuWK7QC6F6mcaseGz89h+plHElOa+bGjy7sAHIxqDJ5ObeME2J3PfS/S/Jwp3eSQ0icmg8b6ot/YclXsa7bmwE53pu3XoQe3nXGLZw23U5wS3VcljL1TmB5NhXUMq6tb6JU+vAJhQVMp0hOIlU893XXfk8kNqY4pXEUJ/6fnVQzLqAhWXF41Li3Y99vu2JC9bVl0QidTCw/eXc52OZESM7Cv+83x724DVzm2il/ZHJKibWDHKLA95af9RA/+DIpBDou6vQWFkTlWAV3vP18+TNwaCHclvs+njQDhQxA3sBUKf6ajNh2X83o3CrYTh9qWta6r8YNbGv/Ok0N3J4Q1XKxxe6tomwl7PppyCc2NJ8KG4ERKO60XSOexXxu5zhMVXZcX35dZwhpNVEcY9OTvHhE1jDr2s x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(366004)(396003)(39860400002)(376002)(346002)(2906002)(6506007)(558084003)(122000001)(83380400001)(52536014)(7696005)(38070700005)(41300700001)(26005)(33656002)(38100700002)(186003)(82960400001)(66446008)(66946007)(64756008)(71200400001)(4326008)(8676002)(55016003)(54906003)(66476007)(110136005)(66556008)(107886003)(316002)(86362001)(8936002)(478600001)(76116006)(5660300002)(9686003)(32563001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Bq12B2n8AJmLyZDJiWneQvR3k9hL8ZtQ+BhHgBjAyFUCbxlTpiaan03X0c17?= =?us-ascii?Q?txrab/Vi/49tNqqfzy0ghZjBySes3Uh4Bt/kgooX+6wZ89OzuBb8nrYeuqpM?= =?us-ascii?Q?RUIZSd7c2PEAV0fUJWZTBO65ZvS7De7G8AiSOCdR4CO4rRTSdSb6wXI9YfCm?= =?us-ascii?Q?B5/tz4GWd2+wjMrSiV1sPir4NsKhAUqFu5gQO1pl7SKf2qpIDgJuWWAQVz9c?= =?us-ascii?Q?JGX8i2CB/cTh/IqLrWnrrKtRm+lHOx/LdNTTFyqcX0zUkdcJrNco7KhslMOy?= =?us-ascii?Q?/66kA7rkY+6TT5WfHUOLbTOuqYPy1VEQUvynn1E6IscjcrdRMZX1wBOV14oE?= =?us-ascii?Q?YnQQAiE0dMHE6KmMuBUxeaYWrhMqb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s?= =?us-ascii?Q?vP26dDS66wILWO6788Th3aU29gSczYkQq5QkQ4yUtCcrLfCnCCmDJBRXGE4+?= =?us-ascii?Q?hIIbMFoexMBKuahyB2e+hdWKJTHBOI2O62D+b88R6K8lDYJvW/Tzvdj/wYGW?= =?us-ascii?Q?rq2BDVfp3V6b6NoCtxkp9a7lf57cTmscCybCzDgYLIS7h7glDv0sRN5RPQjT?= =?us-ascii?Q?Gm+kXiaDMnQ2TeHS4s12Cj/OQUatB0OuaRU11ReMO3Mhuc/WSBcWZ/wF0NdA?= =?us-ascii?Q?kKUg8bdHHOgOjuc8CPuUHvnRtNO3PSkoZ/9WiqlGEvYPqjMu7TMdISZAbzrn?= =?us-ascii?Q?M6mfo7+dQv+/6WoXj7cLa7tdbEfEY2X8OQX2u5ac?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3366.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6cefb91f-48dd-4ae1-c48f-08da6b38caf6 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2022 16:48:09.3544 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zutZCrgZSthCiIG9xsbom/gZFtGgliDnseFI3+++T6bgFPTEdnJwVhBEj7u0zSpyq9yGz1Oo3hjwmZJJSZrXoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB5716 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Kearney, Tadhg > +static int > +parse_uncore_index(const char *choice) > +{ > + if (frequency_index > freq_array_len) { Should this be compared against freq_array_len-1 ?. Ex: If total 10 frequen= cies the index can be only 0-9. Thanks, Reshma