From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [RFC PATCH 02/14] mbuf: remove rte_ctrlmbuf Date: Tue, 12 Aug 2014 10:27:36 +0200 Message-ID: <53E9CFF8.6060002@6wind.com> References: <1407789890-17355-1-git-send-email-bruce.richardson@intel.com> <1407789890-17355-3-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Bruce Richardson , dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1407789890-17355-3-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Bruce, On 08/11/2014 10:44 PM, Bruce Richardson wrote: > From: Olivier Matz > > The initial role of rte_ctrlmbuf is to carry generic messages (data > pointer + data length) but it's not used by the DPDK or it applications. > Keeping it implies: > - loosing 1 byte in the rte_mbuf structure > - having some dead code rte_mbuf.[ch] > > This patch removes this feature. Thanks to it, it is now possible to > simplify the rte_mbuf structure by merging the rte_pktmbuf structure > in it. This is done in next commit. > > Signed-off-by: Olivier Matz > > Conflicts: > lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c > > Signed-off-by: Bruce Richardson Same here, "git grep ctrlmbuf" finds results in examples/ip_pipeline/cmdline.c and examples/ip_pipeline/init.c You can also see it by doing "make examples T=x86_64-native-linuxapp-gcc" from dpdk root. > @@ -204,14 +182,10 @@ struct rte_mbuf { > #else > uint16_t refcnt_reserved; /**< Do not use this field */ > #endif > - uint8_t type; /**< Type of mbuf. */ > - uint8_t reserved; /**< Unused field. Required for padding. */ > + uint16_t reserved; /**< Unused field. Required for padding. */ This line breaks the alignment of comments (this typo was already present in my initial patch). By the way, there was also a patch called "mbuf: cosmetic changes in rte_mbuf structure" to restore the comments alignment for all the fields of the structure. Maybe it should be integrated in your series. Regards, Olivier