From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id EDA9AC42A for ; Fri, 10 Jul 2015 23:24:19 +0200 (CEST) Received: by wgmn9 with SMTP id n9so5383455wgm.0 for ; Fri, 10 Jul 2015 14:24:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=8WMiU0IIaNp/cv7+KNXlAcrbcPeSVcXeQLewfmiKKpE=; b=WZNfiKUqKH5BKHbAlU6cd8tQwNZ/WOXZqH0KRMuDnDQnNLql79lJ99uX1p7iHdZlRu Zr+df3B3g0poWsPLXqRpk9j5CUdQ0PKb/JkOKtjmqEVgg/ALn+1REpcLuuivQn3Vvkcf 684oYeGMheVI5L3WUo6xCjpHea0TSjwhtvo4mOvzBcW78PSbG2/tYjM3EUx+VPa/UmoB FFMJ6AKAJGc/yUYlmPVky6fVPBpuDUXrXdLHW5/C+Jzpf+37JLy27rpUNoF7EtL+3Z2Q xGf0bCeg7gNvYxcXRp6pamjl6iKxbGfmsxbu8Y3el5BvOI0Gze6qSuOJr3u/fst7M7D6 5pfQ== X-Gm-Message-State: ALoCoQlCKbuclKkNXFqs7zWxTVBjbPeiD2vZKu/HV3waYF6pexxvqjWzinxfEDpBiRp5+kEtdDw2 X-Received: by 10.180.208.7 with SMTP id ma7mr1568790wic.0.1436563459814; Fri, 10 Jul 2015 14:24:19 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id eu2sm733064wic.8.2015.07.10.14.24.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 14:24:18 -0700 (PDT) From: Thomas Monjalon To: xuelin.shi@freescale.com Date: Fri, 10 Jul 2015 23:23:10 +0200 Message-ID: <3064017.UErnQxGTeU@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <20150519100559.GA11036@bricha3-MOBL3> References: <1427176700-3911-1-git-send-email-xuelin.shi@freescale.com> <20150519100559.GA11036@bricha3-MOBL3> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] librte_lpm: define tbl entry reversely for big endian X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2015 21:24:20 -0000 2015-05-19 11:05, Bruce Richardson: > On Tue, Mar 24, 2015 at 01:58:20PM +0800, xuelin.shi@freescale.com wrote: > > From: Xuelin Shi > > > > This module uses type conversion between struct and int. > > Also truncation and comparison is used with this int. > > It is not safe for different endian arch. > > > > Add ifdef for big endian struct to fix this issue. > > > > Signed-off-by: Xuelin Shi > > Since nobody objects to this patch, and it looks ok to me: > > Acked-by: Bruce Richardson Applied, thanks