From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680053.outbound.protection.outlook.com [40.107.68.53]) by dpdk.org (Postfix) with ESMTP id 2080B1B05D for ; Thu, 13 Sep 2018 16:45:45 +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=98TmQzQAj6WqmiAC08UXkX4X2ITTc7/cyHgWpQ4h+XA=; b=B/tOHphV0cu5b/u+hQS1ef5phacVc/H724vwaL4nIX25RI3RgZcxYIYJ2rcc94JAvt2F+/F5tMcQqXm6YXlCDxOp8ZMXqGk7CQWu7P0j/uqcMH1NCC6mkaND2pFPBhAQZn+QDvnsWHjMyUVrGL0OluOlcu3pgWKIKiycZGXWCyg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BL0PR07MB4994.namprd07.prod.outlook.com (2603:10b6:208:49::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Thu, 13 Sep 2018 14:45:40 +0000 Date: Thu, 13 Sep 2018 20:15:27 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, matias.elo@nokia.com Message-ID: <20180913144526.GA14236@jerin> References: <20180912161616.42306-1-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180912161616.42306-1-harry.van.haaren@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR01CA0118.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::34) To BL0PR07MB4994.namprd07.prod.outlook.com (2603:10b6:208:49::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a24b588-4abb-4b0d-1f9c-08d6198794b4 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BL0PR07MB4994; X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 3:vE4Gg2MqClG76j3hIcBAY+50Wwmde9NtVSbf9UiKW27hLKJDK0BbMJPj+VqpBYkChjqKA6VzWcB9swu2B4DXKTgRB7twWJidM0txwZhtslUnWSJ4VG6ZHrQcVrpyoa3+8IvlkSFHUGNEyXP1gySIWQOppPKbYWi2GsZ26jv+KhLbDoU2gKuMOph++a4v/vXtsCH7DVWLdIiba4fXIVgzsvWYu+SIZyrxKni/k2HsARme1MfvFSZ62GGHnmcx3vpD; 25:vc8z3C3jrFodQnaNne4+klu5H69E+LlsNU0t3Xlo0GC3xx42kct5TG7XHRlOSFEofTI4rHMlRRzMgEzIzl1Ryh5snbP0X0h75MRqoFNy1XD2Vl4XKSGd0Xo8i9OCTFABB6JD1i8bHF4HDtTu2HLffdGS5UqjiG975sEcwZ2/NJkgf5M5OHTZmkbn12fS9SrZyaplr/mMTcRGuo+pUarFrY9dJuLbocaraSgCcD3bylyq7XY9BIm22rZO2lLHq/0m4bk79RMlIQg4Ioo50DxmFXMnvghxH+0WSsjElYgVuul1roRDeMGH3jQe9Yrl3xeQwCgEUnOyDl6FvA8o6vcYFg==; 31:zWldnoGFCXn0+qAw1E4quJN4iDdbc3/uWhLEXjc/iMLONbJiW6u83R/9nNFWZhKZdWhepxgMSE+SFCwdpC1CWalDkJZ/io/jCntw2kx5Sbt9fMwl5maWl2kb8GHdW+zlFVv3l6dZfgZq6AlkbNR4PrkZQD58F8PcGNbEPk2wv0girklArjIB/36zLnos4rhH7xeBWFxJBkN1eO62YoDyrXftojRiTlNSE+eJJNMWA2E= X-MS-TrafficTypeDiagnostic: BL0PR07MB4994: X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 20:kgF6P448bgCBZYRLGKzRskcgf9CK3/QhL5U751gvs01kDjCo0kpxIQBTfmjGX7Yyo9Ta2hcxruZVHadW9lgL1BHfQU9oQCY0dKQb4/Owz/KS8w2fC70H4nLkIWOwG49J/3dp37WbOMaf+6qJsZjzymkUTSvyWSI8VCh96bH9rhTyrjtg9dNGTvqNr8qznksyj88WaGNgQLsQyMX3iwMuiCPBGymIk2hWpTa4ZNzoP5x2tdTfEilrbbQaudZmkIACFfJvEQ4KKNhKwK73uzv/e/VrROilote5IQqq9maf3Gp2mnNbaiIMgwG2uogFTA9vyUEiYJ1w6NAWUA95KfC7asR2frhuvYYIT4yr4Y/FmlY066N+oXYLqfxpGhV0NbqIpwyolzT64d//+d7HRuzGN1a4JHfTLHMrZjmfnMepjIaTCm/7IxpfO3snfZOFXHXjjQVX7J0R40vMv7TirSGP+BiQj5+UUMbFZhIOb404L61UPXPqkLZ9fh1PCg2kGEFqtauO3QvhxRynhB7X7023EzrY/8nDm2+oueJERXtAIwYYBnROCnaeCq/vmErAjqGuz9egdbF8FMxNi0pfjaosPdSkLzGudtxiWlUe30F2NHs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(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)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(201708071742011)(7699050); SRVR:BL0PR07MB4994; BCL:0; PCL:0; RULEID:; SRVR:BL0PR07MB4994; X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 4:YmZz9LA5Md1pLF3UG9x1XlczHZdDAiE3e7GcSVciEcDwq3ZhqBZF9mmmFc1HesTJQST2S/0nZkaAStR/EUrozE1AsxV/Amh9W4Guvsc+aOPE4xNbvX/r3PmaJ8YO8zSNzpJPL7Uu27tTLoneLi3Ebhvt4kpici9DljIdwNTWF5Bg8TXl0clA4e8ZvjKhCqe2hFE3YrbH4NB82JVzIvX7ROkbF+/HSDa82jJ8SBjZbuJ5KD+hJ+2Im/GFCBhYkOGaBIsT2WBIwPfgrpU448MgBtg0G2cOoIbdKNNfoqgYo/MWSvOssvpCzSYmmPqqvqzurspxqjf/E+is/Dr/wcZtL+b5N7NAT5yRjkhJG4UrvvUBTfqaEurxYK2Iz5HzvEFn2GgOFffKKwa6oQpBeU2Ur+bTHutg1zZX7oEuiMCfBGLfM6XWMI4lnWaQMkMHJ6JTA1NoABIRgxJU9iubRPlQlA== X-Forefront-PRVS: 07943272E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(39850400004)(376002)(346002)(199004)(13464003)(189003)(52146003)(2486003)(106356001)(81166006)(33896004)(53936002)(6306002)(8676002)(316002)(8936002)(9686003)(58126008)(4326008)(6916009)(2870700001)(68736007)(2906002)(5660300001)(52116002)(229853002)(6666003)(97736004)(50466002)(55016002)(81156014)(33656002)(6496006)(105586002)(23676004)(76176011)(11346002)(446003)(186003)(6246003)(16526019)(42882007)(25786009)(476003)(486006)(14444005)(44832011)(33716001)(478600001)(26005)(1076002)(305945005)(3846002)(47776003)(966005)(386003)(6116002)(55236004)(66066001)(72206003)(7736002)(956004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR07MB4994; 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?MTtCTDBQUjA3TUI0OTk0OzIzOnJ6dkFtOU5RTTlmbTZOcDN3dDY2T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NsTEtwZUZodFRIQXpCVkozenVTNWs2azJJV010YnU1NFFVQkFI?= =?utf-8?B?L2lxV0lRamxwS20zKzh6dEtlMXBUdWxrVFdkUngrVUhaSzk4bGRPNXZsdG1Y?= =?utf-8?Q?QxokdIhNluXfc/jjbLglD11//NWmck=3D?= X-Microsoft-Antispam-Message-Info: HWTPFfL6ipyVifL2Ue83CcmFbxiO2tlTBsMZ6mA56DLYJGjRaGEyAEHJJObk8mG5VhASuXcC0LJSVEn3GVkUNUwKpUNLFCseghdEfVjonXumcRY8rKV+B26wznx1TIXzXKc3iJ8/dVvKesxvmuKcKC8x5sf4NgCHU/4r6Z0GKJc1OdCG6SoaDwRO2V2fWRkot90AI4Gz5VwywkUX1tMUOx99xGtZqO+OVMcDV8Nug1yQT7aege4n5/Rmq9wEwHEvK3V9ifVuW74VfOYk4YFbaBrLj/Awett6I5lXwP5bC7Jo/osTJCUOR5khPMOMInUitlBVH53yfzM4Old42FXd9rTdtFnJ+t84t2drxBpUTR0= X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 6:Y82LDFsjrUb8bTy6LpNwtp5xp0yU+KGay8adKOB8V2vdMu9/R3KPR3bfHZOS5+IOMa/d6YG51/i6DNJVq4FNKwSugToY+9MaMrEN2vykFwzde7oIyX193b5gYitktoIqmkZD91AjcG5fpyrc+toxbz4wzffXez+Z4iv0hbaUnMftZPKtLwrRoAdRV6eHMbfzA4O2ckaAsTbDympcROpHVw3yZgPoVaWmIq14yz4Vi5e50BGaU+otR8z/DtCSQUr/Mp7wgnBhDVTrDGfJg02Dz/gx+kZRCGVmtehe4a/wGr5uKQLdGyZMrmalhaKW6zDBdU8GK7HA+WNUkzfc41rCQ52Ga9DR6dySD/IWn8Y6aXM4tEoR8W6JhQYNszuZOmm0bl9EHQZolmMtmo6VmYVNFC+ZAoF8/EsczlpKw5yWFkJIq27KN2ff18pd8gFC25RV1Zkp3KXJtse321CDVAAmOw==; 5:SOKvzoifaT1UcSBn06rDvQDOaNwjc7g4ZgR+8EVS3cN0kg663FSO613b9b5s3kasfXTY5OmOdnyjKxwwA8JhlCAupLkcCZpCMmiYM1Z5n4V6X0zZDQT5NBNx/T+GaCQ9CCjf+VNM5aehWtdEUpx179o1WxSNsI2sIduMVIfhKzM=; 7:xnO6EgAyZcRqBd+e/GT5JuIUylxkCcxONlZY/q+JyLcUy8a3BzH44xn8asDl/gwN0Jd3gnmb/WQ+yHMcd6TPtIRefl+5IrOiwgZoUMKN/s0zL7V7efSDmiRvzNDj+psYRaLKxkY4bsEpOEV1xYeEOUMipv8gb1dGKzb3/mJIptelHNSf1M8g7Gxn7D6s6L+Wlz6khuK+5Dx81aSf2SmakEUERNITnX8xLIyyecVx5ISv3Nx/WyOrD43tXfxQfDte SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2018 14:45:40.9053 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a24b588-4abb-4b0d-1f9c-08d6198794b4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR07MB4994 Subject: Re: [dpdk-dev] [PATCH 1/3] event: add function for reading unlink in progress 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: Thu, 13 Sep 2018 14:45:45 -0000 -----Original Message----- > Date: Wed, 12 Sep 2018 17:16:14 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, matias.elo@nokia.com, Harry van Haaren > > Subject: [PATCH 1/3] event: add function for reading unlink in progress > X-Mailer: git-send-email 2.17.1 > > > This commit introduces a new function in the eventdev API, > which allows applications to read the number of unlink requests > in progress on a particular port of an eventdev instance. > > This information allows applications to verify when no more packets > from a particular queue (or any queue) will arrive at a port. > The application could decide to stop polling, or put the core into > a sleep state if it wishes, as it is ensured that no new packets > will arrive at a particular port anymore if all queues are unlinked. > > Suggested-by: Matias Elo > Signed-off-by: Harry van Haaren > > --- > > Cc: jerin.jacob@caviumnetworks.com > > Hey, I've added this API as __rte_experimental, so we should be OK to > include in 18.11, and then possibly remove the experimental tag in > a later release, assuming it serves its purpose correctly. > > For context, see thread here: > http://mails.dpdk.org/archives/dev/2018-September/111499.html > > @Matias, is that workable for you? > @Jerin, is this acceptable as maintainer? Yes. Overall patch looks good to me. Please find inline a minor comment. # There is build error in this series(not in this patch), please check error log /export/dpdk-next-eventdev/drivers/event/sw/sw_evdev.c: In function ‘sw_port_unlinks_in_progress’: /export/dpdk-next-eventdev/drivers/event/sw/sw_evdev.c:124:50: error: unused parameter ‘dev’ [-Werror=unused-parameter] sw_port_unlinks_in_progress(struct rte_eventdev *dev, void *port) With above changes: Acked-by: Jerin Jacob > Cheers, -Harry > --- > lib/librte_eventdev/rte_eventdev.c | 22 +++++++++++++++ > lib/librte_eventdev/rte_eventdev.h | 28 ++++++++++++++++++-- > lib/librte_eventdev/rte_eventdev_pmd.h | 19 +++++++++++++ > lib/librte_eventdev/rte_eventdev_version.map | 1 + > 4 files changed, 68 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c > index 801810edd..0a8572b7b 100644 > --- a/lib/librte_eventdev/rte_eventdev.c > +++ b/lib/librte_eventdev/rte_eventdev.c > @@ -980,6 +980,28 @@ rte_event_port_unlink(uint8_t dev_id, uint8_t port_id, > return diag; > } > > +int __rte_experimental > +rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id) > +{ > + struct rte_eventdev *dev; > + > + RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL); > + dev = &rte_eventdevs[dev_id]; > + if (!is_valid_port(dev, port_id)) { > + RTE_EDEV_LOG_ERR("Invalid port_id=%" PRIu8, port_id); > + return -EINVAL; > + } > + > + /* Return 0 if the PMD does not implement unlinks in progress. > + * This allows PMDs which handle unlink synchronously to not implement > + * this function at all. > + */ > + RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->port_unlinks_in_progress, 0); > + > + return (*dev->dev_ops->port_unlinks_in_progress)(dev, > + dev->data->ports[port_id]); > +} > + > int > rte_event_port_links_get(uint8_t dev_id, uint8_t port_id, > uint8_t queues[], uint8_t priorities[]) > diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h > index b6fd6ee7f..d07e297bc 100644 > --- a/lib/librte_eventdev/rte_eventdev.h > +++ b/lib/librte_eventdev/rte_eventdev.h > @@ -1656,8 +1656,9 @@ rte_event_port_link(uint8_t dev_id, uint8_t port_id, > * event port designated by its *port_id* on the event device designated > * by its *dev_id*. > * > - * The unlink establishment shall disable the event port *port_id* from > - * receiving events from the specified event queue *queue_id* > + * The unlink call issues an async request to disable the event port *port_id* > + * from receiving events from the specified event queue *queue_id*. See > + * *rte_event_port_unlinks_in_progress* to poll for completed unlinks. use @see rte_event_port_unlinks_in_progress() like reset of file. > * > * Event queue(s) to event port unlink establishment can be changed at runtime > * without re-configuring the device. > @@ -1694,6 +1695,29 @@ int > rte_event_port_unlink(uint8_t dev_id, uint8_t port_id, > uint8_t queues[], uint16_t nb_unlinks); > > +/** > + * Returns the number of unlinks in progress. > + * > + * This function provides the application with a method to detect when an > + * unlink has been completed by the implementation. See *rte_event_port_unlink* > + * on how to issue unlink requests. Same as above comment. > + * > + * @param dev_id > + * The indentifier of the device. > + * > + * @param port_id > + * Event port identifier to select port to check for unlinks in progress. > + * > + * @return > + * The number of unlinks that are in progress. A return of zero indicates that > + * there are no outstanding unlink requests. A positive return value indicates > + * the number of unlinks that are in progress, but are not yet complete. > + * A negative return value indicates an error, -EINVAL indicates an invalid > + * parameter passed for *dev_id* or *port_id*. > + */ > +int __rte_experimental > +rte_event_port_unlinks_in_progress(uint8_t dev_id, uint8_t port_id); > + > /** > * Retrieve the list of source event queues and its associated service priority > * linked to the destination event port designated by its *port_id* > diff --git a/lib/librte_eventdev/rte_eventdev_pmd.h b/lib/librte_eventdev/rte_eventdev_pmd.h > index 3fbb4d2b2..65645730a 100644 > --- a/lib/librte_eventdev/rte_eventdev_pmd.h > +++ b/lib/librte_eventdev/rte_eventdev_pmd.h > @@ -332,6 +332,23 @@ typedef int (*eventdev_port_link_t)(struct rte_eventdev *dev, void *port, > typedef int (*eventdev_port_unlink_t)(struct rte_eventdev *dev, void *port, > uint8_t queues[], uint16_t nb_unlinks); >