From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0079.outbound.protection.outlook.com [104.47.40.79]) by dpdk.org (Postfix) with ESMTP id F34E44C93 for ; Mon, 30 Jul 2018 11:29:35 +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=K/Pdp/lMK1QaacriMW6pASgmJJnX0IshasrTNS/f8Co=; b=bpCuEpCCvA3pDHJqpkWzTIR44k7PA2jYKOhn8LaZmy92s3LC6ckD0lpgmd8l0n00U/rzUVsfBe2syrKGo3tCcCK5/rIjnCpIzd5Ylk73XYOIpsgifywGEnsMbCK7Jzlm3X31Jr5PLC024ooGkRDRFMtKi43lCpgWGyW5Bq/2wG8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (50.233.148.155) by DM6PR07MB5001.namprd07.prod.outlook.com (2603:10b6:5:25::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.19; Mon, 30 Jul 2018 09:29:31 +0000 Date: Mon, 30 Jul 2018 14:59:23 +0530 From: Jerin Jacob To: "Elo, Matias (Nokia - FI/Espoo)" Cc: "dev@dpdk.org" , "Van Haaren, Harry" Message-ID: <20180730092921.GA22242@jerin> References: <20180730075408.GA14117@jerin> <80CC5C07-0D73-4F86-9F93-0AB78DEF2BFD@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80CC5C07-0D73-4F86-9F93-0AB78DEF2BFD@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [50.233.148.155] X-ClientProxiedBy: BYAPR01CA0008.prod.exchangelabs.com (2603:10b6:a02:80::21) To DM6PR07MB5001.namprd07.prod.outlook.com (2603:10b6:5:25::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 870f6226-5f49-4d2e-5fe9-08d5f5fef5bb X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB5001; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 3:nSzZYhT5h0eOptNiQWyb19AFO796ZaU3xXFsO4xSPS+0p4bZe9lKTWaVbjK39od4C46JZMFT9SGIEH3F6Q8GvYxBVA6196r1bIf392fCJddcPQseRZWsVu48zrAq8z8nYKsVYm+YDTgtZtfDVOaKEwwffclM6fHeDPYZVrq09cwBhLTcTo4RCCVtfAKdBF55S7xeAEE8T1lexYEbBkTrpu92ba2DeaL+JxDlk92hdp8f1Vx8nHV4hWVRHdB1XCvb; 25:wBZMhO0QxQENIrisI7W0ByBn6ZAw/CTSdYWlNAuQQhCDcfeQ+J5lv8UFGgZf3f7uMet7LniW/47Gm6P/atH9l627ra0vO1MyWd7nbpS+rPHY6E2ZsyWPWJyMOnqSTJreaQJDfNLlW3LFCwOj/ioV977OE2ihHKOWu71qXuGsiFuMadS5dPn5Xf0GCTgwG34NHLvOuedmi9ky/lYFuZHo1xgunlBhQviEvD2ZBXQvUiA6GVRqzuwtArdbor9VL7iumjiPdB5VgsCgD5N8EznrWYgZL5m2IBMYpSwVgyDEmLwZ6xUfBN8yRgazMiED2a911Lwj64NDZZnRweFzghdLew==; 31:BtcRDWTTCe/6w5Krpl6ZvSoS4fhbCfYU45GJYUI7fgjCsrxUpO1Nt3lf+O4On5GMjkK59LpFhg9Thn8YL03PXjb/qWchEA8EZ4etaebicRybrPuK2Qz4GzpEgKwRCFQoqOP4Zl6J67JlEfjKnBQNkyjgLsDIPh//JMeUYkjyXiS40DXVS7RLEtHqsK2y2T+BBtRCliUM7PgJwBUh2wNsnKTo+S1kEk3tvSGKqCl19Pg= X-MS-TrafficTypeDiagnostic: DM6PR07MB5001: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 20:44Wyu4Knl8uUOWkIkjIUuCQJ0axl8Z4MWWluPpIpKCUYxONL5cLiZmbN1c+AnCNIwCuIFxP0naoBvlfIc8yrZhsgTYQ6Q/2cJZEvcn9RVYYMSOhYY/TEmMMiszkyWiIrA9ngIjcHo4Wp3Thd9W0BPplQZrHeqpCfutOKKPPGJymg8ox8nOhMgzSv0a7caxnufJA4CHonBNKzYyBLpEM/fadJmq0q+rJdx9+qlF+HzbLgCKu3uTzCsVYXxLggh0nzDtfIs9b0oab8+Mx9q6tTF4CEGwUl4r1NwkBBHpjsQKJmK/RgZZlM25VGJdW51Aw2SPbeRetHthsU4UaP/asEvBoH1ztO0Jn0TPBxtKgdHuJqTJf8HhUKHCcssgNC1YoUPEUdoinPRBIXPWmcTgkqWYd7329KckNAXT2XyOeqGYzwUsJQnU9gIbc6uxoNjz7r+cNTOyfeGYsPxukgnseVwgIJvLKDjCa1sVtHl1Gq1HzCudDUCMU5PlyS37eDAOteObo8tD1mLXH8YWN2ktKUSi9rHZAP7leKDOlkXsfma3WQF4WTjz6cme7rDLKSjp65brrwqffQQ2g5V8D31Y93gpPRvk0OYlUJTubvLy1yvyc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597)(109105607167333)(195916259791689)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3231311)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201703031522075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DM6PR07MB5001; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB5001; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 4:YU6G60iBNg0iww3uXi4Bg2i8dSkt9mvCCWY8Sbp0+6AKwHw4NWJmha5Y2T0d5uvtpqaQSHidQ/k5NTgawXYUCUbkMQENoNx1P9uLs+5dD0AWuTnoqga+uBxsC5qaXjdw8TT6rqs2ITJQRUlJL/t+gUqJYYpdeduu8m4BbEorZeAHpXhrr0CFkEizKk9tsQdVHlD+fa85oPUyMJff7k0qXv2lB9oZ/Ls7lam8igX7UXskv9yXf586IR5omnL1fsFYLTPZedk1Al4dVbm90yVaa6HBDMDbT0TH2xCbOqcb7v5Y7IeOGAKHd+gWtXvmMcav09kpWMwAHg/UI5qu7/L4dIlrgWOJm6rAqHHLRfa3IB7PDUDET+n0fNdjcD5BQ9mlgJ50oiX/LkmUI4nVsPYTYfLn8DDJIOkZgNkZp0eI82I= X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39850400004)(346002)(396003)(136003)(189003)(199004)(13464003)(8676002)(966005)(72206003)(76176011)(5660300001)(6246003)(8936002)(53936002)(52116002)(476003)(81166006)(106356001)(81156014)(33896004)(16586007)(58126008)(316002)(956004)(305945005)(296002)(105586002)(6666003)(33656002)(229853002)(42882007)(50466002)(7736002)(6116002)(446003)(54906003)(6496006)(26005)(486006)(2906002)(44832011)(386003)(478600001)(6306002)(6916009)(9686003)(68736007)(186003)(66066001)(47776003)(16526019)(55016002)(97736004)(11346002)(25786009)(1076002)(4326008)(33716001)(3846002)(23726003)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB5001; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB5001; 23:p/RX4L9gbg0wMBoHPfmuhj3fkC19BeSkluGKb0Cp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wF4qIpa3ByrZq7sEHlfz9afJB+aUPlujYGo?= =?us-ascii?Q?wsPurxTgv6vT8DCP29fjoriw37hED1VxfjwZCwHqolRkQ1hvKJnR65tYaKjb?= =?us-ascii?Q?TRgzN8H2fx4HzPr791L3rIPdOGpEw8aXJzkaBjRrqV6krtSOM6S+mYe+BsdW?= =?us-ascii?Q?HuuBXgGn5c9enw7NtHdIKjw38Jq9Q69tZuaFwIrCbBMIW0j9pcjSogTr+/CL?= =?us-ascii?Q?kpVfLU7PvLsCED69y7Rd8jAKQZemXK1MJujrPBO57KE4CNJgJgO3O1QQHTL1?= =?us-ascii?Q?VDU++4BhJR3/h9h4X6anjrwFuXphSgctANZH2Sz74QX/viLPb8buoj/Rh4Jr?= =?us-ascii?Q?vyjD1Xg2vsbRj9gkYxa/shrisK9b6QFb2axLgzXKOkrnFt6fDQZW1aiiRzbL?= =?us-ascii?Q?/6P8CcecEn7A09lQAhk8MaG3I6TnPaTvmUj1Zz5fDKfV88UCUdIvkEXNjMDK?= =?us-ascii?Q?kG/TP1tdyDRdlQ1YpvurwF3lezdc4EfUjPB4xG/dbSD0SaE?= X-Microsoft-Antispam-Message-Info: U5Lpj4Mainfn4bJvJLw0FnZV6XnKjgLdeRdEfA3w9v04kEKU5aEpASP25nBAu5TNnB/T3C2iOmzwv5EKs2fFp5p1QiikHxYn/W5gk34cOU3AaZQo55vZP90EYt54xLVTNx8eI1NQb44nUPBuNkiaTqtHZuZNhXprCfsP4dccvUVMtbVtHHsND92V5J68IdiX+6hCoZeykj6z8ORD/Q5Z8iCXJYXsRknI/jr/AJk4vOBKtdPK+oFsseeNJJlQy2CXROzRZItQnJDNnA84MjTizvapUdHSbufYZYJMw+2X2Dao6Kmm9Ifq7Bms5ChySBoH95OOqmgsnXfYHL+RnaMAarAJ4MorwVjMr1lQjxwc9Jk= X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 6:Z/nmZkm+VEW7wFIipGIuzdA/9fBJxKQhGjTeqGo+j0z4DpBdWFs6ACJfT/nx2ogkYPsRW8CSbSdtLmTiQ+uJL2vb86S1DklhJzK41OHtFSeyaZNfODL+WCxrkipp6xVxG9oATT04wIRBLavINUJ6ni3JWdxYePVTO6hKZaA+UA3VjgUTnbvh5lYfMb++XSiHiYYqyzagZTXIec1Lr8wC3bOWF55GbnlryfLX/ZiG7YT1az1cQcyLaIulEymKKfl3QHKVkfCg0r2zGIHSBJ2wNPU96tv6lRm9Ag7KxBnvI/RdSWSUsh6c2y6LI5now4RIqZfhNN5JVRTiLpuntmKxQYIjHTEIe2FgoBSVf2O1Z7zad4Ys1dAN4q6jfQ1nVjYC6djy3S/LYgqvGfxYIqcZMR3bYN20NaYlzfqLrog1r6VVhUL3syx+VfaHKd7lO0AQPis4A5Rm02fTSLyz8+NtRg==; 5:wcX/BIh1w9cf4yCLaLKops5UnNzxESZIU/Z48n05pZhY8iUZ5R0nZ9lyt5smND01Bu6agEWtMZt6prJq0STcVwvLo9+dE5IPiTQyCtsAZrsC9J8jT6tm0GZFxxBIMFoASQQGKT/mMN8rswJuh5s6bXX8SslqykEpScjERCeQRRc=; 7:ih8DB8IBhtyp0O7XrboWaG6K2g6QLXHuFY6cs4KsSgIjTWdsxPZYXDd9PNdVco+tN/4lbB9lpXsqe6HbSF+yDyTUseI+SDUhzSG/xGHAUdkWI1F57dI162clAZ5/F+KnBP5Hq3wlrbmX0qW0r1A7yioJHIUM5L9SIHpuYLm9i+1+py3zzNpG0AMbio7I564q4PV93dw4Ku1P/dlDNzia0LsJVZPY1pdr/VaJL6+Pi2RzLdrhDo6JyYqzAQakVAwn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2018 09:29:31.7135 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 870f6226-5f49-4d2e-5fe9-08d5f5fef5bb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB5001 Subject: Re: [dpdk-dev] eventdev: method for finding out unlink status 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: Mon, 30 Jul 2018 09:29:36 -0000 -----Original Message----- > Date: Mon, 30 Jul 2018 09:17:47 +0000 > From: "Elo, Matias (Nokia - FI/Espoo)" > To: Jerin Jacob > CC: "dev@dpdk.org" , "Van Haaren, Harry" > > Subject: Re: [dpdk-dev] eventdev: method for finding out unlink status > x-mailer: Apple Mail (2.3445.9.1) > > > >> > >> In bug report https://bugs.dpdk.org/show_bug.cgi?id=60 we have been discussing > >> issues related to events ending up in wrong ports after calling > >> rte_event_port_unlink(). In addition of finding few bugs we have identified a > >> need for a new API call (or documentation extension) for an application to be > > > > From HW perspective, documentation extension should be enough. adding > > "there may be pre-scheduled events and the application is responsible to process them" > > on unlink(). Since dequeue() has which queue it is dequeue-ed from, the > > application can allays make action based on that(i.e, Is the event > > post/pre to unlink) > > At least in case of SW eventdev the problem is how the application can know that > it has processed all pre-scheduled events. E.g. dequeue may return nothing but since > the scheduler is running as a separate process events may still end up to the unlinked > port asynchronously. Can't we do, dequeue() in loop to get all the events from port. If dequeue returns with zero event then ports are drained up. Right? > > > > >> able to find out when an unlink() call has finished and no new events are > >> scheduled anymore to the particular event port. This is required e.g. when doing > >> clean-up after an application thread stops processing events. > > > > If thread stopping then it better to call dev_stop(). At least in HW > > implementation, > > For an application doing dynamic load balancing stopping the whole eventdev is not an > option. OK. Makes sense. Doing unlink() and link() in fastpath is not a problem. Changing core assignment to event port is problem without stop(). I guess, you application or general would be OK with that constraint. > > > A given event port assigned to a new lcore other than > > it previous one then we need to do some clean up at port level. > > In my case I'm mapping an event port per thread statically (basically thread_id == port_id), > so this shouldn't be an issue. > >