From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [RFC v3] /net: memory interface (memif) Date: Fri, 14 Dec 2018 09:39:58 +0000 Message-ID: <20181214093958.GA16664@bricha3-MOBL.ger.corp.intel.com> References: <20181213133051.18779-1-jgrajcia@cisco.com> <20181213100709.2df8f718@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jakub Grajciar , dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 8CB9C1B952 for ; Fri, 14 Dec 2018 10:40:05 +0100 (CET) Content-Disposition: inline In-Reply-To: <20181213100709.2df8f718@xeon-e3> 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 Thu, Dec 13, 2018 at 10:07:09AM -0800, Stephen Hemminger wrote: > On Thu, 13 Dec 2018 14:30:51 +0100 > Jakub Grajciar wrote: > > > + > > +typedef uint16_t memif_region_index_t; > > +typedef uint32_t memif_region_offset_t; > > +typedef uint64_t memif_region_size_t; > > +typedef uint16_t memif_ring_index_t; > > +typedef uint32_t memif_interface_id_t; > > +typedef uint16_t memif_version_t; > > +typedef uint8_t memif_log2_ring_size_t; > > + > > Seems very typedef heavy to me. Having more typedefs > does not improve the readability. > +1 Our coding guidelines generally recommend against using typedefs, though they generally refer to structure typedefs rather than typedefs for basic types. /Bruce