From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v8 3/9] ethdev: add generic create/destroy ethdev APIs Date: Thu, 26 Apr 2018 13:16:25 +0100 Message-ID: <9114a6c2-783f-ae37-15b4-e655165909f2@intel.com> References: <20180416130605.6509-1-declan.doherty@intel.com> <20180426104105.18342-1-declan.doherty@intel.com> <20180426104105.18342-4-declan.doherty@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Adrien Mazarguil , Thomas Monjalon , Shahaf Shuler , Konstantin Ananyev To: Declan Doherty , dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 757CB695D for ; Thu, 26 Apr 2018 14:16:31 +0200 (CEST) In-Reply-To: <20180426104105.18342-4-declan.doherty@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/26/2018 11:40 AM, Declan Doherty wrote: > Add new bus generic ethdev create/destroy APIs which are bus independent > and provide hooks for bus specific initialisation. > > Signed-off-by: Declan Doherty <...> > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice. > + * > + * PMD helper function for cleaing up the resources of a ethdev port on it's > + * destruction. > + * > + * @param ethdev > + * ethdev handle of port. > + * @param ethdev > + * device specific port un-initialise callback function > + * > + * @return > + * Negative errno value on error, 0 on success. > + */ > +int __rte_experimental > +rte_eth_dev_destroy(struct rte_eth_dev *ethdev, > + ethdev_uninit_t ethdev_uninit); Will fix doxygen warning while applying, ethdev vs ethdev_uninit