From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 2092F1B294 for ; Fri, 26 Jan 2018 14:14:21 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id 36so518145wrh.1 for ; Fri, 26 Jan 2018 05:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A29DxTAuURG63P3H/JBaOCPkSoQcxHFOeuMfbc3Xt0Y=; b=nAPtKlR+fPRehgQZ6srHPWo1aoNaTNsU0GkJC7jt48O9buOrzQjvhJJw9oi2YoD3fE iauO+ePfZCIhrZAgpyMo5FCegY2rJc0wM4h9cbQQzzZynQA/Q46/vRnIjT1WucmcTfVz bYDGPOFEhpJW2Puz9qYV6tqbmYrDmh3tfBE6OxKtCNVbkkuXwqZfIQQxxHQt7tDtDxqh f3hSGO5698p7yYEC8t7hlem/G30QV9laTPjuJOXQDVe8VxjDBmRW36Sbyi6wypT4K5iQ kiD0+ddT/O25xoLedyY7ggJ/+0AjH4OIn/FFMG0fOeKneBwj5Iofys93AJFjO9+RHLjD o8mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A29DxTAuURG63P3H/JBaOCPkSoQcxHFOeuMfbc3Xt0Y=; b=LlE4B+Q59GTjDPpRi/kcbhRpZC/eg4xqxMY+MjWQlA5ANRfg1ZXWev0wNYXO9E5NCm Havc3jm+unVbIJTSDN53KGWJuDt1GVes1R7k2oFtuxkx9e4NTbavBZs9mAylinOfUbiW o/TWnLfC/hCbTa4kCVTsEJa/oFgg6l/Rg2ltiyzRBeyftjQ1D3/yWNG5ZfUrE356BtpS RKTzxF78eEPr7+2Bc8nvXjW5xvmNLnnvLcfk+i7v9yxvjBCA14jUES+ghutbuRZFaYdE eakbx2fS193J/9/ZvpgK62m84gZdjWJAkV/6bbPtd4zm/arbw0jQ5WtyBmLzJ0lppwd4 WUlA== X-Gm-Message-State: AKwxytfb9gSaoTLWeteiW64L/wJa8gc8rOEuGviMZvhZUJ8stdzdkNmH 4u0Cx0fSwgJmXBnhScX7Tk4= X-Google-Smtp-Source: AH8x227iGycoRqpamuQN7gAHb4tcMtnnYQOyGQa13vhugPejUwYimjh85PXskWdXgQPZY3dSiI1UHw== X-Received: by 10.223.161.198 with SMTP id v6mr12673363wrv.65.1516972461524; Fri, 26 Jan 2018 05:14:21 -0800 (PST) Received: from localhost ([2a00:23c5:bef3:400:9531:588b:44ae:bec4]) by smtp.gmail.com with ESMTPSA id y55sm5775678wry.87.2018.01.26.05.14.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 05:14:20 -0800 (PST) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Bruce Richardson , dpdk stable Date: Fri, 26 Jan 2018 13:12:43 +0000 Message-Id: <20180126131332.15346-13-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180126131332.15346-1-luca.boccassi@gmail.com> References: <20180126131332.15346-1-luca.boccassi@gmail.com> 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 16.11.5 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: Fri, 26 Jan 2018 13:14:22 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.5 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/28/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 416357731f7333de1b6f5bdd5f409ab6d11dcbfa 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 978ac6013..56fc8b0b1 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -908,7 +908,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, @@ -954,7 +954,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, @@ -1361,7 +1361,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, @@ -1664,7 +1664,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.14.2