From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=8TtHZZCvSX44apMciNEiMXRxSeWxMCS6m2z8dmu9DAQ=; b=QLHwRfP/T9o9Fq7XIEqRS/0T2MZhYSHOHtO7KmwDOETwC2eGqjTIQ9GqVsxBsIR1bc 1BipG5TSQl0rLRuGbUeikwa8zb1I3pNx8nUQwURjxwO07+xKWGM8Oj07I0FW0BCqthe6 bzSyGtSFOaF3xsnCD8I87lCypjOaq0HNIhRVNtUwAZiM1rqVqipKQ+cXkWXoDOuaIen7 C7wl3JbB+uVee4b7Shw3qbgdP3KtZkHkehOpt2wId7008jIKGpG09XKF2X+QzA8AI4rz fyxUufrVyRDQ/jqPoaMZsXsv0Gel2PUgXx6aBCqyMQmm62zIgPzPM5eGW132ewREG/Xp PeIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=8TtHZZCvSX44apMciNEiMXRxSeWxMCS6m2z8dmu9DAQ=; b=YRANYvrlxC9DNBzMUe1UMRUwJfHxUIxNkAe12C7HLMRogfuczwbHWkIpvC0UW4EEv4 CJeRynQobOQTV7vlYtuBdPtqMUHbA57Iz0qoCx38TJeelD7uJI0O33fdC2juuoQCzhlX gQRsxBWKYUnBX/XrksYVBHYC+qHXKyIqY7m46bYJwiwj0Ighlmq3hYWNmnS81OQfczYl KHZAiQvGI/JaAz1upxmzfMZ8nkNzO2ucb2HNWA1n1spaDZ6Yg9/l/nnSMsjHfKQPfKDj /y3r5zkxWWvmPqZgR3UF42iqSyPM/vD8DpIoYRYKFGAIUBrzfvkbwQ6wMVnqSGtZ6+dj Ssdw== X-Gm-Message-State: AKaTC03p+y01j4vrb6W8qFqrdTexaQr773Ok/RBZxpm7CYcArEnDVXtj6ibRU6bTWy5Ni4us X-Received: by 10.194.201.103 with SMTP id jz7mr54794482wjc.70.1480939571467; Mon, 05 Dec 2016 04:06:11 -0800 (PST) Received: from autoinstall.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id vr9sm20030202wjc.35.2016.12.05.04.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2016 04:06:10 -0800 (PST) Date: Mon, 5 Dec 2016 13:06:03 +0100 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro To: "Ananyev, Konstantin" Cc: "dev@dpdk.org" , Olivier Matz , "Lu, Wenzhuo" , Adrien Mazarguil 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2601191342CEEE43887BDE71AB9772583F0E3F68@irsmsx105.ger.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] net: introduce big and little endian types X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 12:06:11 -0000 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