From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0060.outbound.protection.outlook.com [104.47.40.60]) by dpdk.org (Postfix) with ESMTP id BFEB42C4B for ; Thu, 22 Dec 2016 13:20:05 +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=8LGoerxGbEAQXhisi8d/VlDc4GppuKzBG0rLgRJisLI=; b=YYpEIbFAR0oqyYBkkdAcvkomkRuLtubRrshk4TnBwqaq3p8p3FoKUF5TglIUrsFrIEATC/0wKe1kW6v8XRGrU0dPCsFmHKF3j5zDuFe2UH8ZgiAJDB6SJHYwzWshuG2qAeI1Ix8tCluEO8c33GcpKz4vaSlMPQg6YZCfjkKNT/o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.171.195.134) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Thu, 22 Dec 2016 12:20:01 +0000 Date: Thu, 22 Dec 2016 17:49:44 +0530 From: Jerin Jacob To: David Hunt CC: , Message-ID: <20161222121943.GA8778@localhost.localdomain> References: <1480567821-70846-2-git-send-email-david.hunt@intel.com> <1482381428-148094-1-git-send-email-david.hunt@intel.com> <1482381428-148094-4-git-send-email-david.hunt@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1482381428-148094-4-git-send-email-david.hunt@intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.171.195.134] X-ClientProxiedBy: MA1PR01CA0034.INDPRD01.PROD.OUTLOOK.COM (10.164.117.41) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: 5f05dfd6-7d95-4108-472c-08d42a64dbe3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:kaFjvr+WbGBZJwzSdU9O7yi3eleZ6wx9YkV/oqUbBIzOxHPUROjbEuM/oeisgDs6JUdjt8mU1PS7vlj9TIO+nOWGHWA9mgfL+Fl00/WzqW+AoV1iqn+29m01EFl2T1U+1T0QTnoK/ONY8cygW4CF4OFAy/oNn5yoUOA1mjymVS1be6AgZZ0AcB7cyH2Y9AObVxf0M+dRRTDLRIJzZfSb+kLjG9JPvRpTm+pI6S0RZSi2gjLlEtwLQBsD4OGW6o9Now1Dw9J0Syp5wZgZ7J4DOA== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 25:fw5kEshgXukW2GeBk8RWJRuwxCQTyzRrCY6se4ryRLgcB4a17F54ZvpzpQW+ciZmRII6DIFZuNTvo/4/tUEILv0oIKQ9vaBQxlLHJA8BhF9vGpy5wf2l9QNMkzyzNk9GHMg/J0XxqV8GVoZqbU9Jw2C7G3gbF/y6hILBAIrcw7N0U4kqdSHBqcM0TcKoaLGysvzDobrGHDM5ficWgXQHFcAEbh0F5abBT95QlhvjieSFRUrtNBDpncLe60boUYogknp787iOFCTfRsi92w2ck9ttqE2d5kuNzcoVyCVgUwAYucdCetfSwV2g/gdDP0q9z9Jfcil6j0S+SG1YraF1VHUl+/66wvuvFs38zYFztd8koASImoDgPtUNZ9gmL7euy9FFSUMjP/LkdK7IZAHHEYMfd2QiiFuVPH4ZwXntv9JGgCP7ffKRpr2ae5k0F+x8rOx2EcWah5Ak2KiASrcsesoN0O148WZ5KUHMsVstO7c9SiGBg2jNx+nnEUguX0GpxFPiflf2TaXhAFzr3SyTwWPHmSmGm4eBn0Ty7jMuC/0chjj345yoCFwGUc+u+NuWJkrWBDdLKGiDKvg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D52XYQAwg4ADn5hFNHCVXDPLo7RG5kZxD6XvtsquIDHP2tBUm+ZDxJMdRcV/KwBVKIVHhs/5wwuO7tNKnfDJawSSSsUvQRiNps7gVMjbNhLa8GZyyZl7F6d9novuCkEBgU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:S5RuY6rVAv3Q5PtpZzSv2fc+zzHjXbcS7uOhXUgRLvuZkHD4VRGoD/rK9RvM+DzmFxGJ1oqeESulXx6ryVTh7UypmUtBDmZQEr14p9Y7F0iIFJrs8nac1wdRX9OeFv4/Eq5TAueeLDp0Ce9a1+hcORAgbByv3AVnyYCSnnGimJp4Rc85rYfyb5FN3HaoHNxQhDZUB5v5oBAvdL1XZMFa+Rd9A2DfIOaIq0T0lA96wSdkxPawH03NigYzS6ZDf5klaWpXN4TW17bgzKUTccyhiqL5Tx8my+apsAugmuxQuAn2rdNbcYIkN9iLyMOsoOmCiTtrFJSKSWaVH73/b73b8RBN0i93nXHlHFde7BTyIlzI/uB4KkPBq+Rl/ykzE4YDPYgrqC7gIHLuiSExWtjqhwrXarX8fjUen0HGpfRj82Vw6iffHW62l8U7cseBMuz9ORLiv/DCCguHEiDqmuBhxuvL0S8FRHxUr0GysAL7rOQwAODKqFxYXvTf+LxKIbLGrI+wI1epbiNvbK/c+V/xgsHdDkegwzxQZDJFbkwPrIv2DdtaqJCR/hd+A/f+wvN6ENk1I5EZxl0sU9DjRf6Y3P01tm8cifjeb7LbEspxlbRhGp0PWhtn8XHqgworL7CG X-Forefront-PRVS: 01644DCF4A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(199003)(189002)(24454002)(46406003)(42186005)(105586002)(76176999)(54356999)(50986999)(33656002)(97756001)(106356001)(101416001)(50466002)(61506002)(38730400001)(6506006)(189998001)(305945005)(68736007)(47776003)(229853002)(66066001)(1076002)(8676002)(81166006)(81156014)(2906002)(25786008)(4001350100001)(6116002)(3846002)(92566002)(97736004)(23726003)(5660300001)(4326007)(7736002)(9686002)(83506001)(42882006)(6916009)(6666003)(2950100002)(110136003)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain; 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) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1719; 23:dKxO/1DaYRT8Cf9mjIshFgSpvpg18oaIaBZbW0p?= =?us-ascii?Q?Fay6zOscHTYwI03IctzuHByhl1s72UNfcGTfsSEV4FXroJCumNEgGyZW3UvE?= =?us-ascii?Q?57/z3jml+sDIoPkizwLMkO78mV1rLM8IVa9fNPn3JVKSuPvX/n5iu43EVz7a?= =?us-ascii?Q?1D0mDDIgY7HEVDUdZSf/5y6dI7mIrqelIxprz74chTOzPYgPvXcP3vhS3XhF?= =?us-ascii?Q?XCWvSi/7MABsX0Nwm0hNYM9ZLPJ984O4dv6OyNM7ZCOTv+ZcxGckMumNIRlL?= =?us-ascii?Q?J+b6qQ6KP92SLkDDoW4uAGrpTehP0Ty3oyXPmfano9hc7Lc2BZW+TDh7pOp+?= =?us-ascii?Q?M6FUwMVWDyQJ6repVcPJRXuF4exwADA504qZC9nZ3GL35UqVe/BUGjNgl3pS?= =?us-ascii?Q?XbeC83S2f/WHq7RsOGt2OFWQXvSvaLT/OHA8uyROzL+OMVhedxHnRqpkecaf?= =?us-ascii?Q?Z87+mR8kjFu6Qd3obvUcL+82eCZYSYEUBZ9K38dVNuIyGwL4mZFMl8YruLtu?= =?us-ascii?Q?HG+2rM6uT58NuAeXSJqX/t9cLHW7afMr92wtzKN6C/rQ1h2ybW5S5hJaVPIj?= =?us-ascii?Q?sv2Wk0SAiQft52fgzqYzMsQltLFowm1hilT8Y8im1BI3uhos+zU0egPJYetH?= =?us-ascii?Q?QTCxhG8RnkQBFEF56dSi5EiYkzcHLVua8sAJX8avhlbyXbB750OtqeovJYvo?= =?us-ascii?Q?yNoma2bpwbLJARA3xHfrka9MUDhd7Z5BDhZWG3Mic6t/4nd3uOHNRhitOnhM?= =?us-ascii?Q?bW0z5wMnzqL35U/sFckTHVL87yDri/A0bvmpJanpTy2eMNrLDG7il8Er0Y2+?= =?us-ascii?Q?FpVAHFgRUTBmgRWKhCP81UgS3f06nadBRIMpCfbc5rvO3SFj2K4Ec3t9usGx?= =?us-ascii?Q?jjz4h96S0yT8p6xl0v1FGHdqki86k8GX5vnCNbEyoD8XZPdO0l0gi88ZQmrl?= =?us-ascii?Q?BzeDu5D7A2qj6H7B66XdkL+2w9bogg54RqUnfbCCWKR3Yt5k+D2dgvrrMcFF?= =?us-ascii?Q?OmSXHO6KbfXHBgYg4dZAI6Q0tZgKDv8PBKY5EW2o6XifgldkKKRlL0R+Z72h?= =?us-ascii?Q?RltzyEnErnbn+XqX7HI8mg0+WBLwVMJNzIbqGLtSUT2tDHtaIyl7wiiNQSyX?= =?us-ascii?Q?BaJqUpdz+ismb/K3uUVLlZf2L2wZLEmTOecUASJq9IiMNC/VmdriBhZhw6T4?= =?us-ascii?Q?xzPPpVJeTkIruDNVmO/cRgBu3aUlZfr08HvUWJT56COrVfkPRCtbhEL2oCw?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 6:8TfXCAmnt4YnN798m0roFVwuPhWBHciPPIeKlesVnlAfWbLRQGwfTXEK5hbXt5mu6tEGRjGtQz2odT2r6KKtEK8VCS9sBX8dF5MZA0vbjpPlFB8LsXALHzF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x8r6RQnw96jzVKmz20x9eCvA+8lWoWB/YauOXzzbCsugeOSYVVADIBvW6eXHm1Zaw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2016 12:20:01.6925 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: Re: [dpdk-dev] [PATCH v2 3/5] test: add distributor_perf autotest 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: Thu, 22 Dec 2016 12:20:06 -0000 On Thu, Dec 22, 2016 at 04:37:06AM +0000, David Hunt wrote: > Signed-off-by: David Hunt > --- > + * it does nothing but return packets and count them. > + */ > +static int > +handle_work_burst(void *arg) > +{ > + //struct rte_mbuf *pkt = NULL; Seems like their is lot test code with // in this file. Please remove it. > + struct rte_distributor_burst *d = arg; > + unsigned int count = 0; > + unsigned int num = 0; > + unsigned int id = __sync_fetch_and_add(&worker_idx, 1); Use rte_atomic equivalent