From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0044.outbound.protection.outlook.com [104.47.34.44]) by dpdk.org (Postfix) with ESMTP id 046ED2B99 for ; Wed, 6 Dec 2017 16:18:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=R5dD1JzYEk1QjwiSFpeAF/hPFQrf56X3Y+gLBAhza24=; b=EUOJV7FuySuyhEFmv2kwaCL6CiOBmUPrnDeGF4eTI1Kx7dauR8s016dVQ/wEDGPJmIOBQoJIMt6gXyyxvARO6tVkPjYdk9ex/I6MiBwUvWJdeCMDUrmPwCEiJpgQYMaWsFQQYAPlCn738cOnCPJptoCF7wmyXW4gk8+uTzJAjmw= Received: from jerin (111.93.218.67) by SN2PR07MB2525.namprd07.prod.outlook.com (2603:10b6:804:6::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Wed, 6 Dec 2017 15:18:07 +0000 Date: Wed, 6 Dec 2017 20:47:35 +0530 From: Jerin Jacob To: Erik Gabriel Carrillo Cc: pbhagavatula@caviumnetworks.com, dev@dpdk.org, nipun.gupta@nxp.com, hemant.agrawal@nxp.com Message-ID: <20171206151734.GA1591@jerin> References: <1511890148-22295-1-git-send-email-erik.g.carrillo@intel.com> <1512158458-22661-1-git-send-email-erik.g.carrillo@intel.com> <1512158458-22661-2-git-send-email-erik.g.carrillo@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1512158458-22661-2-git-send-email-erik.g.carrillo@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::23) To SN2PR07MB2525.namprd07.prod.outlook.com (2603:10b6:804:6::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09a056c1-74d5-49b9-b2d4-08d53cbc8f1f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603286); SRVR:SN2PR07MB2525; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 3:pADc284mazG5EVe8nE6MahJAu9TxHyjsQ5eTT8D2liXpLJzb5jqmdsc3JuXN7HE47zn16GIZXDLJ836emUHhnu21stXAAjFyKA+CAr73Ys7G4LBSpsidS9PYyJZ7WGmtr3D+XfMXtuRO80lRmyVigbJEGiq2W9ya2OQjSW9+Y18ghP5szqsM1779p/CRjC6u2y4bNDkmBbVqWb1SipYF0HHAqyAK0VPEq+j/ILi99O1CKQOPBsLUiWPuFrCzlJFM; 25:QmnY3mmlyvuHeo7RyHnDUDjQVdpbYM1ZGOKkmYIqQr8kH0NR3AneplZJwQmDlVKv5BqfWTVnw6K2iEZfuV8b1RPG4P7EDT81Fiu7uSe5Sx35ud6JbrHBInwkDGL767v0GytDoGYQB5DtIaj7IulJQmLACnrhZomEAm6kbs2RryxMsgE0hr2anQIbpRHfApT+H7YeS308NIIvZrNHIslGx14SSzAn9Z/8zdgy5ZuvZcthSvUqDNk70pUSP+oeU/gOhIGawe5bjj/CIiOBR4G2VvcUS6cPioryQieHBEFpaWsimiF0oAyq10Uu/GFhJBLIizRnx2WA0nENUOqIX/jP/g==; 31:yvum0H1sCBjbbJ9svdQqTflDLQGR6jJ6QM+16YIXprcKgIVP9sNO8USiWSbTfwzqmpRtt2mZfg2g+f+rASWke1zTWKGLzKQZ5alauWlPt2zd4ofvCo2y+boFdDdom8X3jjAcI86AmUJjWZM8TAsNPTmdRUsxuDhrs2EwGHcz+TVvQlWGSSZvKuvFmAloIrrfh0f/wxMMM4YF7Oi7qQ7/ijPHD2Q7FWfVU0edoYjCG4U= X-MS-TrafficTypeDiagnostic: SN2PR07MB2525: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 20:Xt78ge8kkSHdldVtbz5G6sVrfMC9GpOD2Kbswm8quum9RuzDuSnmiDPkAKpTqxpN/VZHG3KXRbGzhx3OsebN3fc8oOA9au7IrWxkxfdl8oxna8lC0MMUieWXlTBisDRjxzQBozlu098PAIJ+Y75pNJspLXUQAR3WM1clysZaLd2OcwMFtMnEySswNl5FEL+yITNBAhhvN2a6t1YwV4vvV4aZzgJFjQaPKw/Nc4/djwQaF/9qyyFQ2rLciisxwcrI1sjUjEU6IWyzZsPW0PwUfHQybBGRvOhL4npc+0CNa8aTrW8Ql28UK8gIn/xJZS/w0UgWxuB8qpVRdrVM0tGVYfrkEG9HFND+q6CNkzTFqxSi0F1ptKRPUqZeGxuRXzvICON3+YU8/w39ZXTZ4VLpC1oh5xlzmbzB2VmaFAYs9pIWdpO2m8vS5osvcGyZqzkjMpW7eIPkcz2IwvjYQX6oOVbo0CMO85joK/VrhTeg3oiJ9EATN4iVcWW/fsUejhj6rOW4AP4dgitS/dIEqq7+G5405r3NdlEa4IWxrf6LaPNnCV8oOop18Anfmo5uavxKcHthrwwHQQvph92RTGseqYRHIgyGKPGwhbm06M2MWLc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3231022)(3002001)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR07MB2525; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR07MB2525; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 4:J7HNGUrUUThdMtP9NdDgWTn75YH3wTTkRJJoSqJAiYIlTWhZXlUuqMC86QG+mShhczIhG7QblKO15K4QzqL44c1sMzbHcpmv30c7+BaNpmocJ6vXNjBLCLRgMv3kU9MGVpWbS8MllpftGCZXxtHAB9EAMsydfHB7B/gP54aupeq/uqyCr8lw0Cqq929wueBWuyNCDCnT5es8iZiiOoZiv8+GOtABU1pQHg5vzlCynCeHK9NJVyacDiD33R3YQ15j3YWQUaeFJHfNykXDT75ZAFgH7gxwnyjtdPihsRG21mU0Zvqdq7lxSA871LTWUYBw5MEKK0SSGiZoT3uSmbYSP08eP2sNI43FBMDvJMdd+QA= X-Forefront-PRVS: 05134F8B4F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(13464003)(199004)(189003)(23726003)(101416001)(58126008)(53936002)(9686003)(105586002)(97736004)(33656002)(316002)(3846002)(52116002)(305945005)(2950100002)(6916009)(6666003)(7736002)(83506002)(16586007)(2906002)(42882006)(5660300001)(6116002)(6496006)(33716001)(8656006)(25786009)(50466002)(16526018)(4326008)(1076002)(106356001)(72206003)(55016002)(6246003)(8676002)(478600001)(81156014)(81166006)(68736007)(47776003)(5009440100003)(76176011)(66066001)(8936002)(229853002)(33896004)(18370500001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2525; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2525; 23:PBCz0ywcNsOxpDejVrKhwJyjvVfG6KCN3BExR3Vcs?= =?us-ascii?Q?bhCWp+qsvvOu8YqAP10gKGkWo2aXfHKGSRQJlbNV6Eglly/WJLZSxe9sg5qj?= =?us-ascii?Q?JxFP9ARIgcQv44T2yc2uAsVq3lOyQEJyeUkSfqk0uDsVoo1R3r03aChxT6WG?= =?us-ascii?Q?Bm0KRxhGM9EVIRiwSn82sli1316sgHMNkFECqtjcVEuprcJHIczgrXToDVkw?= =?us-ascii?Q?JifMJmRDyvhd+nvaM30XjnYXybKBIDudbJOEs/Hr5bKmMukBtdTQAfeQj6Tw?= =?us-ascii?Q?pU1UgTr85UCm09kUg6EE+ocFABaN6yKpyg1RNFqjYiVEM+ke5rvlmlfVGqVx?= =?us-ascii?Q?wgqXMfytex4XirTAEgyCC1xHXyM61XaIUbhJTCVzv9DQLaoo0F0VQWO2pPgP?= =?us-ascii?Q?3jyIhHpARqxPsoPLV8m2YYdQqYoobMl8NhHeu0o8sc5otXNraniiTSw+DAL5?= =?us-ascii?Q?sUjDYSh0QqEz2sf4LN6vFfTyftEgHYKCOx5QrihiVgxoYoCHBMcahk+z6xEg?= =?us-ascii?Q?ebQNdPdJQkROXGKvtrex7YEGAsQVtTVhC5nQmJcx0Lro0oNi4Eh3ynIhYWn0?= =?us-ascii?Q?VQPoeXjvztrdRSAWe0YEBkVGLBjMyX09caLJlquZXBZso9b8Z5qyfwVnJrdg?= =?us-ascii?Q?M2/sD5VrAo5YW5U5IQEISRIEZATa3nSnTWwZAw/jcq9z+A03qCxKLEXv8vvt?= =?us-ascii?Q?a7ZTwNAImWf44SmKEJbi0prUUAc5xed8n288PxAYGD4Hp8zVER7zHu6/NWRe?= =?us-ascii?Q?wp978Uuj+Haa/cJl8awenKpVFm3oAfU5FmOleNdt3u0HC2XVKwgdptFH813G?= =?us-ascii?Q?+ujgkZuC7X4nA8JPEn6LvTptkDvpJUfHwRyVaZ7hUv224+DO/NzUQoILeQ+3?= =?us-ascii?Q?BCIcxkTbdYWov1n6ajM23wAjL81FmktK37pWov634TiQWNhjN4X8iOn/SMcN?= =?us-ascii?Q?1nCkST5IseNXULiS2StPHSIUuptA56+MdKYLQybRLAuGnfQE0YIG7YwgCupU?= =?us-ascii?Q?GPNNhs/a6gGU+gIdMAISdno6mSa9z6VTyE0O5tSREdtZ3ZD2p64InUkvdSt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CJxrJ9r54MRiC7Aoo0wro0sI7RKDdMn6sZYmBdfChURlj73TEHTkyF/WErKmxec45T3rwP5t0n+08bshqT2SkBybLpUy6Stt00AmCYoa2ESsUg+Pe4VzlT3BRXDLcYusBBlnjCEpy SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2017 15:18:07.0061 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09a056c1-74d5-49b9-b2d4-08d53cbc8f1f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2525 Subject: Re: [dpdk-dev] [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter 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: , X-List-Received-Date: Wed, 06 Dec 2017 15:18:12 -0000 -----Original Message----- > Date: Fri, 1 Dec 2017 14:00:54 -0600 > From: Erik Gabriel Carrillo > To: pbhagavatula@caviumnetworks.com > CC: dev@dpdk.org, jerin.jacob@caviumnetworks.com, nipun.gupta@nxp.com, > hemant.agrawal@nxp.com > Subject: [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter > X-Mailer: git-send-email 1.7.10 > > Signed-off-by: Erik Gabriel Carrillo Feel free to add my Signed-off-by as this patch is mostly based on initial RFC. > --- > doc/api/doxy-api-index.md | 1 + > lib/librte_eventdev/Makefile | 1 + > lib/librte_eventdev/rte_event_timer_adapter.h | 518 ++++++++++++++++++++++++++ > lib/librte_eventdev/rte_eventdev.h | 4 +- > 4 files changed, 522 insertions(+), 2 deletions(-) > create mode 100644 lib/librte_eventdev/rte_event_timer_adapter.h > > + * Event timer state. > + */ > +enum rte_event_timer_state { > + RTE_EVENT_TIMER_NOT_ARMED = 0, > + /**< Event timer is in not armed state.*/ > + RTE_EVENT_TIMER_ARMED = 1, > + /**< Event timer successfully armed.*/ How about adding a state called RTE_EVENT_TIMER_CANCELED?, Which will updated by the driver on rte_event_timer_arm_burst(). This will enable application to get the state of the rte_event_timer object in latter time. > + RTE_EVENT_TIMER_ERROR = -1, > + /**< Generic event timer error.*/ > + RTE_EVENT_TIMER_ERROR_TOOEARLY = -2, > + /**< Event timer timeout tick is too little to add to the adapter. */ > + RTE_EVENT_TIMER_ERROR_TOOLATE = -3, > + /**< Event timer timeout tick is greater than the maximum timeout.*/ > +}; > + > +/**