From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH 3/7] ethdev: separate driver APIs Date: Fri, 1 Dec 2017 15:51:14 -0800 Message-ID: References: <20171201022957.64329-1-ferruh.yigit@intel.com> <20171201022957.64329-3-ferruh.yigit@intel.com> <393b75b1-bc37-3aeb-a63b-f33abff546bc@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, vladz@cloudius-systems.com To: Hemant Agrawal , Thomas Monjalon , Shreyansh Jain , Nipun Gupta , Jerin Jacob , Santosh Shukla , "John W. Linville" , Shepard Siegel , Ed Czeck , John Miller , Allain Legacy , Matt Peters , Harish Patil , Rasesh Mody , Stephen Hurd , Ajit Khaparde , Declan Doherty , Rahul Lakkireddy , Wenzhuo Lu , Marcin Wojtas Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DE02758C6 for ; Sat, 2 Dec 2017 00:51:16 +0100 (CET) In-Reply-To: <393b75b1-bc37-3aeb-a63b-f33abff546bc@nxp.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 12/1/2017 12:59 AM, Hemant Agrawal wrote: > On 12/1/2017 7:59 AM, Ferruh Yigit wrote: > > ... >> diff --git a/lib/librte_ether/rte_ethdev_driver.h b/lib/librte_ether/rte_ethdev_driver.h >> new file mode 100644 >> index 000000000..3e77d1439 >> --- /dev/null >> +++ b/lib/librte_ether/rte_ethdev_driver.h >> @@ -0,0 +1,163 @@ >> +/*- >> + * BSD LICENSE >> + * >> + * Copyright(c) 2017 Intel Corporation. All rights reserved. >> + * All rights reserved. > > You can remove one of the all rights reserved. > This is also an issue in your next patch for rte_ethdev_core.h > > Also, as Shreyansh mentioned, Why not start with SPDX tags instead of > full license text? Good idea, I will update in next version. > > ... >> +/** >> + * @internal Executes all the user application registered callbacks for >> + * the specific device. It is for DPDK internal user only. User >> + * application should not call it directly. >> + * >> + * @param dev >> + * Pointer to struct rte_eth_dev. >> + * @param event >> + * Eth device interrupt event type. >> + * @param cb_arg >> + * callback parameter. >> + * @param ret_param >> + * To pass data back to user application. >> + * This allows the user application to decide if a particular function >> + * is permitted or not. >> + * >> + * @return >> + * int >> + */ >> +int _rte_eth_dev_callback_process(struct rte_eth_dev *dev, >> + enum rte_eth_event_type event, void *cb_arg, void *ret_param); >> + >> +/** >> + * Create memzone for HW rings. > > Like all other functions, you can also add "@internal" for this as well. OK. > > Acked-by: Hemant Agrawal >