From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0044.outbound.protection.outlook.com [104.47.36.44]) by dpdk.org (Postfix) with ESMTP id 8033F2661 for ; Wed, 29 Nov 2017 11:29:16 +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=/xp8DRk9VGIRjc8BSeJ9DcUwTIIA9OZoCj5Kc9+2PUg=; b=mLm7d9QCB8WFK+HcLV2IPkwvvaevxRimfdxdwNM3ugW3H+hdRta6lT+Ea7i8RecjD0c0ZJVSTfwSp10DLsLjeMrMPgI3ThFU07/VJDD5mDAmadsVl+1nN7hPr7xTcMBhCtSI8u7F10c9fSCUzW4LlmYX/Wgl1eJdAjrZRxH2xgk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 29 Nov 2017 10:29:12 +0000 Date: Wed, 29 Nov 2017 15:59:01 +0530 From: Pavan Nikhilesh Bhagavatula To: Erik Gabriel Carrillo Cc: dev@dpdk.org, nipun.gupta@nxp.com, hemant.agrawal@nxp.com, nikhil.rao@intel.com, jerin.jacobkollanukkaran@cavium.com Message-ID: <20171129102900.mg6qw2txqdpes6u7@Pavan-LT> References: <1511217333-142455-1-git-send-email-erik.g.carrillo@intel.com> <1511890808-6072-1-git-send-email-erik.g.carrillo@intel.com> <1511890808-6072-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: <1511890808-6072-2-git-send-email-erik.g.carrillo@intel.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR15CA0070.namprd15.prod.outlook.com (10.174.254.32) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5952b40a-ebf7-440e-a99d-08d5371409aa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:YLAYOVvZUMybofSCEBlo3SBQGTrnrQSamXdrVPUeWalquTlwp4zVcJCJgl8zu6GrIe9NDMfqmYGcgVFCOJ6TAxI5+qCXiikgFD+YBiBxEMSxh10FdNOM8FHuNNa3hbsrEBVtrCMend72cE2D1J1aPe/GGjXqiBptArfY9p7kK3DTDTp7ksDQ2ZPBt3vmCUzl6RUShy1dohu+UtCdCGHgogITAtBJ9sgZs7TC5wLJOwM8UH6idkBcrkYQU5JoIQne; 25:uB5XumdUSps66eBHfWtdiEacZ5Rzl+8SYlhf6N/iJpPpweG8XrWFiV+ay62+F522uzpiABeMe6vv/l7LaANSlpEcUUVjThHblvu9SFc2QtKDSowbAxu76yNFVV3vfRxYMJhqHmVd8n+443AXDmja2GfJMZSHrpdASZvzgAmhuqq+dqZejlE0CIzgv1yMtQGc/M4Df4RziTqAhbbVZ/+zAkRISHdjItZEr4yCUlBDG+yK5eVCj2wFAButnGDlh5k2fAe8/7rmSFd3NwbKdd97qbxRsj7nJJm9MnfAzY/M66ahqEnHva6Bg07bmR0wJw9Ah6sXiReeF6dQFYtxj/dpstp9euvsnBrwFbZ5c/g04GI=; 31:YgSMi1RWlYgYMTx2tvxYIr+8MTxlHLQZuSaA+psqPwaUUtpAkV5UtkWiseHqSo8Qdr/p04EY7OBa2tU2ukRKsZPAklCbIXrWMWM0jDcvziPKXTpiYKVF+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zpyCeSUf8Al9ptnWqK1xBlWMDShfpg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(3002001)(93006095)(10201501046)(6041248)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(6072148)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3469; X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(366004)(346002)(376002)(189002)(24454002)(199003)(105586002)(81166006)(4326008)(229853002)(47776003)(97736004)(83506002)(72206003)(50466002)(106356001)(33716001)(478600001)(16586007)(5660300001)(42882006)(5009440100003)(316002)(53936002)(8936002)(8656006)(6496006)(54356999)(1076002)(6916009)(189998001)(6246003)(50986999)(68736007)(2950100002)(6666003)(76176999)(52116002)(55016002)(101416001)(305945005)(107886003)(53376002)(3846002)(16526018)(966005)(66066001)(25786009)(7736002)(81156014)(8676002)(6116002)(2906002)(58126008)(23726003)(6306002)(9686003)(33646002)(107986001)(217873001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3469; 23:PhQr4CI+X3mCAWBbxHLToNvP/oyLFmJ4GmKW3RmGI?= =?us-ascii?Q?ElxOox71pMB79bMnZQDYcvghsP+ykM6QVayuwpdgL1w1R7suSBIvTXgWGriK?= =?us-ascii?Q?jXWDcGy05NT2nRj2HnY9Lciwe58gE1LKO2DU+zLoXlLLlJ7KN3U8x0JfEgot?=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Y7b6oXpe8+8xw9vQKPdynedAABNQxyf/WmXY0mA1Rz/E59CcsRHXSA1WdKUsLadKigVINyLnD6ARv6xBMaQVLKFrYgu/d/lrhc=; 24:drHRWlVxWbUDiBs6DTT6t+V5cG0Y5k/3sllLw0S/kmsdq6TCvQaV+DmY326A+SaHLf+t9tL1e4merCWPw6xkP4SH7Hv+Uxc1VykCtH6NmnQ=; 7:Nub+FE8CMLA2FGWMnR0Dh9VHZH+dNwI8Uj7LKiAsdQxwYKjjZ2lU1WHm2C8O10Yx/8QDKJRuqfYv1wCq6+op/zPTBz0Ncz5W4xIYHMZ6p6XaP3B9OarQwuYasBZimKgodsNtDKVFUo6hDOPqqj2giC9q7d40+0hL/QFiR1Ok4CRIOZ/9Ej+YV0/G2rw9ffLPlLn1U2yw/+zIoSgYa7/dPLZtOIblHOCAehEZqyJUS2AawxDRgwP3j7lJgzIrDFBu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 10:29:12.4158 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5952b40a-ebf7-440e-a99d-08d5371409aa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: Re: [dpdk-dev] [RFC PATCH v4 1/4] 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, 29 Nov 2017 10:29:17 -0000 On Tue, Nov 28, 2017 at 11:40:05AM -0600, Erik Gabriel Carrillo wrote: > # versioning export map > EXPORT_MAP := rte_eventdev_version.map > diff --git a/lib/librte_eventdev/rte_event_timer_adapter.h b/lib/librte_eventdev/rte_event_timer_adapter.h > new file mode 100644 > index 0000000..14661b5 > --- /dev/null > +++ b/lib/librte_eventdev/rte_event_timer_adapter.h > @@ -0,0 +1,427 @@ > +/*- > + * BSD LICENSE > + * > + * Copyright(c) 2017 Intel Corporation. All rights reserved. Please add dual licensing here with reference to [1] > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * > + * * Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * * Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in > + * the documentation and/or other materials provided with the > + * distribution. > + * * Neither the name of Intel Corporation nor the names of its > + * contributors may be used to endorse or promote products derived > + * from this software without specific prior written permission. > + * > + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT > + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, > + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + */ > +#ifndef __RTE_EVENT_TIMER_ADAPTER_H__ > +#define __RTE_EVENT_TIMER_ADAPTER_H__ > + > +/** > + * @file > + * > + * RTE Event Timer Adapter > + * > + * TODO: description Addin the description from the proposed RFC[1] > +/** > + * 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, Add a state to indicate TIMER_CANCELLED as per [1] > + /**< Event timer successfully armed.*/ > + 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.*/ > +}; > + [1] http://dpdk.org/ml/archives/dev/2017-August/072981.html -Pavan