Message ID | 1513583809-3926-2-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2526692qgn; Sun, 17 Dec 2017 23:58:05 -0800 (PST) X-Google-Smtp-Source: ACJfBot44D8T2vaPO35AyS8cBEqFwUD8PPFbmGhHJrBe4FT4NahLUuVmURdQ9QU2KV/JofRZspoD X-Received: by 10.28.106.6 with SMTP id f6mr10017969wmc.111.1513583885071; Sun, 17 Dec 2017 23:58:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513583885; cv=none; d=google.com; s=arc-20160816; b=0Vcn15FD8P3Kdf8OE/KyH1MJKB2nnlorXAvQ1jCgv2uwUO7C9tFVj2Tt1h/wUu4pCw /B4CtFeh1ynShdsJbauVdmcHGTEwx1AFWdcdASlGVVwbA5SpctUio+3Rgw9LnHiJBZ+J KRS7CyeCHR1si5sj6eGmQiSHMzGRd5uuYBWIZPKn2KumnBOeSwhQs3iZisiC1P9iNs7X VArJjeP6e+SvW7diynqIKXsttLW/DHCPMjzhS98rgSEAveQrhWi4bohn7LFziOdkzCyk 1DOLKjd2RF9lqWL4sQfmGw/5x71/iDJjgub6iLjjx4EJQdA9GPMGi0Vp0LQpe3m49hNJ hVIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from :arc-authentication-results; bh=LJurgMX/5yqvszHlXyr7QFqowei3vYfZ/Th9Ml86cGM=; b=wj9n2APqycWtqIonTzj4ttCP0FCk4aiSTb5Ptzd2XDimZzH/2jJVHsobilVGecZjQ0 sh1KwqOOncuG1tbnvIHv6uZCJrH+lrMfMy923P2RTQbHLGngXQp+ao85auMTzsG//gw0 2hceHgji+1c8J1zdg7bri3oavZrBZVVABhxeU1lRFBNzZqfnP4SeQvHtsywvCUaW8Xn3 bcYdxc6YM/EetPAGahZ1AMN9fAil+MBcgnb4EEXQ4O0kN3049DmWVQdH1xX1xEU29wuw aYl1EFGuNZovdu5BBqnCtxHXHWuTJKX/E3Aepqv1wKRkwD+UxYSqPFM20p6FgsmtUaCn OFZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id p6si3385435wrb.504.2017.12.17.23.58.04; Sun, 17 Dec 2017 23:58:05 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A3951B00F; Mon, 18 Dec 2017 08:58:01 +0100 (CET) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0083.outbound.protection.outlook.com [104.47.32.83]) by dpdk.org (Postfix) with ESMTP id 840A01DBF; Mon, 18 Dec 2017 08:57:56 +0100 (CET) Received: from BN3PR03CA0108.namprd03.prod.outlook.com (10.174.66.26) by CY1PR03MB2362.namprd03.prod.outlook.com (10.166.207.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Mon, 18 Dec 2017 07:57:55 +0000 Received: from BY2FFO11FD015.protection.gbl (2a01:111:f400:7c0c::114) by BN3PR03CA0108.outlook.office365.com (2603:10b6:400:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Mon, 18 Dec 2017 07:57:55 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD015.mail.protection.outlook.com (10.1.14.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Mon, 18 Dec 2017 07:57:43 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBI7vl6F011541; Mon, 18 Dec 2017 00:57:52 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <thomas@monjalon.net>, <bruce.richardson@intel.com>, <nhorman@tuxdriver.com>, Michal Kobylinski <michalx.kobylinski@intel.com>, <stable@dpdk.org> Date: Mon, 18 Dec 2017 13:26:46 +0530 Message-ID: <1513583809-3926-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513583809-3926-1-git-send-email-hemant.agrawal@nxp.com> References: <1513169578-28440-1-git-send-email-hemant.agrawal@nxp.com> <1513583809-3926-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131580574636101767; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(376002)(346002)(396003)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(2351001)(105606002)(498600001)(106466001)(50466002)(97736004)(2906002)(4326008)(59450400001)(2870700001)(76176011)(47776003)(36756003)(81166006)(81156014)(85426001)(53936002)(8676002)(6916009)(2950100002)(86362001)(104016004)(6666003)(356003)(5820100001)(5660300001)(23676004)(54906003)(68736007)(316002)(8936002)(50226002)(77096006)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2362; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD015; 1:wEh5Iq2Ao9q/QBxrEupFtStMzqqERAqzs4qV/ev16GFxnIg0++mcL5G40VaCoTIoZBZleblHRWwJyVOhyhGFW3ORpWq5DaalL8/Rj4V4qMj00hiOUx5ASycxPi1xnMwp X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af2ead2c-c881-4a8f-d087-08d545ed04fd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:CY1PR03MB2362; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 3:gQzo9NrYnpXGMw+PToDSrWcCytWDr/vBcFkQYozAnHThqXeiVVXW8380Avf7/nJcWYENYGY90CoDDjeni+hI20TCDp/JkVUcFs9vvnSWDbysr8mmXXDseksyXwZbQhC9oltiq+LlwXmmFMPIjAnDurZyauLNYkWLCqEAAf/I7OGqtlNkHvAh1t3hvspX3RZpu2rnf+EB2SkWskZLLEPOUKJ9XsekgxPbzv8TQuv9eqJlcqtzd99byPLRc90GlRdjWgny7QoHaazeuWCA9/HYTOggNk8mDCHOb62Y51CQgIcgNF7fAboqkv94d8wujL0+frfSxjoI2CQIw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CY1PR03MB236269BFC51D0E94EE8E746B890E0@CY1PR03MB2362.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231023)(3002001)(6055026)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123561025)(20161123565025)(20161123563025)(201708071742011); SRVR:CY1PR03MB2362; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR03MB2362; X-Forefront-PRVS: 0525BB0ADF X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BCY1PR03MB2362=3B23=3AbHXb?= =?utf-8?q?LBJloLMTneI5nYhnBPhjfL/zmSHYjnFMOaYDWtoXNJ5eSCdccqgXMYoG?= =?utf-8?q?lmBkaiiUI6XmJbc9xQqWxF9Bl4xPRNL7l9DbZtYZaUoKgJ2IiSVMlyxD?= =?utf-8?q?aCvJTUdb2fmPzcTjzBQeSx1kBg1RTb+9nsCBTkicm8K5vfE78alVCYzb?= =?utf-8?q?gWgRmIVpGxAMVRUVA/oFgzawsSJQblNO53pHpsCItWYuxECHlbS0aUTV?= =?utf-8?q?4xMmy/piHLl+IudjUqLAOVUxrBgx1uQfnTSzUBhIwAOa49iEOS1ojuyp?= =?utf-8?q?tfnBOKtP5AvcJk2mvM19amY+rPnDDNfYFNYXeNxW9ZCWLB2PyKr9QUx/?= =?utf-8?q?EUvg1D/pwXWKOSDyO9rRfwnVIlnSUGiHDmscgTLk+ZjXB45hjOBBS+fP?= =?utf-8?q?Q1qdCH1JDNTTs2M0Yz7w3OfbUhv4i3CpqAXr73EXAiU+zclC/41yKPIG?= =?utf-8?q?YD0Y6fto/hFujX+1UshjiqTmrGCEkEpKSuMwoqrPDen2ScIG53mD655e?= =?utf-8?q?qb97LJetNA8XG9p5nqAkFj5Tbt02n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OhGi2Q+Cf70dxc=; 5:W2o3X+sMz6lsvU6Fk0KaOj8GommNh9Rvc/+t3KyPLbDzzUSUDBROgZPBJ82msavvvpLAS8G6URn8MXSDAhe8JSmahZmgJG/VbZYCtijX06YdDV0xK1ZrW7ME3+Vvvck8EMmlx/RuYa//Fe9XLqyFxRIdgisdbLzqlwwNKlt1gZE=; 24:9c2RcG/sYzENSaVBYM/AdqugPHbKGQdSiHnlQKZleP8Z9L6wBnTc1xgXtBZRMLTGhu5FHDH5YzeTmbs7AfPvMpsLZVKHeg0P1MJJ8e83l/g=; 7:BM/GWv4ukzg+j0cL4oW62Q9jkuWg3nkAeVL68+oTEUFNp440h/8J71AtQViU1q1bGwgOMdUALLnVEl6JP12/KvxK0SHU8ABuaXJVeBoUQe7dXnIrmj+SaKARpGlsHqopK32Z/9qIyhWJzZuwMG6tOVljCueU8c6NQBMiS4rhDuwRvX56hu1BIaG37nc4E6mBj3aE7L3Yuh2mDYS8C7rDMP3x+mBMruirasXlVZJfKABXdgV2NVUDAyuIgg/ZKQ9g SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2017 07:57:43.4229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af2ead2c-c881-4a8f-d087-08d545ed04fd X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2362 Subject: [dpdk-dev] [PATCH v3 2/5] lpm: fix compilation on ARM BE X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series | [v3,1/5] pmdinfogen: fix cross compilation for ARM BE | expand |
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,