From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH] net: introduce big and little endian types Date: Mon, 5 Dec 2016 13:06:03 +0100 Message-ID: <20161205120603.GL21794@autoinstall.dev.6wind.com> References: <2601191342CEEE43887BDE71AB9772583F0E3F68@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: "dev@dpdk.org" , Olivier Matz , "Lu, Wenzhuo" , Adrien Mazarguil To: "Ananyev, Konstantin" Return-path: Received: from mail-wj0-f173.google.com (mail-wj0-f173.google.com [209.85.210.173]) by dpdk.org (Postfix) with ESMTP id D365B475E for ; Mon, 5 Dec 2016 13:06:11 +0100 (CET) Received: by mail-wj0-f173.google.com with SMTP id xy5so288203792wjc.0 for ; Mon, 05 Dec 2016 04:06:11 -0800 (PST) Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB9772583F0E3F68@irsmsx105.ger.corp.intel.com> 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 Mon, Dec 05, 2016 at 10:09:05AM +0000, Ananyev, Konstantin wrote: > Hi Neilo, > > > > > This commit introduces new rte_{le,be}{16,32,64}_t types and updates > > rte_{le,be,cpu}_to_{le,be,cpu}_*() and network header structures > > accordingly. > > > > Specific big/little endian types avoid uncertainty and conversion mistakes. > > > > No ABI change since these are simply typedefs to the original types. > > It seems like quite a lot of changes... > Could you probably explain what will be the benefit in return? > Konstantin Hi Konstantin, The benefit is to provide documented byte ordering for data types software is manipulating to determine when network to CPU (or CPU to network) conversion must be performed. Regards, -- Nélio Laranjeiro 6WIND