From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 5BDB21B1B6 for ; Wed, 24 Jan 2018 16:36:36 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0DFE122384; Wed, 24 Jan 2018 10:36:36 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=gzYUAuHcqMA3P8Naw UBNQksHdyg1dksEwAD1ptc5D4I=; b=kxeAUZ3sUi6qA8+Ql3sygfYkCtYFHLdl/ kJllfQSyoVRi0fA4aFAQCRlmeVbXuX1mQ4QgJlciFhXq3lyi28l/pZOGGLtYcTn7 3q2TRSTDIcJFgA2VoBrWUcHF0wua4OHjbCxrhVAIi4HvzdFPUl9E/yTIM/JLwZxW uYUqiRtY2YCPROINMka8dzLYKZ4/+LFm9Jy8CSDgmVlS0SZdfsyt6V9bHJ7N7Q1+ nM1q7a7nkEvoWHp6CnBbjgfQhoJ+2DugexRafAmYeJmfwSItXtQZNBvNusEUcLRa 3Ej8P7Ji9u6cOFGcG2Gg7P1R19AeYAwwUYrVyeOpWSTgby8djF/cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=gzYUAu HcqMA3P8NawUBNQksHdyg1dksEwAD1ptc5D4I=; b=A732nAWQK7/BhZqezLPm4Y pPX6/Y/Q5KwuhLUZKlCpDXlJP3iz+EnVCmAVP1iSp8V/mZl5diiYD93VhGh96uNj SLuTt11jWTj/RCOrcMsre4zV0qk7X5jyjD6374g3I3imXa9htVTMJHbkBlz20DY8 nHXulLwZPtrtF2DBXAZMRtaukJnyqEdPPCWFYOm9s7s0pqoJBh14hufAoYLbfXKO Vho0LIHmp2L7YucSoQq6f54M2BqEFhtYYneDyhjzKO1JuEruebej13XXdC6LsU4V Qp5S0H+RoZwAMXZ8p0VTg0fcNKLExKMMeFaeBKCUleanQX1G03og5PS3elwKvRxw == X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B4AD7E354; Wed, 24 Jan 2018 10:36:33 -0500 (EST) From: Yuanhan Liu To: Hemant Agrawal Cc: Bruce Richardson , dpdk stable Date: Wed, 24 Jan 2018 23:31:25 +0800 Message-Id: <1516808026-25523-17-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'lpm: fix ARM big endian build' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:36:36 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 31df9733d22226c7c6f46b2fb2474229ffc88ff3 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 18 Dec 2017 13:26:46 +0530 Subject: [PATCH] lpm: fix ARM big endian build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit b2e1c99ec8e22546e80454c9559db1c108394628 ] Compiling on ARM BE using Linaro toolchain caused following error/warnings. rte_lpm.c: In function ‘add_depth_big_v20’: rte_lpm.c:911:4: error: braces around scalar initializer [-Werror] { .group_idx = (uint8_t)tbl8_group_index, }, ^ rte_lpm.c:911:4: note: (near initialization for ‘new_tbl24_entry.depth’) rte_lpm.c:911:6:error: field name not in record or union initializer { .group_idx = (uint8_t)tbl8_group_index, }, ^ rte_lpm.c:911:6: note: (near initialization for ‘new_tbl24_entry.depth’) rte_lpm.c:914:13: error: initialized field overwritten [-Werror=override-init] .depth = 0, Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field") Signed-off-by: Hemant Agrawal Acked-by: Bruce Richardson --- lib/librte_lpm/rte_lpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index e1f1fad..dda74a9 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -912,7 +912,7 @@ add_depth_big_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, uint8_t depth, */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - { .group_idx = (uint8_t)tbl8_group_index, }, + .group_idx = (uint8_t)tbl8_group_index, .valid = VALID, .valid_group = 1, .depth = 0, @@ -958,7 +958,7 @@ add_depth_big_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, uint8_t depth, */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - { .group_idx = (uint8_t)tbl8_group_index, }, + .group_idx = (uint8_t)tbl8_group_index, .valid = VALID, .valid_group = 1, .depth = 0, @@ -1365,7 +1365,7 @@ delete_depth_small_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - {.next_hop = lpm->rules_tbl[sub_rule_index].next_hop,}, + .next_hop = lpm->rules_tbl[sub_rule_index].next_hop, .valid = VALID, .valid_group = 0, .depth = sub_rule_depth, @@ -1668,7 +1668,7 @@ delete_depth_big_v20(struct rte_lpm_v20 *lpm, uint32_t ip_masked, } else if (tbl8_recycle_index > -1) { /* Update tbl24 entry. */ struct rte_lpm_tbl_entry_v20 new_tbl24_entry = { - { .next_hop = lpm->tbl8[tbl8_recycle_index].next_hop, }, + .next_hop = lpm->tbl8[tbl8_recycle_index].next_hop, .valid = VALID, .valid_group = 0, .depth = lpm->tbl8[tbl8_recycle_index].depth, -- 2.7.4