From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <matias.elo@nokia.com>
Received: from EUR02-AM5-obe.outbound.protection.outlook.com
 (mail-eopbgr00137.outbound.protection.outlook.com [40.107.0.137])
 by dpdk.org (Postfix) with ESMTP id A87E8F11
 for <dev@dpdk.org>; Wed,  5 Sep 2018 09:49:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; 
 s=selector1-nokia-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=FXqAI208Tl+/g67UOnddIMkwc92Nlv+px6FessQa/Os=;
 b=AP4FCKh0cL26IvXhsBi2RvfLKnYPrH1GS+YnQzOeqp4e2Hwh6X7ExBE+6r7Rxv2uV0VrobMywj9tdt+HfLLrGtSoAQUiT9Zu1Tu2YF/5lyYIkYFA2PCT0M0vJ3xcZBix6xi47tdvFCwXx9Co9kkn66bCnbFnRfFb2ITcEMoimpo=
Received: from HE1PR07MB3193.eurprd07.prod.outlook.com (10.170.245.31) by
 HE1PR07MB3369.eurprd07.prod.outlook.com (10.170.247.20) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1122.12; Wed, 5 Sep 2018 07:49:14 +0000
Received: from HE1PR07MB3193.eurprd07.prod.outlook.com
 ([fe80::f9fe:adb3:1149:ba72]) by HE1PR07MB3193.eurprd07.prod.outlook.com
 ([fe80::f9fe:adb3:1149:ba72%2]) with mapi id 15.20.1122.009; Wed, 5 Sep 2018
 07:49:14 +0000
From: "Elo, Matias (Nokia - FI/Espoo)" <matias.elo@nokia.com>
To: "Van Haaren, Harry" <harry.van.haaren@intel.com>
CC: Jerin Jacob <jerin.jacob@caviumnetworks.com>, "dev@dpdk.org" <dev@dpdk.org>
Thread-Topic: [dpdk-dev] eventdev: method for finding out unlink status
Thread-Index: AQHUJ9Aa1/qQlBsMGkGIBi2aSKyqoKSnZV8AgAAXrwCAAALrgIAAAmqAgAAQZICAADKWAIAADY8AgAEpQgCAAAXaAIAAEBUAgAydLwCAAcbvAIAAEcaAgAGT74CAAAfgAIAAInSAgAALFYCAKDjkgA==
Date: Wed, 5 Sep 2018 07:49:13 +0000
Message-ID: <285D18AA-EC23-4C04-824A-726F20681C61@nokia.com>
References: <20180730142614.GA11265@jerin>
 <6D43DE84-583D-42E5-B298-0E7BDA0C17FB@nokia.com>
 <20180731083107.GA23233@jerin>
 <4C54AAAE-A872-47E1-B815-AF68965F9F3E@nokia.com>
 <FB101081-5D5A-4FEA-9352-048D47BA05A7@nokia.com>
 <E923DB57A917B54B9182A2E928D00FA65E2ADCA2@IRSMSX102.ger.corp.intel.com>
 <20180809141814.GA15603@jerin>
 <4C66F1B2-02F0-4F6E-A6CD-6A3F44CDAB42@nokia.com>
 <20180810145209.GA2475@jerin>
 <E923DB57A917B54B9182A2E928D00FA65E2B17A2@IRSMSX102.ger.corp.intel.com>
 <20180810173510.GA6835@jerin>
In-Reply-To: <20180810173510.GA6835@jerin>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-mailer: Apple Mail (2.3445.9.1)
x-originating-ip: [131.228.32.181]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1PR07MB3369;
 6:sY9eZV4+M20ZuFzXZA30oZKc7upiZtc73f93VtqeS0U15tV1OwuKtCxK+LsxchWwf+E0f3rLBJhqVFCmNXe1nn0W08LnSo/+a/ZoVUDqWK93vF5c0UZ3FN3DAqx8GKBVF6tN9X5yk44tAT0qSbjKWP6jvaz0LHeJpfn8Mv2DQGAaUJ1o3IJn8cJtOTUIEUx2vHmjWPk10rtPaOP3TSdK3dQkb+P7W39gkd1isybscNU2rQpmLXcIulTkPCWH8Sw5g5XldO7nfsEqwgMC9Ug5gZbGVs44h71u7kS8j7csf9+o/hucw86LwYpkQBuEMOxyl8g1BJZlKYNbsXS1P8CjSM7fnBcreU5V9FlHlzF9Vx7M1PuJC8acpqZBCgE6hSgmSCSawJAiTsxB2k26hTtVAF3ouoF6SV1DYRmAXPODa3q9DDxm1DLdayJS6RwLuIFi8HNdlXDRr+5NyxynS3Aa3w==;
 5:Bi7QeiiWcrnkMgxzxnK/SIA6DWeYcRXXpBj3+VESv6h6B/SKFhnSHjCRejidcPsJ33OPBYtuSvCfCTw8dyna0CloHDRVNvpBBRwiIxMVCzEw3ZL708IVmUfQL/475PR/V8pupNKOy2fC7Crkgy+TwOHqL7ciMMpkTimKaaU+zcI=;
 7:YGp2k6B+VkZdhEkf8DQDkenqemusujmk3m5eZGHmrMsD2X1BxtC1kEeyOctEbGNLObIuOmKbVxJj6gA7YXlNt1hw2mlbv4NKCe4o246iU3q9UdWTY7zJMcdfY01/7mkvCFGm+rkSFOvvt9aMr45kF3cQjIDRTHvdzooZdwbeAm74nnGUGqwHzr4iIj6uqXIO+AZVpcJt6oZ/HGJD3LvBHebb/CtYWxcg1mJrGTGtmn/H4Zha2OhYP+HrHhcBH5+m
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 04d982c6-dc8c-4f78-8fe6-08d613041331
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(7020095)(4652040)(4534165)(4627221)(201703031133081)(201702281549075)(5600074)(711020)(4618075)(2017052603328)(7193020);
 SRVR:HE1PR07MB3369; 
x-ms-traffictypediagnostic: HE1PR07MB3369:
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=matias.elo@nokia.com; 
x-microsoft-antispam-prvs: <HE1PR07MB33695D517AC16D6CB1B799459C020@HE1PR07MB3369.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231344)(11241501184)(806099)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699049)(76991033);
 SRVR:HE1PR07MB3369; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB3369; 
x-forefront-prvs: 078693968A
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10019020)(366004)(136003)(39860400002)(346002)(376002)(396003)(199004)(189003)(6436002)(68736007)(5660300001)(2900100001)(6486002)(33656002)(6916009)(57306001)(8676002)(8936002)(50226002)(53936002)(76176011)(186003)(3846002)(6116002)(102836004)(106356001)(6512007)(26005)(99286004)(105586002)(229853002)(6506007)(14444005)(256004)(7736002)(97736004)(305945005)(476003)(54906003)(66066001)(2616005)(486006)(446003)(11346002)(5250100002)(25786009)(81166006)(36756003)(86362001)(81156014)(316002)(4326008)(82746002)(6246003)(14454004)(83716003)(93886005)(2906002)(478600001);
 DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB3369;
 H:HE1PR07MB3193.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: nokia.com does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: L7Wa0HK1N9IuZSiAGWUIL+o+S89Dzd8mqq7atW8NAFgqT7a+xyDu2Zj3sLqTYAgnMdivMH2gCe9FQjzQHfGNWFg37RqcXAzTPh5Ri6tIl1e88gKuEppd+T7YHl8rQnM+UafcH2qlrvk5B8wnKeuWAExHGBym/rhR5ivhBaIjpm6OP3X/KIKjw8XJTUern+KJiKOpKGzWWc0OX/Rj/WcXvW8pcBSZvyyp9yHBpMbqVGMoL69bnenETomHl3AlfoPuPBCIKRRD7vCNXMcOVUszPtggvE6Tp6Aun2L62VqiAVp/hjsvYuT6RQYvxPALr/GBwWeK6nB77L659GVdd+XZTDLX++4nsJO6mLqtFfogszbca3wgNKkYMJhj/7qs+65wL2VcNWW83eLN36ehd/F7EQ==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-ID: <83921600B182E04DB24C1E40F9054D2E@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 04d982c6-dc8c-4f78-8fe6-08d613041331
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Sep 2018 07:49:14.0128 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3369
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Sep 2018 07:49:16 -0000


>>=20
>> I'm not sure I understand the issue here.
>> Is anybody suggesting to make unlink() blocking?
>>=20
>> 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 c=
aller.
>>=20
>> 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 del=
ay().
>=20
> Correct. My point was, rte_event_port_unlink() can be blocking as it=20
> 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).

Did you come to an agreement how to solve this issue? Any solution (e.g. ma=
ke
rte_event_port_unlink() blocking with SW eventdev) would be welcomed since =
this
issue is currently blocking my work with eventdev.