From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v7 1/3] lib/librte_ether: add support for port reset Date: Thu, 20 Apr 2017 22:52:05 +0200 Message-ID: <6225536.EZ5y1NuIrY@xps> References: <1491461483-39861-1-git-send-email-wei.zhao1@intel.com> <1491793349-46840-1-git-send-email-wei.zhao1@intel.com> <1491793349-46840-2-git-send-email-wei.zhao1@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Wei Zhao , Wenzhuo Lu Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 843272C5 for ; Thu, 20 Apr 2017 22:52:07 +0200 (CEST) In-Reply-To: <1491793349-46840-2-git-send-email-wei.zhao1@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 10/04/2017 05:02, Wei Zhao: > Add support for port reset in rte layer.This reset > feature can be used not only in vf port reset in the following > code develop process later, but also pf port.But in this patch > set, we only limit the discussion scope to vf reset. > This patch add an API to restart the device. > It's for VF device in this scenario, kernel PF + DPDK VF. > When the PF port state is down->up, APP should call this API to > restart VF port. Most likely, APP should call it in its > management thread and guarantee the thread safe. It means > APP should stop the rx/tx and the device, then restart > the device, then recover the device and rx/tx.This API can > also do some restore work for the port. > > Signed-off-by: Wenzhuo Lu > Signed-off-by: Wei Zhao > --- > lib/librte_ether/rte_ethdev.c | 17 +++++++++++++++++ > lib/librte_ether/rte_ethdev.h | 28 ++++++++++++++++++++++++++++ > lib/librte_ether/rte_ether_version.map | 6 ++++++ > 3 files changed, 51 insertions(+) This new feature should be referenced in the matrix doc/guides/nics/features/default.ini