From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0082.outbound.protection.outlook.com [104.47.37.82]) by dpdk.org (Postfix) with ESMTP id 487E220F for ; Fri, 6 Apr 2018 13:18:52 +0200 (CEST) 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=JODosaMM5DPB96D8PXqMF60ABtPGGJL7pufVz+P+47Q=; b=aYrWwdnUJBOuffKxAZM4y4ep+syy6eB74y5clam63oiYx1hIF4XirfOG0RlNDSLzHJoMEN8+sbRhYmdMQ6zTb4GB3U4Nr6vw/z+Hg6QdaquBluPoOQe05Ql29DdXCYU2NmO6uOmrr4dEQsx9zPl1alcG2x1GMlFeCsTlJVUjTMQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.178.210.9) by CY1PR07MB2524.namprd07.prod.outlook.com (2a01:111:e400:c636::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Fri, 6 Apr 2018 11:18:48 +0000 Date: Fri, 6 Apr 2018 16:48:31 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, erik.g.carrillo@intel.com, dev@dpdk.org Message-ID: <20180406111830.GD1749@jerin> References: <20180318131216.11699-1-pbhagavatula@caviumnetworks.com> <20180405115329.22372-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405115329.22372-1-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [122.178.210.9] X-ClientProxiedBy: BM1PR01CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::11) To CY1PR07MB2524.namprd07.prod.outlook.com (2a01:111:e400:c636::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 26148f62-499c-48dd-07cf-08d59bb02c98 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:CY1PR07MB2524; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 3:b0BtyM6hvC9nLKq7QKpq7LXL24VKNkz24yaoxRpOtq3D2IRbY963IRVCYM7GYAeru16PCfPPzNCPvDE/DPylrpyXnUgpbBaPGuwTqS/V16Ubnrg3FpnIWCCmRmGF23sabzhU3jpSqnv+lEIGn3yb8NjDTGirvOszdjndeVLIVDf2RPEyoLBEFWdiqK12/gDQogFKOw50UXAUM+tG6/+UaP4nTgtFZvVLb5g3pjGkrYv4AJbFTgzfw1EjeHfh2YTE; 25:N3z7h0VyGK79avGWa34nHmQ4IMdLMBeOvYKFKAZREYxlMIkR+14MBW6UWw6I37mkYU9bKS4pyvWOi0KBiTXvnIzTKrTFXYICD4pdkt+cyC296gosJ8FjnKOg8vW1qldKfKWQauT7qdt1g26eyJUMglkuh2h8RfEuzc2Kq/Pqjce9YUM10jBqHvnBaha/QDPZUqmT6jBK9n33rHKhiSPzeQiarcF/J6VYpEU5GGpFlE+w6qw+rGbgXdERm6wNzZVi5Tpb54675ipyuZAyQhmYZgaf2hsVgcp78IWgbotjyqkxSpBGLCz3iO+3gbM/DTKIckz2GufwAnn6ODYzpJvadg==; 31:03xJclzRuPo/luxsLHocTb2z+6XUkuMvoxGdfVLKczbvhhonqVDDYXL9zkqKH1R/23A+IOapGEfYU5ADHa/6/bZdNoxVbBu1OmfHJBpFnTUYuhBMGPXRRS1CFIxUeDm4YquDQG9hKwNsJSpeHw2tJCnqOtmj77p/HLOdTI4aHEhJXDlywYv2JPffogHe7b8f6UUEw4kEElt2IDOnCIh2SuV0/7zXNEiiw7SU/04LBe0= X-MS-TrafficTypeDiagnostic: CY1PR07MB2524: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 20:5AuRyfcKjVTmJnm21EE1X+gg9JtZH4hr4TN775rm6C11BhGtZs69KxDOSKPUxmYKWhY7/HYgRKkKlCt61JYJFXNuO6gxDAPKT2cUfrEblae3jEZW0fZ1VnLsVJGIaOfGYQhE3bnMTdlj/Rz22GUTb6UDOg779kuuDajGEUSLzpqagFRdw/A57sm9vgbklTrPGUGFovB5HCR8AB3EAwZoatt/kbsuE7tnbQ8dPDmOr3+QsAWmHwjyzqbRX8Zzw9rg8ouO8lAzThUECiurQ85gjsnvZhn7kFXMF+hA+QKcUBPN5EQRlStKBnmO9Zyu66WFpNo9XffBagl6jyI/BBvkDRCMxLfQDhixlzVI93hDlwBqWV7gRVsDhF/M21PkbeQ+xsSzDHjIOgdm+4hLE+BhrEKjD1DO2Owi7kY45gOVBzj2ykx6XlSq8uvw1YRtr6Kjxt8uioe9hlbQTFiwvzlm7fhPevk8tKp8cof9EQrW6i7VAb55t02DwrDmk/xpRzKpb7IvAajX2RparPbfvzkhZWl5H/6s4+AshMcp7O0u0gHIPYXaCGmDL1l+tU/OBv1wt0/j7Xlj0GKnExE461NadJCC842GYsUgXqk3N9qK6Ow=; 4:kxt/aqTlLn+JZrVPnVOmbBPXlF6jC+vfJkFvm7M4uysATRlgVJCSm0B825mmanBH9+zEYc7n7i9MluCD5QRE+T8xmvLQ7EZ8Kkq1JYr2DdO5xloq4lJBUgZU9TGwtp8+h1d2rYXNwYiBSvj8ku+r3Afk/e1jScTv/qvcD3aLMmzmsT9mFDaxrhoqmWzN1/hcT3qMQkmxct5rnKMg2msjLoGbKET002kwI9TfnOLDES7x/1fSsXz/6LLj70ayxMgGIsrWPSZlP0PHStE84K+xjhHbs90hyDZRE88rUj8s9GmMKE9OHRQJgGGWsFLI5r3A X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231221)(944501327)(52105095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY1PR07MB2524; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2524; X-Forefront-PRVS: 0634F37BFF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(39850400004)(39380400002)(376002)(346002)(366004)(396003)(13464003)(199004)(189003)(52116002)(25786009)(33896004)(478600001)(4326008)(6862004)(105586002)(81156014)(8676002)(81166006)(6496006)(23726003)(33656002)(3846002)(1076002)(6116002)(229853002)(6666003)(50466002)(6636002)(72206003)(8936002)(6246003)(97736004)(5660300001)(26005)(7736002)(53936002)(9686003)(55016002)(66066001)(305945005)(33716001)(47776003)(16526019)(42882007)(956004)(11346002)(76176011)(476003)(58126008)(106356001)(316002)(16586007)(2906002)(486006)(68736007)(386003)(446003)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2524; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2524; 23:SoW3Cu+yV1gBaqjJ/OpOSunnDbT9CxvAexxBI5qlV?= =?us-ascii?Q?/LX18xWbUKUpMBDuBI4NFVLejfWubZZ75J1WfTwiFlY9foo3Faiaf53Rr7bu?= =?us-ascii?Q?JgVdgtlSDZp1kt2x2ObhjVZOoBmA4umvRREnZgO8aKAq5yLyp4qJ/WFSElTE?= =?us-ascii?Q?xsk38GtQKZZn9SU2abnotKDGeSMBnQtjgsgGWql7e/kt80qKXJJadYuzaUOk?= =?us-ascii?Q?gbrsVylBcGWxXrPTvMvJDW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WZymipxGPAln1inDpjv5gj6R1Wo96OrLreq+KesKSEZ4059lLzJIjMyzPsVXhBaF8ye741ghytR0wlitoGDTdw05DoZTk9FiM+0HuopU4ILGisJyonf6GnIG0ItOYNyreMj4R0jPZmSVvJNZHa48MXToAFQjvR4T6XOS6YI9I=; 24:vzj56LYEvjZA9zRQaHLed+PlTBpMuWIlDZUE6bx8UMV3AEJUdStLFesD3Gv0GQ8Shj3OUQ9DDH9CzQK3sulIT5oZkjgN6Fpu7v7VHyK4cuE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2524; 7:QbugPQ4jPN74l5hdTdqkN5Tp4QGvVn6OaIJE6mBOm/VW9nsS5WOpIzqqcC1nVNT8E6kMi1eWzFUxlAgmXe30si7tGAnu9dXD7IoqFvqFSerlr3lqxlin2eAvuPt0kdpE6g9iSFNVe/EUiXhBp4iIzhK8nURR1D9fAZ36vi1t8szqAudkZjeL/Q5Cy605EidL6Aj2S7LmUfEQypFADd6hN/3FQgXB1fyIPYdEGZ0TVcvhsXSeyNvbMcWz6zdhfAnG X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 11:18:48.8753 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26148f62-499c-48dd-07cf-08d59bb02c98 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2524 Subject: Re: [dpdk-dev] [PATCH v3 1/4] app/eventdev: add event timer adapter as a producer 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: Fri, 06 Apr 2018 11:18:52 -0000 -----Original Message----- > Date: Thu, 5 Apr 2018 17:23:26 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > erik.g.carrillo@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3 1/4] app/eventdev: add event timer adapter as > a producer > X-Mailer: git-send-email 2.16.3 > > Add event timer adapter as producer option that can be selected by > passing --prod_type_timerdev. > > Signed-off-by: Pavan Nikhilesh > +static inline int > +perf_event_timer_producer(void *arg) > +{ > + struct prod_data *p = arg; > + struct test_perf *t = p->t; > + struct evt_options *opt = t->opt; > + uint32_t flow_counter = 0; > + uint64_t count = 0; > + uint64_t arm_latency = 0; > + const uint8_t nb_timer_adptrs = opt->nb_timer_adptrs; > + const uint32_t nb_flows = t->nb_flows; > + const uint64_t nb_timers = opt->nb_timers; > + struct rte_mempool *pool = t->pool; > + struct perf_elt *m = NULL; NULL assignment is not required. > + struct rte_event_timer_adapter **adptr = t->timer_adptr; > + uint64_t timeout_ticks = opt->optm_bkt_tck_nsec ? > + (opt->nb_bkt_tcks * opt->bkt_tck_nsec) > + / opt->optm_bkt_tck_nsec : opt->nb_bkt_tcks; > + > struct perf_elt { > + struct rte_event_timer tim; This will make perf_elf two Cacheline, use union + offset of scheme to fit timestamp on the first cacheline. > uint64_t timestamp; > } __rte_cache_aligned; With above changes: Acked-by: Jerin Jacob