From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0076.outbound.protection.outlook.com [104.47.42.76]) by dpdk.org (Postfix) with ESMTP id 8AA7F25D9 for ; Fri, 10 Aug 2018 16:52:28 +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=7qnvhb7bgs0svdGzAcB/3M6bGp/meFw581pWMChUiQU=; b=YAP0lpFw4rfb2yb+OOyAnQV13Xv6UHsPGl8pdWg0TFakIZsn+LbkH3O58UgfEx5wvYnXa+LdI9glxa59bTsO5KXs7vhCAB1/klUrYR6Ta+3s7KNZoAetfzzp43kHCa/NICbBY/TsrL7bfL6iZm2D6dW91sotCJw5ZDlUWZfPfHQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.201.124.136) 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.1038.21; Fri, 10 Aug 2018 14:52:25 +0000 Date: Fri, 10 Aug 2018 20:22:12 +0530 From: Jerin Jacob To: "Elo, Matias (Nokia - FI/Espoo)" Cc: "Van Haaren, Harry" , "dev@dpdk.org" Message-ID: <20180810145209.GA2475@jerin> References: <20180730103638.GA26701@jerin> <75889C0D-2790-4EB8-B202-1311D764CCF2@nokia.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4C66F1B2-02F0-4F6E-A6CD-6A3F44CDAB42@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [106.201.124.136] X-ClientProxiedBy: SG2PR04CA0147.apcprd04.prod.outlook.com (2603:1096:3:16::31) To DM6PR07MB5001.namprd07.prod.outlook.com (2603:10b6:5:25::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f5b302f-77e8-4461-25f2-08d5fed0e391 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:kdyJT2CNu+gk8Nt9oB/Wnm6KaKa4CbnmAp2cEtBtHt59QNMFnF+GZOAmFe5g0QnLS3R5q0vIncz8+sR5hgqMEl4KywJz8UbP1ECCZWg6/5FYsjx+9uEtpGnjXaIK0mcRWFj8/rYpIGf+j3/EJnHOMBjMYaSGiPVELOofrGm+YZnJLCnkbn2EO1kV9YlN3FriPJCCSv95oJ6DFxxxus+d+vYuBF7qNIiumVIsCGvT1GLciRMkbTfZO8ZAIHs6e1JA; 25:FwR4BQy5YOyLXt3yiPYLeO7mcpCiAykcOYah+XuPwl9Je4sIZGsr8MHW1CUo5KvyjsXAJRiIrWGEhjmUfP8DXxw+ndUYUYeV8eJbEnCWRvPVMlziLLl6T/GvOskzmtbkJrCvAxWK3wZl7QHCwgnRxOzYFysidEMaI7JhoCqBxYB3QOLCXzXkahAEo8DetPnisMmsU74GwL9pLA61dapQxGVywmoqDdrgHuiEt046EH27fv5A+XZ/0kWpeqHZ2v9gE9Lu2IJY1pDXb8N2lwnPDrD4VA+kPMjc9LuVn8RDdM0hu/+a3nRoDtUmwOHxrsBNWjSzbTXW7eSMMmRKbAdIvQ==; 31:6MOPhRMXdO2DYUfdRgfnDdsqHCOovDFvxoOzh0K1nytqlCzzWmcYY7VlJy3DsMu3jqD53ZLFPP1rKVleW5ntbeMBdIyQth6sPZpdSspUq9CvmBGRkspEQ3Ek9bExx97+3C2uwH2O75P4VgUoO04JupPSXUADf5UT9ZhP5ElTQ0hM3Lif6/PPasmqznWt/MIrooB+DS5sN1b3V4NimkgJ9skDYyqOadOZWM4u+ApAdrY= X-MS-TrafficTypeDiagnostic: DM6PR07MB5001: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 20:276R6GbnFKTQi0erSEMEJLFzACaB/16dr9Zng2f2r0MZP8nEkupbUGOzYPf10PCF7nBGUnt3FhdW0zG6+ucXBjpzhARy+TOsTJLF3syHKxbwUVbuCVeXMjxexHcKex81Qxg+sdtENk93wNkSa/L5EnOVoM1tpOeo+jl3DKdOjYQdpfMqoeioan+p0zHikvL6rFwCXpdqGl5pwTuXKBjF92VF7RKE1oGPtwmzk5aBrH7cjCuqQ98XYS5XviuEH3B+zVSpRXkUq8n8MiGzMhbEIIfKc2qq6CEUjfiwqzUBakkyBU08+Gqa8QFzMvg+avcwDkydHnTbZbY4DNEiK5S4O39JJAR1huKmfMBv+zGLib3WxssS6g8VlKEIwpHo9V6rlzpSTmd9fuUCO+4+6plw6oayan5FisgZkrJfe3/doZUnxduUCAsJKV5sAfiIhQKHDkkIOSM3RRzxiPPVNoRGHYEOctkcSpTjejT6qlxsQ4CyJfZMLmZJS5NuMKQPbYlvXz2mw+/zDSnXt44Gupf13q5BQY8Hn7kOAknzCoFvMtwq/XUV8AiwGT1KCgQaxA2n1Ni/2JkJXMe0BrCySromw19u8fHZq4/30c2r3xh3gok= 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)(93006095)(3231311)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201703031522075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DM6PR07MB5001; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB5001; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 4:ipjUaAX01TECV441G3B+Tbpf62dklbL3l4M0P1huHRJTIwE8W9ZhXoof/AEY06/X/tLwISJg965gtwF7ZznXEgD2aWK8kKUVaBGJyuuUcbICLKk+OsFVp8lXk9fy5N4kvm5s9Ml/6DUrW9WFACuPGPpibF04BNj26Og8XUV2/5Y4lBqPFqdOe7FRmKAYBO7TTc+RZiom3orInwO3YabNwdbq9U9KbkEXtKOQFOQwNEMrJU04u8SE136ZGp9spyuwE1P7PRSfL/8RBYWfCMSrdBkYRS9PVogC67z4LiArII5FWR9vWqPYZdGxBzTuaS8nqatj+cpWY4cVnNfqQuKx2jX4lgvMjpk86lt22tUasS4piLBtp9M5Qht6Jzj5xr0TE61dPmRdrHzFqtD3baBJiqqEattDAVFO7gSZfprzK2Q= X-Forefront-PRVS: 07607ED19A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(366004)(136003)(396003)(13464003)(31014005)(189003)(199004)(6666003)(52116002)(2906002)(33656002)(3846002)(6116002)(2870700001)(1076002)(2486003)(68736007)(52146003)(229853002)(23676004)(5009440100003)(476003)(5660300001)(81156014)(81166006)(8676002)(486006)(956004)(47776003)(6246003)(6916009)(9686003)(55016002)(8936002)(44832011)(33896004)(6496006)(446003)(11346002)(386003)(106356001)(186003)(305945005)(50466002)(58126008)(4326008)(316002)(97736004)(25786009)(7736002)(26005)(16526019)(478600001)(42882007)(76176011)(33716001)(53936002)(296002)(93886005)(66066001)(72206003)(105586002)(54906003)(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: =?utf-8?B?MTtETTZQUjA3TUI1MDAxOzIzOnk5VjlIcjd5ZVpzSndzV01kL0tRbUx4OEdn?= =?utf-8?B?SlZvcHZhWkQzaFI5bWNiQ3R1VXFEaEZVd0hpSkNkVEpLUWErYWF6Q3hxdEhW?= =?utf-8?B?bS9qS0tBVTZGUjlZdDZJR05GOWpUZURkbTQ1dDRDRCt3YVBxWWlYQnlLM0pN?= =?utf-8?B?WjZIZ0xvN3o5Q2tROGJlYzhkZ2c5RzlMcmw0RjBLY1RzQ21TZzRuend6a21W?= =?utf-8?B?WXJjZGNNODJSMjZJcXIyc0RPeU8vT21vSUNRQkJBU2VlTUI1VWlua0l5TWxW?= =?utf-8?B?OXpMWTBmdTI2Y2lJK0VzN0tkdXhCTmFsSTY3N293N25PNittSjhBbXJmZ1lE?= =?utf-8?B?Y0RaekNpZXZxbnVGY3NGV3lTV3hjckRWVng5OVBnTzhTVjNURm1JVEdlNTYy?= =?utf-8?B?aVN3cG5sclF1WXJIMjBqZjBZazJUeURqSll5QUlvWmsvKzJrMnpmMURkTml3?= =?utf-8?B?N3gvYUVLaVpGWkdOdERRTDBQR0VSa1RhdlBnTGl4N1FvMXIxekpDQ3VrSWRK?= =?utf-8?B?Q2FUcFV2eWxoMmJRSjJHa2NMMjJPT0RUOEp4bzJ4K0RvYmV0TFpqRDNzYTJn?= =?utf-8?B?N2puOUhSVDliSmg2YXlsa3dTQkc2Qk9ybE90aEpIbGVWS0ViZ1ZGRml1Q3pT?= =?utf-8?B?QVROQTVDd3FQR2RJSTM4ZmZmVTlWQ0RTUklJNXR3aURWeHJjWHEvQjRhMUFD?= =?utf-8?B?bUlJQzdOZVlUU3VFNGxDekx6T0F6S0p5aVdZeFNqK2NWUm9vZmR6dCtZNmZV?= =?utf-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KHgZgDtRfJnW+iBbQAKE4QqUv1evB4yrX785FX+AtPqGJuByPz9zBgH0K6VBjQlvNIz+fxPPMnr9k5OTKgWsMI/3mdGacrO51DC5/U1wCVFXoIsbk3mM7Luc7XsvLlk0f0C9rfQzxSShUeSRKHAEfaKC4oulBILhZ3KH3Mf1xYAbqAvlacEuvcMqvmYMsA0ZLpIPqysOcjbS6ans7KuxZdMo0tUm+VqkC8Ii+QFoB6AUIlKYpS+ymw==; 5:DL+Rs2dzkBPXeG52+SnbmtyeDdTiMJVlhGIcGUWZMR1tEmZ2piLn+D3/MHfF0PvsP9vqynP/BfJGW1lnRw4vvWCcu+DzLzw00deYurEpruJ4NgQ2a5lwueRrGu3LzmRMooihsOYcu95aAVwirBi2BfIJRqev/unsp6OgSGuXMrI=; 7:SLL35CNP02+1zHphbvzM79wYQT7IKkbsDIUoP6ALKrwVaoPCMe5rf/0Hpg+zW7VgkO5xxUc3UkdRLm/vxyZP5KhjsRchXl24xNODzfEIZ0wMsCD6jLoYA4VcVNaSgpBKSZxKq0OQiw7YTEIpl7QMRAy907jEhUJRaZHTVZaAPxmTt6LDSFxOywlXeorgN+6JvZRy64jgae2yruJ5n5xT/FDacbJSkcbFlxRYFtPbUJF9+eRM57g8MHvINANXVvRw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2018 14:52:25.1554 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f5b302f-77e8-4461-25f2-08d5fed0e391 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: Fri, 10 Aug 2018 14:52:29 -0000 -----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? > > > > > # What in real word use case, application can, do other than waiting > > to complete rte_event_port_unlink(). If we try to put some logic in like, > > > > while (rte_event_port_unlink_in_progress(dev, port) > 0){ > > do_something(); > > } > > > > The do_something() will not be called in some platform at all. > > > > # Any idea on what will be the real world use case, where rte_event_port_unlink() called in fastpath? > > In our application this could be used for example to pause scheduling of new events while > working on an “expensive” event to minimise delays. It is also needed when destroying > queues, though calling this fast path is debatable (our application enables creating / > destroying queues at runtime). If I understand it correctly, Your current issue is, SW driver is not waiting for to complete the unlink() operation so that in your application you are seeing some abnormalities. > > These are perhaps not the best examples but I would be very cautious to make a function > blocking if there is even a small probability that it could be called from the fast path. Let assume even if it is called in fastpath, what else, we can really do other that calling rte_pause() in loop. realistically? after issuing unlink() operation. >