From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0075.outbound.protection.outlook.com [104.47.41.75]) by dpdk.org (Postfix) with ESMTP id EEA9525D9 for ; Fri, 10 Aug 2018 19:35:21 +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=JhFdxSDQaw87Y+Hac5LC3BiaMp++g0NxLL7p5/xojNo=; b=A/lLLx/86y5BnECcgIq2chT0DbdL62vXT/mylS8m5pikIgFkqqGO8E2l4lVLfirgIqPqJj4f6KQHoRPCMrA/GELDMTEvRgSygpEVMALSxekVFcE33j0SAdzphdrHDAiY+hILg0z8tufg32pbgtoptQ6bB4in51LxEXU612s7Ivk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (50.233.148.155) by BYAPR07MB4999.namprd07.prod.outlook.com (2603:10b6:a03:5b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 10 Aug 2018 17:35:18 +0000 Date: Fri, 10 Aug 2018 23:05:11 +0530 From: Jerin Jacob To: "Van Haaren, Harry" Cc: "Elo, Matias (Nokia - FI/Espoo)" , "dev@dpdk.org" Message-ID: <20180810173510.GA6835@jerin> References: <20180730142614.GA11265@jerin> <6D43DE84-583D-42E5-B298-0E7BDA0C17FB@nokia.com> <20180731083107.GA23233@jerin> <4C54AAAE-A872-47E1-B815-AF68965F9F3E@nokia.com> <20180809141814.GA15603@jerin> <4C66F1B2-02F0-4F6E-A6CD-6A3F44CDAB42@nokia.com> <20180810145209.GA2475@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [50.233.148.155] X-ClientProxiedBy: BYAPR07CA0069.namprd07.prod.outlook.com (2603:10b6:a03:60::46) To BYAPR07MB4999.namprd07.prod.outlook.com (2603:10b6:a03:5b::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f82cdbe2-34e8-4fbf-c1ea-08d5fee7a4c7 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4999; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 3:lcSb1UQlxfiqlY7t2pJAFSX4Psb42WMkxPVHlAB6/45h+w0ZKyoOq3vDFAuVaxUx1A3dNMrrAVuFXs8rknHFOTaTCyvmx9vbDBsmaeSGOljYFVF0QTiExkDkEGZdQ6EKl1KCoOZVcgSWWtqOHD/1JKla4nh8STCjZWnvHlXR3ES5I1qp5PMyRfYOgUv0KdJzTYpX/b2FObOCiVKZk0u0d1MlZu0bMF+32Dwo8MI7dbdGxeti+EjvPUs+3SoY1dG8; 25:WZf+VfGtBJv+FFtUh96UK3hK3czv1Y7f2PJ433PyD7vRk9MiMZrEI6db6EI6+uK58n9GRefzdzZI6nzNS10rdCkf3QZudWeTceI/ij+6dd6dPh4Cn/ZczMCzfd1OTEpC8TZcXo5OEf5BsHUiDoymk+Cl3gS9mbJc3mYbQeWfKi/nn8pX3tZZqGjf+9Ue3itWmHeg2p/G48hIEMccTd6fZgxhnd57s9C6awLXebE53Yxm2+a0vRYqNtmUbjHmvBUdqAxUfnNrlGRwx5wCXkHODzMVwpRIC0CgD9+ANSpy6GY36KL6e70ZjVasvuRJ3s2PFV3M2F0EIhNU0hmrsB65Rw==; 31:DMHSSUw2s5rxum1LMVDOmtFbEe2oeBRSGBvoN60muylMvnoOqWL7NsbSw4AKygORVDWvAmmlH84XKzaD0KxijWynzc6dJisCKzdxWumwgJNWOVQy/zOmKPvygff6bMVtOe6HHCmKyOCFhSozXAHwJ/uILY1P0U2v83vhpqIutrE2/Id7PX3ccSYqziR1tCf9N1Dj6DIMTOVmZWmz8IpREKfVgEzQ2XwYd/lMkgab/EA= X-MS-TrafficTypeDiagnostic: BYAPR07MB4999: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 20:pfGw4rR8WXFkoXaxqC1HR56Ki8QpLaDJah7e3F44hYrFYHvkp0ok9VDhN3ocaFcuXRowUc1PtGe3lfWne+qVDI3qx1eqkYIBz3XlXNPsMwrPpq4YrQtzY7s0voh0ivaa6hpLBsoN6clrGEsxD/mfvm1mWjNcEgx3t1lU+pqiYbFqbM2uQma/EdVCrhNRw7Qk5Cp1ha+91hkJ2skHzTFO7mt9+MTG/YUlcuLZ9trDMTbuYF7Rl+iO2SKT7bnJsIdHiDvPcPYJKPKygVeqhQ+pk+KLZPJN1ZnvxqIT4Up1vkNpEiLrijGXx2QyeOxSoi3aLevdxH1LswWWVp6Ty1wbJNsfOCQ5mMLC7POf5H9c+VSqrgPxe2eVCgvCaYoov12H4kBRc4qo7cuXpSVUFWkrudE87V8npyl7rnKlI2a5t7zkYMFF5Q9K0EvV/fd+zX1tWjoDKifXcDCnSr47v2d7TgfQkXe3bOs+DnGqMZqgx81toH5eMaUw/ct3LyUbpfTHXTwoB/52VRIJwi1JsrugNNaSQUCQb4FkkGfHNIOwPo/WAL1ewgNaTrUv2ZhL4NYFGOqbmxYf57rCUmRITFBXO8eOQgJ5uY/BTnrIHnpaXj8= 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)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB4999; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4999; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 4:pFnRHLLzVDhMJeP4vfH4ygWIS9aUUl5GymPI/FHo2nbwNGkOc7DQMTOJjJGANn2DXMHQpA4Paycd1J9ALumTkWHXBCcFLMIrYQqSWif7kXGEiV85sKJCgju5OLXY88VmMJpzNasDWdF/7ATZXZ5TfxGKbQgpqItr3Hy5sMJ4m5KX7xAczsNLfI0jKOVcW+fdKig56gYJcKkA4TxsVz+J5dUxYdrRzaFnb3sMeRZqzcZd/LG1SZjbkDJkBIv97zj2siZ/sb7B+folQrDK86rakM+Win+4xaefaSTlT0lcAX0Tgs+9UPHNUYHCLIB9j2A55PKasCmVslXvt33dyA7vi0sPamXGdIUBtvHgX88WhpRE6ToD29lgzzk2nQgNm+/Rjog5l8HRcW925UIo+vVq+35BOnzaxeag8CTF3bmoVDY= X-Forefront-PRVS: 07607ED19A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(346002)(376002)(396003)(366004)(39860400002)(199004)(189003)(13464003)(47776003)(3846002)(8936002)(2906002)(68736007)(478600001)(50466002)(72206003)(11346002)(25786009)(33656002)(8676002)(44832011)(5660300001)(386003)(229853002)(66066001)(4326008)(446003)(53546011)(1076002)(16526019)(486006)(33716001)(476003)(6116002)(186003)(316002)(26005)(58126008)(956004)(7736002)(14444005)(54906003)(6496006)(6246003)(42882007)(55016002)(6666003)(105586002)(52116002)(76176011)(81156014)(106356001)(33896004)(53936002)(81166006)(52146003)(9686003)(2870700001)(6916009)(2486003)(97736004)(23676004)(93886005)(305945005)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4999; 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?MTtCWUFQUjA3TUI0OTk5OzIzOktPT2xVVG9aMVdVNlBnbk9KWlhQUEJ5dWhQ?= =?utf-8?B?L3hLQkl3UEZ6MjFPbHM3aCt4UVM2bkxzcy82Wk5wSklEa2YwQmh3SW1VVzc1?= =?utf-8?B?Y0xzRGQxT0prS3dtOUxRelRteVNwZ21yamR3dlNNa2QzWnEyT2xUZGF2VWM4?= =?utf-8?B?czlEbFpSbG5yejZUN3hoRk95ZFZUeG9saFVWbFlWcHhaWGsvcmtaaHExK0x4?= =?utf-8?B?V1VqbjJnODd6TjlCN2JPZ2hINXQxYVpQMG5EZVIzTEN3NzRFU3FETjdMZVFO?= =?utf-8?B?N3kwb3JqNjFVdVhEMkdHRlorS3h5UDdxN2JIVS9aanNMcUJCczNUMXg4dWl0?= =?utf-8?B?Yjd5N3FJY2hyWkFKQUo1MW5EcmhNb3EvMmh6OVVOVENlcXhmRW9xY1ZBakZH?= =?utf-8?B?Wi9jNEkrVDlGcVN0T1pQc3RETitnL1RQdzFLVVp4ZGgvSGhna2tuUW50aThR?= =?utf-8?B?K0NuZ3M4bzR5SXZZWTF4T05OakMzZjlTa2l1ZVp5T3FmSlpBaDM4Zm9yWHVD?= =?utf-8?B?bWhTWThuT0g0UjBZRngyOUhmaUJtWjhHa04xNmdkK3VmemU4U2lEam9ObHp2?= =?utf-8?B?YUg3YmRTOElxT2lDNzdTMEMwb0M3SXF4WnlsREpLSXY5enlqS1JhUWxpYkQ2?= =?utf-8?B?MkErUTFvbmpOZ1diMTIrOHhWT3NzRzdhSVp4Q2dYeGovUlFLOFQ2S25oZFZG?= =?utf-8?B?UVkra2c5QkNtVE95UmNPTE9oRzlQYnBsd0hVb3piL2ZnNmVlbjd0V1B3UWZi?= =?utf-8?B?T0wveG5INi8rT2x6aEtSdHV4K2RsczUvOCtMcHFsclJ3T1hqazhzMUVOZ2RH?= =?utf-8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qLaoAv7KDW3/vuhpUFlgVEEtZpa9yLMesun88tqrmnME6ldbRR8YJ/tIQJTejK0yFUhgm2HhCvTy6pyNg9IA4pqehflMKE3TQ==; 5:531LEhH5lRN+Txosze/vY/wVdeW9P8w7kpo2UPdbTbz3TS2oa2HX2nCEmTYxy3FlzliqTkQjlhpZHLrPKGYRbikA6ifcMAQo/QE32z8QfcsFrPG03ApijWUn9rzlnXo1Q+g2eeOlD0MvKunOFS1jBRdem5cTGpNl7Mc9Xh5lvJE=; 7:zGqOkNTDihq+ZgHAnJ+SXwO2uPYKOQE85qxX7L0vJZzbsF8CILH/6HNlf9iy3R9rplJ1mF3EX35qxWLRvp0u6mA5g6v0IdujD8PJERWz15z9AdoGJyAiZ49PvRihkVe1m9cw0gqvqPYflBQJMXGYrW0McVSGmAfH4j0TUyW5F5qlku2Jo5IutYMJcEUu5pSimdbccMTcWmo0ctam1EOlh9BoHODGZV00mkDqnO0z0Tab0oDjkdWeT5fD3hn6vFrt SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2018 17:35:18.1096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f82cdbe2-34e8-4fbf-c1ea-08d5fee7a4c7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4999 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: Fri, 10 Aug 2018 17:35:22 -0000 -----Original Message----- > Date: Fri, 10 Aug 2018 16:55:31 +0000 > From: "Van Haaren, Harry" > To: Jerin Jacob , "Elo, Matias (Nokia - > FI/Espoo)" > CC: "dev@dpdk.org" > Subject: RE: [dpdk-dev] eventdev: method for finding out unlink status > > > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Friday, August 10, 2018 3:52 PM > > To: Elo, Matias (Nokia - FI/Espoo) > > Cc: Van Haaren, Harry ; dev@dpdk.org > > Subject: Re: [dpdk-dev] eventdev: method for finding out unlink status > > > > -----Original Message----- > > > Date: Fri, 10 Aug 2018 14:24:02 +0000 > > > From: "Elo, Matias (Nokia - FI/Espoo)" > > > To: Jerin Jacob > > > CC: "Van Haaren, Harry" , "dev@dpdk.org" > > > > > > Subject: Re: [dpdk-dev] eventdev: method for finding out unlink status > > > x-mailer: Apple Mail (2.3445.9.1) > > > > > > > > > > > > > > # Other than that, I am still not able to understand, why not > > > > application wait until rte_event_port_unlink() returns. > > > > > > Making rte_event_port_unlink() blocking would be troublesome if one > > doesn’t care > > > about unlink completion. E.g. doing dynamic load balancing. > > > > By making it as blocking(i.e the rte_event_port_unlink() returns when > > unlink() completed) forcing everyone to care about unlink completion. > > Right? > > I'm not sure I understand the issue here. > Is anybody suggesting to make unlink() blocking? > > For certain PMDs, perhaps it must be a synchronous handled unlink(). > For other PMDs (eg event/sw) there are multiple threads involved, > so it must be async. Hence, APIs should be async to avoid blocking the caller. > > With an async API, if you don't want the async behaviuor, it is > easy to build the sync version: call it in a loop, optionally with a delay(). Correct. My point was, rte_event_port_unlink() can be blocking as it is a slow path API(does not really matter how long it waits). If you think, it can be called in fastpath and/or application can leverage some cpu cycles on completing the async call then you can add at the cost of new API unlinks_in_progress() and make sure to update the documentation about unlink() that it can be async call(currently it is documented as a sync call).