From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 29CF821F70; Thu, 20 Apr 2017 16:52:07 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 20 Apr 2017 16:52:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Y9col4QAiFTZ1kq Ok6p8nej2bLGa3ZxBRcVtPyJSy1Y=; b=PYkwz3TV9TUG5B/KGd93iGjDBmPMhiT xsgPhCEJ/IWWN0uHcC5RuWg3ZT1STU7XuNM6OF75uKvFnqbLUI4MAOCVsvuRkeg5 E6nEKeEEhbapgKOK9QeW9sbj0BwHSNDru80OemSYOw4z9mdTph1povNq6gKhjZrK NnFq1HWOkqOY= 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-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=Y9col4QAiFTZ1kqOk6p8nej2bLGa3ZxBRcVtPyJSy1Y=; b=D71ucrOs q1SVPpWqj7Dt4WNSXJ70+Qssr8ZcO/fp8gKDJivx1zozuKGb0Y9hOWetOkLrWPN4 WkqwXzSslVNTRyv0sGzYbzPoQOWxw+AwyysyFv4LH9JUWlZ3oyysgtgaHl6JsvoW 8H85RJZt8zkNFDeMETW/VcmvF9NymCIkjA1jui8p2eDJOmGZPYCdtgZfjL+W1n7B qCZsOx3kYKGU3j4SYPDc1BNY621j0yb3KDWrtA10wDNj4hVOdMBzIJZvFHHe7iCM O0VmJqOz1AFqWX2JsNrA36+QNNof2KArTqTGuRrSlPGraaHTkRE7K0tvepFEdVwf zh4+PN7/YBHn6g== X-ME-Sender: X-Sasl-enc: sgExgMuehBzWov3GUayO8cMukiavIiohRtpqY3kaIvrm 1492721526 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id CC61D241ED; Thu, 20 Apr 2017 16:52:06 -0400 (EDT) From: Thomas Monjalon To: Wei Zhao , Wenzhuo Lu Cc: dev@dpdk.org Date: Thu, 20 Apr 2017 22:52:05 +0200 Message-ID: <6225536.EZ5y1NuIrY@xps> In-Reply-To: <1491793349-46840-2-git-send-email-wei.zhao1@intel.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v7 1/3] lib/librte_ether: add support for port reset 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, 20 Apr 2017 20:52:07 -0000 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