From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A1F47A055F; Thu, 27 Feb 2020 17:58:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 917202C4F; Thu, 27 Feb 2020 17:58:27 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70071.outbound.protection.outlook.com [40.107.7.71]) by dpdk.org (Postfix) with ESMTP id C83E31C01 for ; Thu, 27 Feb 2020 17:58:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gXxatbmTAaXy+B0YJM8wHuciWLPDZhy4s/NxdKBmjsw=; b=aZmJR5s4xZ16tNiANb5rYeEmdNMFs3Yiguosk93mKefThQoSFRfgHWxk1ZwBNqsRwRFvPTslNOCOTtK4Fm0YERV0TEAxP7gY6+P/FFoE0A8Z6p+mCvYRdeDMHKNaQzsuZZcI885jXnYwhE14NfccVNg+RZSfBHbtxMMk07+PKfU= Received: from DB6PR0802CA0047.eurprd08.prod.outlook.com (2603:10a6:4:a3::33) by AM0PR08MB3122.eurprd08.prod.outlook.com (2603:10a6:208:5d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.22; Thu, 27 Feb 2020 16:58:24 +0000 Received: from VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::202) by DB6PR0802CA0047.outlook.office365.com (2603:10a6:4:a3::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Thu, 27 Feb 2020 16:58:24 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT032.mail.protection.outlook.com (10.152.18.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Thu, 27 Feb 2020 16:58:23 +0000 Received: ("Tessian outbound 0420f1404d58:v42"); Thu, 27 Feb 2020 16:58:23 +0000 X-CR-MTA-TID: 64aa7808 Received: from 16c988cce0cd.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6198B5EC-8C55-45C9-A3F0-EAD15CB931DA.1; Thu, 27 Feb 2020 16:58:18 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 16c988cce0cd.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Feb 2020 16:58:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EmYj1k1qS4ipB6kfbMDoHNF8GB+FKGkVgT8A5q17iLSTipzCu0TF9xJ6wMUoItwe1L+9VRk+iVGQP4mUVX/RHaHghV+Sx3+Pi1VnhcogqCOb5bOTmfCTWWfpxCdUih22scxt/CDO7XY4tPBT0LGawRUyJM7050vqP9LjhBGQ3MXaOgfW9cVQqtJeeAzvBjMzcuSBwOEzEAdHEAUBSevI+nV+QkL83ZtraEX8kFYjpRTCTlfTFwG0jq5DGM99n+XWehJpFhJR4+PV5IzEN1OyglEGOt/GHKCiyqljmH5Rl3/Xscbh5LWPtf0x5CjYrG/QMxtsdgr/U2TWNjwqnrbFPg== 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-SenderADCheck; bh=gXxatbmTAaXy+B0YJM8wHuciWLPDZhy4s/NxdKBmjsw=; b=X/8sRTo81uIiC8W2TiifxH8JjONaQBk3W0MlKLTSZKjyJ4QC8AGuhCv8GnovcYhi8X0fm6mfV6Bpe8usu+5XgR2rxY4f4OS1UyISZn919/v+q8VWxb/Qm/pnGn71ZoJECffT0SYuJTiYr1i5J0AT2I7A9DTfKbxH2WWcGYJcA8zDg+POYP6ga8VvReA6bSC8wpSH+PO5kzkoxhuNRr+wOIes8G2UCqdEn2fzVGXF7qT5pok2TD3rPdC9Xo2nWW5jo2OGtXx+TB67ZhAedo4AoNiHNRK5biYYE5xSedw4fgEvS5Y6IYppO9qwOxCKQx3rlcMyF9B+M8dyanX5GP0nrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gXxatbmTAaXy+B0YJM8wHuciWLPDZhy4s/NxdKBmjsw=; b=aZmJR5s4xZ16tNiANb5rYeEmdNMFs3Yiguosk93mKefThQoSFRfgHWxk1ZwBNqsRwRFvPTslNOCOTtK4Fm0YERV0TEAxP7gY6+P/FFoE0A8Z6p+mCvYRdeDMHKNaQzsuZZcI885jXnYwhE14NfccVNg+RZSfBHbtxMMk07+PKfU= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.27) by VE1PR08MB4687.eurprd08.prod.outlook.com (10.255.113.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14; Thu, 27 Feb 2020 16:58:16 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::29eb:a1be:8f8f:fae2]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::29eb:a1be:8f8f:fae2%7]) with mapi id 15.20.2750.024; Thu, 27 Feb 2020 16:58:16 +0000 From: Honnappa Nagarahalli To: "Carrillo, Erik G" , Robert Sanford CC: dev , nd , Phil Yang , Gavin Hu , "david.marchand@redhat.com" , "thomas@monjalon.net" , nd , nd Thread-Topic: Questions about rte_timer APIs Thread-Index: AdXi+Aa5jZT/coE5SH+/cgmn4fR4JQJPh0lAACJZ5bAAM99OIA== Date: Thu, 27 Feb 2020 16:58:15 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: e41f3fbd-6cf7-4a17-82fc-2b822e7afaa3.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3e27c4c5-2a61-459c-b723-08d7bba641eb X-MS-TrafficTypeDiagnostic: VE1PR08MB4687:|VE1PR08MB4687:|AM0PR08MB3122: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; x-forefront-prvs: 03264AEA72 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(346002)(136003)(376002)(396003)(39860400002)(366004)(189003)(199004)(316002)(110136005)(86362001)(66946007)(186003)(26005)(53546011)(71200400001)(66446008)(64756008)(66556008)(66476007)(76116006)(5660300002)(52536014)(7696005)(33656002)(6506007)(8936002)(54906003)(8676002)(81156014)(81166006)(478600001)(2906002)(55016002)(9686003)(4326008)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4687; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: oNgoAHSWqr2Iizu0tzgbF9wX0YzqDTHkV+BLZLkk0yU/fG+7CuMLnJorU4buuDjKHC37L+3HH10m3nAH34j6KGrHwVE1AfTkVm7oKwblUc5vtOye2/JRYzidPY0VIZMFhmGgjtNVNSNtK60+XXUgs53dgYMoy+B+L469W5kpEMXpykl2HO0Ni62BGumHvEwjLG1dYc5XQoXBVRz8KpkisZbk1X5me/dzjU06Tn2DOuw6cemSsLNsbuR+NO9k3FL1lvM+LaTiLyPWSHQZJpUhgT6WOsY68zLxqsNnOdUIJafVv/Y9R3+6vCm0j7LLM+lIsXB+Gl90wBSB50iEIF7s5oDGgOb4e570HqnrKAaQG7fj2tKaMxSH4acNGaOUHbUJY8BqYYeJnSVVhekTQ7dKFS8BoDNGK3/OhZkxrR+oVNTROtBVn7Ffzwi0uqZWKgSMTOHGuYxzRG7s7tZ7oMGlkb6A3NTs8x1ZnLAYoMmRgQGUWf/rcWEZnWO6VnDzQ4hB x-ms-exchange-antispam-messagedata: q5C61KVsSlXJgLlFIOXtux+J+dUaKaJ5Tq/6X9LLbtuY8aascGZl3UIggTAPoIvD269ZWM9EsmflgYiMkBTGMhw0jap6uMoApAiAinreZnMEHimS1szAZvEe0C5IS3RFBfNZHLqi6y/pcZk2nQawbQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4687 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(396003)(346002)(136003)(199004)(189003)(70206006)(70586007)(110136005)(54906003)(33656002)(316002)(36906005)(2906002)(26826003)(55016002)(52536014)(4326008)(9686003)(6506007)(53546011)(7696005)(478600001)(186003)(81156014)(5660300002)(8936002)(26005)(8676002)(86362001)(81166006)(336012)(356004)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB3122; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 1c9c2df6-6f01-4274-d424-08d7bba63d1a X-Forefront-PRVS: 03264AEA72 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cXequL7hQo6Ehh65fASoGB41AeAfOXF/6ISeOMXisZxTYvqVgCXN/ZjOP60i/VLY1oWjJvMM6rtg78n+5xoDDLowZoioNb7qRw7q0IeuMYvqp5ECoXyu3ADkO3b3x51bKRXzZ9t5NEoBq4iNBCzaSaTxJ4m0S5sn7vsXjrTVDQopzWzow1Ggr8N4PmiiBDcFKDZyIZozUTpRIXnuLKExlR9F+Ng/WQDOSg4Wtf5w4Sji3jikvoAEzVVmHfLaqyxt+07ZCJ8smjmCD0gBha9SjFgnLGIKoxKrV7M36UYs1OVdJVHeRV/9/5znMO+cCkDStO5D3rktyFDF9vDxcvwD2qQT6f40PbRpWXxs30du6CiCxiEJOYyhytz7B8Au+0BlSHYWwMadY6R11mMJXMkcWRc2o8XiNHKgQFcLC8KUNOYeqUEhEyW8+Z1VexNF4BwN/xl6QbV7uq0btVkt6AOQoPg3hrrjO+vwhanw+rmAQQDE9NHLF0CGW+lvt+0YEvQ4 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2020 16:58:23.9835 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e27c4c5-2a61-459c-b723-08d7bba641eb X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3122 Subject: Re: [dpdk-dev] Questions about rte_timer APIs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks Erik. We will create some patches and send them for review. > -----Original Message----- > From: Carrillo, Erik G > Sent: Wednesday, February 26, 2020 10:58 AM > To: Honnappa Nagarahalli ; Robert > Sanford > Cc: dev ; nd ; Phil Yang > ; Gavin Hu ; > david.marchand@redhat.com; thomas@monjalon.net; nd > Subject: RE: Questions about rte_timer APIs >=20 > Hi Honnappa, >=20 > Your description below looks correct to me. For the current implementati= on, I > referenced a couple of existing DPDK libraries, but primarily the rte_ser= vice > library. However, I agree that allocating the timer data structs only as= needed > would be a good idea. >=20 > You are also correct that, since the rte_timer_alt_* APIs are still exper= imental, > they can change without constraint; this would allow for the APIs to cha= nge > as needed to support the above design. It looks like the only users of t= hose > APIs in DPDK currently are the event timer adapter and unit test code. >=20 > Thanks, > Erik >=20 > > -----Original Message----- > > From: Honnappa Nagarahalli > > Sent: Tuesday, February 25, 2020 5:56 PM > > To: Honnappa Nagarahalli ; Robert > > Sanford ; Carrillo, Erik G > > > > Cc: dev ; nd ; Phil Yang > > ; Gavin Hu ; > > david.marchand@redhat.com; thomas@monjalon.net; nd > > Subject: RE: Questions about rte_timer APIs > > > > Hi Erik, > > I see that the rte_timer_alt_xxx APIs are still marked as > > experimental. So, we should be able to change them without any ABI > > constraints. Please let me know what you think. > > > > Thank you, > > Honnappa > > > > > -----Original Message----- > > > From: dev On Behalf Of Honnappa Nagarahalli > > > Sent: Thursday, February 13, 2020 11:55 PM > > > To: Robert Sanford ; Erik Gabriel Carrillo > > > > > > Cc: dev ; nd ; Phil Yang > > > ; Gavin Hu ; nd > > > > > Subject: [dpdk-dev] Questions about rte_timer APIs > > > > > > Hi Erik/Robert, > > > I was looking at the rte_timer library code and have questions > > > around the way instances of timer list are allocated. > > > > > > The API 'rte_timer_subsystem_init' allocates RTE_MAX_DATA_ELS (64) > > > number of timer data structs. Each timer data struct acts as an > > > independent instance of timer list. The user allocates an instance > > > by calling 'rte_timer_data_alloc' which provides an index in the > > > instance array.to s Essentially, the library is allocating the > > > memory upfront even though there might not be a need to have 64 > > > instances. Please correct me if I am > > wrong. > > > > > > Usually, creating multiple instances is handled by allocating > > > required memory, as and when required, by an 'init' API. This API > > > also returns a pointer to that instance which is passed to other > > > APIs in the library. For ex: rte_hash library follows this approach. > > > IMO, this is an > > elegant way to handle multiple instances. > > > This approach does not waste memory and does not put any restriction > > > on number of instances. > > > > > > I wanted to understand the reasoning behind the current design to > > > handle multiple instances. Appreciate your inputs. > > > > > > Thank you, > > > Honnappa