From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ye Xiaolong Subject: Re: [PATCH] vhost: add doxygen comment to vDPA header Date: Fri, 12 Oct 2018 04:25:08 +0800 Message-ID: <20181011202508.GA85553@intel.com> References: <20181010091447.64542-1-xiaolong.ye@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, Maxime Coquelin , Tiwei Bie , Zhihong Wang , xiao.w.wang@intel.com To: Ferruh Yigit Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 2B44E1B49F for ; Thu, 11 Oct 2018 15:38:01 +0200 (CEST) Content-Disposition: inline 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" On 10/11, Ferruh Yigit wrote: >On 10/10/2018 10:14 AM, Xiaolong Ye wrote: >> As APIs in rte_vdpa.h are public, we need to add doxygen comments >> to all APIs and structures. >> >> Signed-off-by: Xiaolong Ye > ><...> > >> @@ -29,6 +32,9 @@ struct rte_vdpa_dev_addr { >> }; >> }; >> >> +/** >> + * vdpa device operations >> + */ >> struct rte_vdpa_dev_ops { >> /* Get capabilities of this device */ >> int (*get_queue_num)(int did, uint32_t *queue_num); > >Can you please document all fields of the structs? >This is part of public API and needs to be documented properly, if possible more >detail on struct documentation will be good. > Got it, I'll add more descriptions. ><...> > >> -/* Register a vdpa device, return did if successful, -1 on failure */ >> +/** >> + * Register a vdpa device >> + * >> + * @param addr >> + * the vdpa device address >> + * @parm ops >> + * the vdpa device operations >> + * @return >> + * device id on success, -1 on failure >> + */ >> int __rte_experimental >> rte_vdpa_register_device(struct rte_vdpa_dev_addr *addr, >> struct rte_vdpa_dev_ops *ops); > >For experimental APIs we tend to add following into function comment: > * @warning > * @b EXPERIMENTAL: this API may change without prior notice > >Please check lib/librte_member/rte_member.h for samples. Got it. Thanks, Xiaolong