From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4 1/3] lib/librte_ether: add support for port reset Date: Mon, 24 Apr 2017 10:04:40 +0200 Message-ID: <1567270.9lMUqcoftf@xps> References: <1490866456-52241-1-git-send-email-wei.zhao1@intel.com> <20170424020120.GC11512@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Yuanhan Liu , "Ananyev, Konstantin" , "Mcnamara, John" , "Lu, Wenzhuo" , "Liu, Yu Y" To: "Zhao1, Wei" Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 419762B9B for ; Mon, 24 Apr 2017 10:04:43 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 24/04/2017 05:39, Zhao1, Wei: > Hi, yuanhan & thomas > From: Yuanhan Liu [mailto:yuanhan.liu@linux.intel.com] > > On Fri, Apr 21, 2017 at 11:28:37AM +0200, Thomas Monjalon wrote: > > > > Maybe I should add some words in doc\guides\nics\i40e.rst to Record > > > > which configurations are saved and restored by the PMD driver in > > > > reset function. Which not list in that are recognized as not saved > > > > and restored by default. OTHER NIC for this feature can add similar > > > > record in their xxx.rst. > > > > > > No, when defining a generic API in ethdev, we must define the same > > > behaviour for every drivers. > > > > Agreed. That was my point. > > > > --yliu > > > > > Please check how to make the behaviour consistent and documented in > > > ethdev. We may need to document your new function and start/stop also. > > Do you have any suggestion on which document in rte layer to record store > and restore info by me? It should be documented in the doxygen comment of the functions. Either we explain which configuration is restored on start and reset, or we state everything (or nothing) is restored except the configurations commented in the related configuration functions.