From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0068.outbound.protection.outlook.com [104.47.40.68]) by dpdk.org (Postfix) with ESMTP id 9EB6C201 for ; Sun, 23 Sep 2018 13:08:32 +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:X-MS-Exchange-SenderADCheck; bh=RV3WdXqb48/O88IV4T1uQ9wq76sGbizes0Oxl3RBkvI=; b=Vznic8DDAM6uREc2ygsbrfvIh9/i/qHnV2VOIySx6XRC8uJbGASlL0Y9uwRzmWO0/xMYCW1rNXC64z4WMr9r6cp4GtaT2iC/0+8fvGo1yANtSaIKcZHMCNDPYE8a3v2l2HrvGObdqsWh/LdXjngGRBm//AxcyCrBa/e9VEs35m0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by SN6PR07MB5006.namprd07.prod.outlook.com (2603:10b6:805:ac::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Sun, 23 Sep 2018 11:08:28 +0000 Date: Sun, 23 Sep 2018 16:38:04 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, matias.elo@nokia.com Message-ID: <20180923110803.GD20954@jerin> References: <20180912161616.42306-1-harry.van.haaren@intel.com> <20180920112251.47854-1-harry.van.haaren@intel.com> <20180920112251.47854-2-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180920112251.47854-2-harry.van.haaren@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR0101CA0003.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::13) To SN6PR07MB5006.namprd07.prod.outlook.com (2603:10b6:805:ac::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d568bcb1-efe8-4894-7625-08d62144e4fa X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB5006; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5006; 3:f7UthyS3WBvyOD4RyAsHwHQVS/0iGWIK123hAdlX1ivMJI2MJo0ZArEo0scCauqgMl2MTkvGQYeXhHFACnY2RMyS9E8DYW5cwXktl9Ee0NjJrDWTjnVV6u4JUijagXu63iBqRTvrxbJ0yrGRTvDGlNUXEIb6RQiUVnDiSma4lkOH9mxi7qFMe1fVyXCr1omjFC4NKKPI4H5ab9MoMarBkepNOE7cjirTlKE41c0Z07T5I49k8BxEx7XUcJVaxr8T; 25:AJVyhF9AqNXNfiIfltPktet49MpBhN/xa3zNPCWzUJvTdNKE+2BILEAPhuOf+oD22c4yhvkV/O2J/mfyRqHoFqNEreqd3849ZBdaG21Kg1Dg50/JTjI44nGUJMVDmzrI5Nrs048ySKzQ0mAIPNbdb/kqZ5kwqPUxs4celTbtWz3azU0EsSXuVSqU4Gg1GkjJjkoUXmBOBFGdYCJHu0sO7KeieKbs/STxRK/fgsJVgViHdFBJHN+95gB89FSFaTj38oZLbSfX99fAGZuKMiheqx7ixoe6lDBURHM+0NAmMKGxp573qd3flOTBnG/ka3o33stS4AjDmdiZdxI1EWsFCw==; 31:EcYHo7bnreCwT4H6aGRuV3UARMvaomGPar+SZPotU23XcNwPsq9A78Nu7PbHH89aF7JAOCqqwf0c/g9bbTVrDgjWnWHQsY+hJzZmwFIV+DUYqWeuP3zpnvsxNIa1q5GVOjTSMigsIFpM3GXeqz0X66b6OflGoSuu7lxiiJuVRGhFCcrL8A/UJUlFsDDbiigQSh2EtFtTJ22HF80PNffcfaskoLugr7t/nGs0VPy1X7w= X-MS-TrafficTypeDiagnostic: SN6PR07MB5006: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5006; 20:8WGw22wEEAhugg2y7P0OtgcBQw4ULyWCzLrRBPFO0do8+4ouiDgpLJDDs9AZGHcI3XggN3nCy7mT6O1i5JR/UVfFdgsu2rPHxkZ8xsEfHBANV/oV3iXMurmB/ms2UIHHQBKnoZoMsl8JZnXR3rprfHLhbmJNxHYdC3euWrEX7dd3W7zruVzjDniDIAbfYje3KHoipOr9cPOJBDMeQGrC3ZY6v+YV6XSlr4iehTpvHtwflgsjIWULzSvM3dam02OpCCXecQNP0vAS2fkHxCOi73GVizpvmlWvnFXdn2nworodczrvX4cVQOBhIcg9yUx3vXOQtLXIMyQWxPhRiRgeEvgOIGv18ZkKUrc9H7qS5IvuGsdWPRNq9yCeHc/KFiHKbiDH4UhhXtqUyjY8vP/qgjtWRCEZj54qahMv6TSz5SH8TMFYgNyi3LlKQ6X8Hm+VlbL2s9ldeCzUm2nvTQ+Af9aVl/fGsj2+rRhVp5jNRYsQdd6tcqmRj3GzXU5d85Idn+bh6akBHsgFwdqmtXIHzXcQYXUEPLnkS5p6Q6qylu45BXMUJWLxHSjw5Kk5agcweDJfqi1Ch0XiZox5//aM08FKFAtkDRdWtyhtoG0fVD8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699)(195916259791689)(82608151540597)(109105607167333); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(3231355)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699051); SRVR:SN6PR07MB5006; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB5006; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5006; 4:rTFFFlrAATNjeMuqs7sJ9RMFX1HMZlI9VtB4d1yZqdCZj8JcC+RdbnyGdQZZ4g6p5H3QAxeKqsG3vomovuxyEnLkw4KVDwjY1snwN2JjgqelCaAced/VtkwjbTMoJeUzok8r0fsWYUhdrCDk1OBtUpCXmKCkD7VI+BPoTrtq2ixIRRRpf4HH7jkKc4/l9a/V1O5zKGH1BnuBLEPzjKW1VjebjdFaLPTkQuNRJmQaQhFjJsTfZF+DMMJ2+1QlLtNfo9d9JtylTl0xLz/MEjn9o1HA/XhMngeyzloRxk3tAhh+HjVWA3LeDuUivMEJ+mHymIsneiI6TU131wj9/fXccYweAWxiX4JlSqsdHGgYX01Q6SxYHtVZuMi47oTnsvK4h7Lw0zmbMuuwlx8HZjAluZvNm5z+19C8/mfhyD3DMjA= X-Forefront-PRVS: 08041D247D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(396003)(39860400002)(136003)(13464003)(199004)(189003)(6666003)(476003)(6916009)(106356001)(97736004)(386003)(81156014)(81166006)(55236004)(6116002)(3846002)(33656002)(105586002)(8936002)(33716001)(55016002)(2906002)(52116002)(76176011)(2870700001)(229853002)(478600001)(9686003)(72206003)(50466002)(1076002)(4326008)(2486003)(52146003)(23676004)(6246003)(33896004)(25786009)(5660300001)(68736007)(53936002)(6496006)(16526019)(11346002)(42882007)(186003)(8676002)(44832011)(316002)(26005)(446003)(7736002)(58126008)(956004)(305945005)(66066001)(486006)(47776003)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB5006; 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: =?utf-8?B?MTtTTjZQUjA3TUI1MDA2OzIzOkJ5WDhUenpFdWhOT3ZlckpTNWRLUDJ5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EdWyvjwc6Ffs3hy/9Tu7qbFDF+sW0frwlEloFf3K1EO7CVDkAsDQ=; 7:yUOSrp5NN2bCk2jxQBcQo1Kawyoq04MHaLDUaTMbbmfx89voklV7BoTWBCLHm3XeNik5JWzThz4yOCgKHV7kMXqsLqg6A8FNQMt26zo0nsBhT2nuHez54K70eJA8sKZzKLW3ircLEGngBU/X9WUoDkMjcDitQRuGFft0FX2Huw0u3FF3s2PCUVrTuwVHDjuLA5DHttHPikJ0pJRQ460PHBpCMsrDz60D9hqLo2lNBzOXgZHjIMxHr7qMV1+EFmVV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2018 11:08:28.5314 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d568bcb1-efe8-4894-7625-08d62144e4fa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB5006 Subject: Re: [dpdk-dev] [PATCH v2 2/3] event/sw: implement unlinks in progress function 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: Sun, 23 Sep 2018 11:08:33 -0000 -----Original Message----- > Date: Thu, 20 Sep 2018 12:22:50 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, matias.elo@nokia.com, Harry van Haaren > > Subject: [PATCH v2 2/3] event/sw: implement unlinks in progress function > X-Mailer: git-send-email 2.17.1 > > > This commit adds a counter to each port, which counts the > number of unlinks that have been performed. When the scheduler > thread starts its scheduling routine, it "acks" all unlinks that > have been requested, and the application is gauranteed that no > more events will be scheduled to the port from the unlinked queue. > > Signed-off-by: Harry van Haaren > > --- > > > +static int > +sw_port_unlinks_in_progress(struct rte_eventdev *dev, void *port) > +{ > + struct sw_port *p = port; > + return p->unlinks_in_progress; Compilation error: /export/dpdk-next-eventdev/drivers/event/sw/sw_evdev.c: In function ‘sw_port_unlinks_in_progress’: /export/dpdk-next-eventdev/drivers/event/sw/sw_evdev.c:124:50: error: unused parameter ‘dev’ [-Werror=unused-parameter] sw_port_unlinks_in_progress(struct rte_eventdev *dev, void *port) > +} > +