From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0058.outbound.protection.outlook.com [104.47.32.58]) by dpdk.org (Postfix) with ESMTP id 73816374E for ; Mon, 30 Jul 2018 09:54: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=JWgi7rDWF2iq91K+TBsYDBpm9dbbGr56DYRudwIFwEU=; b=B594BO11DJ9ewjX9uq5L6yV509JD/6GMfiXvus+O7tAIiuEiPPs0dZDO7KjTbGxnTWbzedlQrvm73whKQ/Bo/4++NKrhf3BpaohYJpPPHLGLYvmjoV8902N7ctSWXEV7+M10CndMiaZWSlvoKjARn/GC/FwVM0PETRHsGLD8aXk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (50.233.148.155) by BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.16; Mon, 30 Jul 2018 07:54:17 +0000 Date: Mon, 30 Jul 2018 13:24:10 +0530 From: Jerin Jacob To: "Elo, Matias (Nokia - FI/Espoo)" Cc: "dev@dpdk.org" , "Van Haaren, Harry" Message-ID: <20180730075408.GA14117@jerin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [50.233.148.155] X-ClientProxiedBy: BYAPR02CA0015.namprd02.prod.outlook.com (2603:10b6:a02:ee::28) To BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 819ac927-dbf2-4095-57be-08d5f5f1a7cf X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4997; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4997; 3:796A7UfreoGHKhshRhEBWuSDPhURnS+bIGI9gNrlR3PZsrMj87FChN27nUccjZIRK9ve6DxQN2ZqFH0wK7fdFaSO7CJ1PERZ5e+204EazyoUvv31SOtSEiNWCXAuNmw8Y2K8TbKFE02zrp7LdMQAMX2RCG/s7ezTbp2uPbDVPkmVCaF2DFJvVx2L0zG2WOMOnduVld4V/o+Y3Q3i7YxIhwsMi2qMun1qShTFsHl9QlCb7XV/+ZzCmADadbfj8A/+; 25:g0L1mXYSxeCVC2F3H2Wghh22LxS8RdJ6mKGoaMZIAUooO9Re3QphKCi3r4NSuq06OoNu+O0y9mHmlxneQr1TK5Jc2azUtMjyXTp4+mfqOKi4XsXMBa8/Qb7qqMEly0Fk9+uqbcWJdPnBxR+pYrbkUgKo2z3wYV0iYKwbvrA85SWvCBNSK5YwPhEaltVSsJSiv1YBsexaxSeep0UPIfXy1ipWLJ5RLXVXljumMzZvFra3paC0YPFG5UW2/y3r01mjSNMTvLvJyeuQ4CyzJzbODQs6WuI6oYxSpcCrvm6zZysmsK5zYs8hXaNGbDNVDjE87znqCxZCjK/LFNYmQRFgyQ==; 31:cP8K1DzMpmJ9d28m5caNi573a6tVOU+41Z/QEQ1T6WiQg9E8+t4rcRt+PwUFBjPkZVCL42k6ORdCSfzWeHIKY4rpLt/s1uGv0SDIxbZjhWm6BtVH0NCVlRe1sqgMfNLFjMxZ1eyw+c5WVL4lFtMrRNAVdSKTlZ+7nDTSTipw5SLQUQALoFtKvPSEbMMNDub6cERtCpfXHuaVxUGg3GxGWF6Ajlq/ySkOiEvpUQT+qR8= X-MS-TrafficTypeDiagnostic: BYAPR07MB4997: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4997; 20:TfM1TY5JHvvPKxHVzpvPMGCHapMYh9wfLic4J8IgiOCTJFxgW9lAcO9u+WzQ9r7Y/c3hG+ZEs1Hxlk5TyT6K86T7LiJKyGiUKUkhF3OHvCB2g1BQbSNfVlhrVnv9cQH8ti9/oPL8OfyhsuSNDOmkg6SK+zlFhnIZm5U+lHm5oopxgn5rxDPdw4cU0nuaZINM11L39kLlJ7ssGK+LW3XVR6ih/W1otk66Y7DQrijKsn/ZwX8DXoJlpsNQviBR3KsVzwTUZLpLydJcI/9vveNg7lOBmynuwj5saBn3KJO7G/8aj9jQpMn3oOBrrUOuq8E/NxpGC30grj94wa3QYwtQ84Gk3oUSbszzKbo0dODqxzRirFLJR2lHWlpjd4YI8SZHpGGZbejtwuKZFFsbGV8464eQ1J575npNUrRL9GEGOnt83QG8EK3Pd3xqWizEHLDMYG1DyuRR4Vb67ENOdX6iBz3yWC04UEwIGK910IEBrSnGusKGMIDLbhHj/KWSabYTDkxr93R1evKdG9hpG8OkX6J1+GWRUsw8iASJTcckj/a4W7qK4+7hwJOlbJLbx8XLjPD5syV39eSg/GB9fGz2u6yBL7GwN02l8TaXFTJIAzU= 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)(3002001)(10201501046)(93006095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201703031522075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB4997; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4997; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4997; 4:7ytlvQ/Y/FIKx1mpL9EIgIf+f1EUwYmB7ln6gWLiRcIfTPHm5+ar2uQLneWmCU7esNeK6wKPXHddHGCXB/oGuUS7TgVVa4DbqOY4ONaIgq190kq3+QAfE8OBy3v/iljC/AJu4wGikvkZK6LOm8y+tceSD/oyo7HZ6z6gANyYqF/NEA2BPvZwzlt0HPSz4PxJ66JZHw0dQsKS1LU5e+yJdIhu/7P19k/ZLolsPiNmC2rH+cz3eHSOvWlB4NbAHGtyq8Y1e/7P0CgimBIFYo0dxFgcNZ7q9pVLCvxTLtYH8p5guj65xHa4QnUg68+hV3/H86dIDz5WOK3D+vSm1QJmc419XaJlcuwkXST2q3Gie/tBsExQXN3SmJCrXQ1UNWiQRBuSJIrop9rebUkjboM1GbI9Pbr6aHpiSNP9mdi6b+U= X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(366004)(136003)(346002)(376002)(199004)(189003)(13464003)(106356001)(6116002)(25786009)(23726003)(6306002)(6916009)(305945005)(7736002)(3846002)(55016002)(72206003)(478600001)(6666003)(9686003)(1076002)(966005)(53936002)(33656002)(229853002)(97736004)(956004)(105586002)(33716001)(68736007)(5660300001)(81166006)(8676002)(81156014)(4326008)(2906002)(6246003)(47776003)(50466002)(446003)(11346002)(8936002)(476003)(26005)(486006)(186003)(16526019)(16586007)(66066001)(316002)(42882007)(44832011)(296002)(33896004)(76176011)(54906003)(58126008)(6496006)(386003)(52116002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4997; 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: =?us-ascii?Q?1; BYAPR07MB4997; 23:AszprXVVjxNF/aFfgFlIbKTmLhFVTug+4oVpQV2dn?= =?us-ascii?Q?CKNuh+7FCtZ5H1jmkgoEGb0GoTLKe3Pac2wt21ClXcWnv2hRgNi6V5jvwu1b?= =?us-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b/bUl376Fgm4GniIzxnEwa?= =?us-ascii?Q?hj7gvzi6prlyh3H7MEWCoKB9yW9jh49rRkJ6qxCxEM1kotTF9OQWKfFUqzyQ?= =?us-ascii?Q?W0qNT/fPH3+ZG6XjpzYnVGx4qNwhQ3/AGDNRSDd45lr8W0A8jWypUGZkhK1K?= =?us-ascii?Q?nCM7rQYCBkPGA2YhkxTWdcgbMT/9Vqbzgwn17OENZWjj9HjX6zmodEw2wWSP?= =?us-ascii?Q?Pg3daYQfbVt4Sh2sTtKeTlBj3Mlov0YtKM3RCfAMBVWIuKjzjaK/miRAnbJb?= =?us-ascii?Q?91naxqqYSJm52GA+OtpTNyygNpT4zlPpVocA4HcbxpPukEOEfOfOWDMISUZT?= =?us-ascii?Q?1j7wlCpHiklga7fudQ0k/an9NuTNqRkAjnLtLce6d9Tp+pCxGflUt7beJvss?= =?us-ascii?Q?8sdVjbLOIfMvBHEniKhRG512ZakDxa2QRcHDI0oRV8y3JMJ?= X-Microsoft-Antispam-Message-Info: aSuEe+r9XOHNHW5aXzX84l/w161tz110Y35UyGR8b0f2PwmRvPWiDM3l3gklK5O2b+D45cOC8lC4DC+rMtqY1b3XF+uSt3JM6G8n5dvEkCSmwr5skWJAtK/+R6lMcOmzCSn2miRE2voGEykTT7ejqzYHFxG3k4/mLGTpsOc3at94r86N2ss4FnTyNwzen/jtRmXQhCksN0TEsPCmSkOoAlaOlPXhk78fmF/Vjxt4QaK6uSjCaMDqxuRXIesvuYNK9btEFnszakx354a2ofARzgi0hUf6nEjwNbfW7HgXS0puV3wmewzd8XhVLYJtEj8tVPmPuLJpJHEkYPEQr8UfOmcTuA9WfzKdkZ/v5XKleyE= X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4997; 6:9EF1G4ypsNgwgkcngrO7yES8gm/sq/sVoaW78YgyFOorw8jVjfOkp8lbD3wCAyWPrvxGoDlUu9C77kOnPn2Q75eIjpFgR7LgLwg+jzHUwk0gWPSAxxiOv4jt1wnFP0J/qwG7VzktjPG9xLe7IGJMnSWwidNsm30XcLvHS7Clf/ZJFmj6yBlavfqAAbwsghNbgsX1+H7R5nXpqDPHTENiLgQzMAeYZXHYLVgwyOUdVz9GNyWoOKPVMW5bNEd2CN0l7LmQRtmz9ZWMlyITf3dYSzxGvPM+jNj0n8Ofojk0uiRzmrZeyxNb1HHmtMLui85u5zfwenoT5drBZtAeP8FDrUjZYkxLE7gZgK5o/WlTZx3/zzlr38DOuRlvF9UKsb7kA3dY2Bn5ZrZuU3MMNmCge8lJsmPrbFDUaN4x4F/TndhFZG23hCFwonE6NPtiHUArGXB88BNeq39Owaswti70zw==; 5:SevM3DFtyj+TKK06pT1dfNVWj2OdXz+qx6LhapaN21OyxEfKPjbORL33yCY77di7m+VqjUWCBFnX3N78BIlxl3tbYL4B93rBwvSt9TwvFmdX0q2S6gH+Bocrr3ou9AC4Hlpisgh/1cMaNBWHcnOCmUGvMkDcPT2LlC5xHm2Jp/8=; 7:SiA/BJe1mCF+5p/n8KJs7KqmBvK3n7EjUovqz3s7jn2JFVctJt/Z9azMDA8rojhyXD+Nh05kRmqbMsGgkCLWt+dncgF/38vqjdH5M3CN++8EwQ0278fzjkG/VZ/l9hce0DOfQLimuw2ME5Y8YIjo7zRr0I3MlAl9C561po/OOf83e1A7DWzIFGHGIpd4KMITUymd8cWCCBC+BP9RBOwRx5vWEIhtRLO/+tcUMsw/L0ZokS8V55lK877JcV1UJ/sh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2018 07:54:17.5817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 819ac927-dbf2-4095-57be-08d5f5f1a7cf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4997 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 07:54:21 -0000 -----Original Message----- > Date: Mon, 30 Jul 2018 06:39:45 +0000 > From: "Elo, Matias (Nokia - FI/Espoo)" > To: "dev@dpdk.org" > CC: "Van Haaren, Harry" > Subject: [dpdk-dev] eventdev: method for finding out unlink status > x-mailer: Apple Mail (2.3445.9.1) > > > Hi, > > 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) > 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, 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. > > The bug report discussion provides more background on the subject and Harry has > already proposed a new 'int32_t rte_event_unlinks_in_progress()' API as one > possible solution. Assuming stale event(s) can go the new linked port, Does rte_event_unlink() takes consider amount of time in SW implementation. > > -Matias >