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 7C4ACA055E; Wed, 26 Feb 2020 00:56:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F21671BF8D; Wed, 26 Feb 2020 00:56:41 +0100 (CET) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00047.outbound.protection.outlook.com [40.107.0.47]) by dpdk.org (Postfix) with ESMTP id EF7872C4F for ; Wed, 26 Feb 2020 00:56:40 +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=DnbiEXZPd7IkLWEGrIGRtvQqPACYrkktIMT4VBDoA8M=; b=aTHeWwj0OAFD/BaB0Y/BQ6VLc6GUIwbK1SFOhYvCI2gG7/3I1YVmlkSYeSUy2eEnqSH+weDkhp1SS/fih2z4BS+08dW+4KM9uBoz/lEBjZFJtzFJ3nndLsvK4CNfJLZYuWzrz+2MVBWfX/UbrIdViTGlYFkulFrHMtCbZQeoURM= Received: from AM6PR08CA0023.eurprd08.prod.outlook.com (2603:10a6:20b:b2::35) by VI1PR08MB3039.eurprd08.prod.outlook.com (2603:10a6:803:3d::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.21; Tue, 25 Feb 2020 23:56:37 +0000 Received: from VE1EUR03FT026.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::209) by AM6PR08CA0023.outlook.office365.com (2603:10a6:20b:b2::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18 via Frontend Transport; Tue, 25 Feb 2020 23:56:37 +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 VE1EUR03FT026.mail.protection.outlook.com (10.152.18.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.17 via Frontend Transport; Tue, 25 Feb 2020 23:56:37 +0000 Received: ("Tessian outbound 1f9bda537fdc:v42"); Tue, 25 Feb 2020 23:56:36 +0000 X-CR-MTA-TID: 64aa7808 Received: from aeba7fa92da4.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 97411764-CDCB-49B9-B424-17E7C25C7DF3.1; Tue, 25 Feb 2020 23:56:31 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id aeba7fa92da4.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Feb 2020 23:56:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aR1nN1rvWmpS2sRtF1xow8KjlaZlMAqVoz9rw52q5s45oHe9ym8gHtyjqwA6EZM6vUMd0mN6KGT76dSoa6t4PRwpIdaI8n2O05NDaeN3AHwwMvPDM4cgji++f+DE8b38O7CtQesYjmVXA17GB5DBMxMM6neuZQw5/Yn2gsSQZjLMCPEK62vzqWc1f9ZRG6867KziBdebbGBczwcctikx3qgSdC1Bo15KHs8UczrtqMobejR/CIR3tv4zcvJsXfO9h67j9HWRKQ5DMcPKoC4sEABfDfkbYC74X47nIxQrep/ghhoQzCNF93Oo/HLAAZOKlWhh/wWigVgVXaIBenL1Yw== 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=DnbiEXZPd7IkLWEGrIGRtvQqPACYrkktIMT4VBDoA8M=; b=c7ltSMcyWvI9iHxc8K/NsoUMK6J6gMDfuvEn3/LHFuBOtNWEZ1pHvMQ/sTQkyXx9Pfi/Y2C4kzQm7W4Cj6VR65fWFFwVlChrIbaUQKmusnhrXrqXyQIE35EwiNj76Clb1D5kSbHWAeCynX8ezIIhM/qMSPWJ9kIrPjUMr4mBZBnZwrVhNdTYERM5fanXXSWqXz7Rh6agyhxFwNBQsCBKX9M7ghD2nRjlqLmQ7TPq8DrTa5knvFBAnUJAbjwkw1I01PMnwBviAFY9iMe7tQlgjnJGmvtp9hHcd9jFQcCfNT6z8viRMKq07KKAbDh9+X5nmg+INU7AVPeiaTfKgLH1Ug== 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=DnbiEXZPd7IkLWEGrIGRtvQqPACYrkktIMT4VBDoA8M=; b=aTHeWwj0OAFD/BaB0Y/BQ6VLc6GUIwbK1SFOhYvCI2gG7/3I1YVmlkSYeSUy2eEnqSH+weDkhp1SS/fih2z4BS+08dW+4KM9uBoz/lEBjZFJtzFJ3nndLsvK4CNfJLZYuWzrz+2MVBWfX/UbrIdViTGlYFkulFrHMtCbZQeoURM= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.27) by VE1PR08MB4671.eurprd08.prod.outlook.com (10.255.115.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.21; Tue, 25 Feb 2020 23:56:29 +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.021; Tue, 25 Feb 2020 23:56:29 +0000 From: Honnappa Nagarahalli To: Honnappa Nagarahalli , Robert Sanford , Erik Gabriel Carrillo CC: dev , nd , Phil Yang , Gavin Hu , "david.marchand@redhat.com" , "thomas@monjalon.net" , nd Thread-Topic: Questions about rte_timer APIs Thread-Index: AdXi+Aa5jZT/coE5SH+/cgmn4fR4JQJPh0lA Date: Tue, 25 Feb 2020 23:56:28 +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: 276e402e-908b-4eb7-92f2-d3332ff166ac.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: 943c1bac-c27e-42f5-a08e-08d7ba4e59d5 X-MS-TrafficTypeDiagnostic: VE1PR08MB4671:|VE1PR08MB4671:|VI1PR08MB3039: 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: 0324C2C0E2 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(136003)(346002)(366004)(396003)(189003)(199004)(33656002)(86362001)(26005)(54906003)(53546011)(2906002)(478600001)(316002)(110136005)(6506007)(5660300002)(7696005)(66476007)(71200400001)(52536014)(81166006)(4326008)(186003)(8936002)(66946007)(64756008)(66446008)(76116006)(8676002)(81156014)(66556008)(9686003)(55016002)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4671; 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: GqKqUT2NLmYuDYBKLvnA+v+hHeASoy4S5F4hc7TCt9iWkEoW9n0QPUHPuFSSd4XhN59XAqZMtuWOXKLEergzqyNm1Xdnwen0xv+mHc2yNm4IblJec/3hdxhXVy9XU6dCvgwrRVQx9Q/thkTkFEY9GpAMXnvuJK0D0pik9SzTeRN14u8rEySsk0bMUuE53tWspOboDUibwb6m6ET8dGxbbCxZbQrIO38gBNLGLqCdIjtjvtKaacxZrVFKyst3ncsx4gL2FZnBnP3GPxbi9EN2cJfdlwS2uXxkmyPArsas82E6DIDdkqUHqEPmrRfHIBdMbGLKUb+gTR3sYhAYsW9XSFLSFwpOqmaVzD4uhpw3lnKnd4DOtVuWkJlfz21pc+r9NYNVoyw0aRfEO+cpQVFdUMvTQBO4+V1bnakcIHK3CULInbPNrNVZUdQ5soaKkN6kI20v+uAl8EZA838Kr9ryp7q1WOlZnwEf1xuJpHdDFGTvQ3MTERY+XieK6cPtxujw x-ms-exchange-antispam-messagedata: /MedSCcKPb495B/AGELiMV+25Sx0SpIbGMATKjojztra+pqJoWc21ljNySb22B4/1mCU5JczZAJFHj9vSeQTLw5oDlgMm10HrGYsiSIq3KX0E6VeYZn2IcoUnaIv2Z0KCO0H2sE15oqUMKkn9xc2XQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4671 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT026.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)(346002)(376002)(396003)(136003)(189003)(199004)(33656002)(316002)(5660300002)(356004)(55016002)(7696005)(52536014)(478600001)(6506007)(53546011)(26005)(9686003)(336012)(2906002)(4326008)(70206006)(54906003)(8676002)(110136005)(81156014)(70586007)(186003)(8936002)(26826003)(86362001)(81166006)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3039; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 8f72997c-7569-4019-0ad4-08d7ba4e54e7 X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gVmRmuoThsDYIv7cFAlxLxt2rL+JLGmclWp4wn9CH0q0nAzkm0BN/sLIAJFbrkR+Ufwheady3mVadP4gYSoliNFtJ8vOmhXR7N8829OBxKjBQ2JooOWyWjU87zXODw9MmKsD3uP8zKIoIdGzvhInUa1WXuiLi+oBeAH9H7wclCTWipBWIxPEux02QTfIOohspSZpQggsEfpVeDRCJ8hLJarpVQrdFNs9ajh18WBysxgXGL36y+vCnQd57tdfAZiG3S81aedbGhaN2u1yvsgudiHMHXEYy1NqrBczHQ0eupN8DuoZthG1mhbfUDmxnVeblvRdlRrL1k45AWfxK52T/skg8ri8tjm48Ypc1sN1x/I98nhit5ffu6OX4TgY4aX8cP0lZhsrQBXsbU8x6DUuNE6ZZsMgpO5Uw7xx+9sg/1ifUQ+gTLl7fuSNTP/S26w9aTWfPoFpVKyxGrW6QTiiBVIIDfrztZmZIa5c6uUCdLUsPv6sm4DW6O6DL/iex/MM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2020 23:56:37.2591 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 943c1bac-c27e-42f5-a08e-08d7ba4e59d5 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: VI1PR08MB3039 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" 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 >=20 > Hi Erik/Robert, > I was looking at the rte_timer library code and have questions around > the way instances of timer list are allocated. >=20 > The API 'rte_timer_subsystem_init' allocates RTE_MAX_DATA_ELS (64) > number of timer data structs. Each timer data struct acts as an independe= nt > instance of timer list. The user allocates an instance by calling > 'rte_timer_data_alloc' which provides an index in the instance array. > Essentially, the library is allocating the memory upfront even though the= re > might not be a need to have 64 instances. Please correct me if I am wrong= . >=20 > Usually, creating multiple instances is handled by allocating required me= mory, > as and when required, by an 'init' API. This API also returns a pointer t= o that > instance which is passed to other APIs in the library. For ex: rte_hash l= ibrary > follows this approach. IMO, this is an elegant way to handle multiple ins= tances. > This approach does not waste memory and does not put any restriction on > number of instances. >=20 > I wanted to understand the reasoning behind the current design to handle > multiple instances. Appreciate your inputs. >=20 > Thank you, > Honnappa