From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5] ethdev: return named opaque type instead of void pointer Date: Tue, 27 Mar 2018 20:10:01 +0100 Message-ID: <89320422-1a09-25a7-fa32-f3b88422ef7a@intel.com> References: <20180309112531.292163-1-ferruh.yigit@intel.com> <20180320163404.7780-1-ferruh.yigit@intel.com> <20180321130401.GA3225@hmswarspite.think-freely.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: John McNamara , Marko Kovacevic , Thomas Monjalon , Reshma Pattan , dev@dpdk.org To: Neil Horman Return-path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 134E84CA1 for ; Tue, 27 Mar 2018 21:10:05 +0200 (CEST) In-Reply-To: <20180321130401.GA3225@hmswarspite.think-freely.org> 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 3/21/2018 1:04 PM, Neil Horman wrote: > On Tue, Mar 20, 2018 at 04:34:04PM +0000, Ferruh Yigit wrote: >> "struct rte_eth_rxtx_callback" is defined as internal data structure and >> used as named opaque type. >> >> So the functions that are adding callbacks can return objects in this >> type instead of void pointer. >> >> Also const qualifier added to "struct rte_eth_rxtx_callback *" to >> protect it better from application modification. >> >> Signed-off-by: Ferruh Yigit >> --- >> v2: >> * keep using struct * in parameters, instead add callback functions >> return struct rte_eth_rxtx_callback pointer. >> >> v4: >> * Remove deprecation notice. LIBABIVER already increased in this release >> >> v5: >> * add const qualifier to rte_eth_rxtx_callback > I still wish we could find a way to remove the inline functions and truly > protect that struct, but a const is definately better than nothing > > Acked-by: Neil Horman Applied to dpdk-next-net/master, thanks.