From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D88CA056E; Wed, 11 Mar 2020 14:20:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 15AE21BFF7; Wed, 11 Mar 2020 14:20:33 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 7B6742BAA for ; Wed, 11 Mar 2020 14:20:31 +0100 (CET) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1F474224CC; Wed, 11 Mar 2020 09:20:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 11 Mar 2020 09:20:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=yk2lcZYKRTHILDksZ6lHQpw8fywpKJY2SbmlzQyLFVU=; b=IuouEBc6cfkw O4vJ5NVG6n1jqdFqXj47Q1Bs0H/9VZ8lBHan8e6M+Ycm6EDif+4feVImX1cDvFVK IK8gVNSW/F3dO3o2vHkdYpWUpGVC5ncdPTATZShxLShrMe9alB8Lc0SsyOfef7ec rWPf35vYAMaOXHcO/39O4gybaxEgt2Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=yk2lcZYKRTHILDksZ6lHQpw8fywpKJY2SbmlzQyLF VU=; b=bBuhCMOxJPIBytK+Jg5xYgv0mhOl3d2LiTNZ17jEAPD7JtPtNjRv9avBH AD1aB9wC7VLIlF304fu6H0YHePAkTYEytcrqPrjc4Hdl5yLML+uHhbu9pEOycxJ0 O5VGckVnbhXKnpvraZAu/QrJevcQzgOc3mlKJuq3Xh9eILgkwoI6E5xXiZqnGlQO +u+/NR6IICFm+B8Dt1Dd4mbRvV2YrZeD3h5JI2XFQ+VVoD3GuNmixhOjcwah6SDQ ah9/RJYxonHyUWodhi1VWPeM70Z3bbQNB8cxjNFK1UiC6lWXXvDHA4Y2F0jKfZan QjlOpafSxNvfm9wl2rNfjVkK+V3Fw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvvddgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkjghfggfgtgesthfure dttddtvdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucfkphepjeejrddufeegrddvtdefrddukeegnecuve hluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghs sehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 516E53280059; Wed, 11 Mar 2020 09:20:30 -0400 (EDT) From: Thomas Monjalon To: Kalesh A P Cc: dev@dpdk.org, ferruh.yigit@intel.com, declan.doherty@intel.com, arybchenko@solarflare.com Date: Wed, 11 Mar 2020 14:20:29 +0100 Message-ID: <1956572.bB369e8A3T@xps> In-Reply-To: <20200122101654.20824-2-kalesh-anakkur.purayil@broadcom.com> References: <20200122101654.20824-1-kalesh-anakkur.purayil@broadcom.com> <20200122101654.20824-2-kalesh-anakkur.purayil@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [RFC PATCH 1/3] librte_ethdev: support device recovery event 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 22/01/2020 11:16, Kalesh A P: > From: Kalesh AP > > Adding support for recovery event in rte_eth_event framework. > FW error and FW reset conditions would be managed by PMD. > In such cases, PMD would need recovery events to notify application > about PMD has recovered from FW reset or FW error. > > Signed-off-by: Kalesh AP > Signed-off-by: Ajit Khaparde > Reviewed-by: Somnath Kotur > --- > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -3015,6 +3015,7 @@ enum rte_eth_event_type { > RTE_ETH_EVENT_NEW, /**< port is probed */ > RTE_ETH_EVENT_DESTROY, /**< port is released */ > RTE_ETH_EVENT_IPSEC, /**< IPsec offload related event */ > + RTE_ETH_EVENT_RECOVERED, /**< port recovered from an error */ What the application is supposed to do when receiving such event?