From patchwork Thu Nov 2 10:08:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 117763 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1964403qgn; Thu, 2 Nov 2017 03:09:57 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QzNgsWsCT1iR47/19KBw3UJEwourA7FarcfeRV9PbVbjKCTrBnDrsRAd8+MiHEqq/RY3qM X-Received: by 10.28.105.142 with SMTP id z14mr1232376wmh.41.1509617397752; Thu, 02 Nov 2017 03:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509617397; cv=none; d=google.com; s=arc-20160816; b=pTGERqFqvN+DsyjTd8tp1X2VmEE8iPclShI7Lco4xDgiwU+y9qD2k3KaPxrNW7+RR8 olILJCAZ6gTonOwW+yaPwjJ3OQHU1Mu6Sk3yrwlAv5GY9BJyLx9kYjtp9LPeq58x9pT7 OKZoxy+kgqmW5dJWvQT1lJ2o/meVW8eNksTauRDjHkk/rR/fyK3rQZPjwXG8D+l8WNQy wJl8AOQB8cjkC/I4wNm1lvpl65lpy2MutjWAsqbJOSPrTrrn06vb2/kbkpK22Wzx4v37 kVUDkeRz3jNkDBUq3+QBVQmRbrkNA3l6NpqXjoX0hnVIO6r5987yVlumS6f2jdKBOg6N CTjA== 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:mime-version:message-id:date:cc:to:from :arc-authentication-results; bh=GP+MlyutaZhkIwi3lP7tKUJOiU+Xcrg60/bAoZIh20w=; b=OE2e8c/oveHXRSj7xM698V6k7OIkbYwtrXt34p63mNqgdFwTmBzu2T1R1+QRfkwtRY Fe9jp4oafLs/+vINUMD7B8kY36P7HffbFVB/yYPW9AT+WJVxYXdxIqWS0lQsaq9EHb6c dzPtmmBgLlrSj4KjeBMyYA/MgAsC84naoM6JPFscEs7yt94Khiz+Mg+WFqr2WlnPmHs7 HadIk3wxG8kuR/OPA70maY4mVnk17FTCayHJ2uU8Tx9WBt1hiPYGvOfTEsPW0Fbs9O/h S0Ny/VuCtROCIxpR9ttJajgH9JGjTM9XXDwR8w3LrpW1m1YIwoDZcswKzSjW6P/zMOnS sVow== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 74si2508985wrm.334.2017.11.02.03.09.57; Thu, 02 Nov 2017 03:09:57 -0700 (PDT) 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 460401B3C9; Thu, 2 Nov 2017 11:09:50 +0100 (CET) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0059.outbound.protection.outlook.com [104.47.37.59]) by dpdk.org (Postfix) with ESMTP id 743621B3B3; Thu, 2 Nov 2017 11:09:47 +0100 (CET) Received: from MWHPR03CA0050.namprd03.prod.outlook.com (10.174.173.167) by CY4PR03MB2696.namprd03.prod.outlook.com (10.173.43.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Thu, 2 Nov 2017 10:09:43 +0000 Received: from BL2FFO11FD028.protection.gbl (2a01:111:f400:7c09::118) by MWHPR03CA0050.outlook.office365.com (2603:10b6:301:3b::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Thu, 2 Nov 2017 10:09:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; 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 BL2FFO11FD028.mail.protection.outlook.com (10.173.161.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 2 Nov 2017 10:09:42 +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 vA2A9bnQ031572; Thu, 2 Nov 2017 03:09:38 -0700 From: Hemant Agrawal To: CC: , Neil Horman , , Jun Yang Date: Thu, 2 Nov 2017 15:38:51 +0530 Message-ID: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131540909827216392; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(346002)(39380400002)(376002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(106466001)(305945005)(81166006)(8676002)(81156014)(356003)(8936002)(2351001)(4326008)(97736004)(189998001)(36756003)(85426001)(33646002)(68736007)(105606002)(77096006)(50466002)(53936002)(50986999)(50226002)(54906003)(5660300001)(48376002)(104016004)(316002)(498600001)(8656006)(2906002)(16586007)(575784001)(6916009)(5003940100001)(6666003)(86362001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2696; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD028; 1:YqdIL06ITBy0BP9ZetCXKAsDeTMzroY+jL+yPbCR+0fL85AKAJf984w/R6saYftf0E3ztTycs4OnYTTRz5BbF2YLN0JNwnBhFdeQWZL2Jvr+4+0zQZqBoDa4QW9cy716 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c6a4228-589c-4328-d408-08d521d9d625 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:CY4PR03MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 3:16Mi1jy59GUqhM8esYfoS6NyrN7/iHqZdqtuNKg5Qv8m0Mo4Vwl5DtOnndKKTNgR0sWOdb9gA8BkXltyxSMaNW4cf7c4+vL0AXyDCSlrRaSJi3W8f/vSazu5ZKfoyQ62UmrMzpGHBC4rzARgbbeY2vPc+Ty/bIiBLx2znnx2+crkYKOwKkgd8a5CJ03kgHT/Ryl/NSILruZVIt0mYtx67gXGXPm7LxqN+Ip4rwyQ0VLSi0yNigoip2LwFaIrC0HimK8DzrBj+dHnEPVNqi7JbwoJsnXVY05qqEul0aMKzHUmWEtiAhcZ0+C7ok8bjdizFXf24DZ4nzHYszzXN+VMha4OtumwTyK51N6s9qT3+pY=; 25:oGYFOal+wlqvnml69PeFyAXd0ONaDsiVXdmw1KiRHDonbgSe13cQCIuZASZYZMBZcJEIIXYGFEZYEYgzHkxlwxr4n9ayhuXRUkASuXkXaDG+Z5nIAjCEOyXHDGpFYDJnNffRsjDO2JXCF6baYM+KToU9jX0+fMb60dOh8JmRhHZxB/zIYpO87EUwngYYZlqWnj56C+LvVepBvmGDn6eiyXOCMhGw3xhQVgSerspLmNU5VTZvoulRc/XnGmZuZvFXpfUH4LuDYdtmbjmBjef+B6qYgXHybApYKt7QEcugQUH4BEFA1GTy+yjhjtabyNBKgvYpEzQnHXVTbDyCaETv3Q== X-MS-TrafficTypeDiagnostic: CY4PR03MB2696: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 31:phiAIKcsC2X5m/4LnUBW/1rhjIq3m6mcJ4I0bkv2u9hxe/dJObB4s50hRhB+WnwVonlZRpz4obxSeta/Od0NJiAnGGciCIe3TSoDXfL5yvfD8rn+trgBDvN9lM2/axUK+y87NfgMWVEfkesHLM72sq/CUhgZjhUg6rQlj3R8g/vLG6iNWERJP6UUIlD5ckgJebBoXj4L0oCGxTWyYed5XwyjPcJl2IadWqltLDntRog=; 4:N+iO4R64egQXLSqVIaoQeuTKmv4vHm9TjRiHEctgSxaM9eb4o08b0wk31apbVTOyQPX9/rIUEn/XR2PsuNBikya1OkPAcs7WhDsZbNqbFXHPb8kurYu352HwalR4WglKdBYtMthyp8RzPMLvmYVN85fIVWP1Z+68SffnR79YyIGYOf3isD1UC48vfZtseS7XoN52fWQU912IJCYTJx6Y4Eq7CEAcMzo7U8x630nzIqek9vcIPMzmTf6cTqsnqV87W/wDfsxNep1JxwIbcuvRfo2tJyujLoSKQj3j0ghjo/ZkRcvkkXrpQ+gV4DiZjjzpC38hVC+rfgdDIO4dZ1+Mioq2QxnCkx2tPe3kghy4u0A= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3231020)(3002001)(6055026)(6096035)(20161123559100)(20161123561025)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB2696; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB2696; X-Forefront-PRVS: 047999FF16 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2696; 23:AC+B3BzjgXYsuwVLpga5hvYV9CEtJbGBQkp4ugYRM?= v7BUdEVO7u93Ri7Mhgo0Uv9taHRJjvoM2M6dAzsr3uKfPi66qVv2asV8xz4U5/ujeg1x8nMTKyaYdXGCNEWF41xtYYkeV/Ga6lOhCdYve/0uBxRW9Bk2EV3FfpQNr+TWVTR+cczED+ZBVMC+fUAHI3SXsWuekvFFqPdVPpQeznVMpAIgbWHR0hHja0D4Hjdzy97XmnpgFQeCUFbiDhUoXitnxLW1Q3izYmGcdfzXeitoo7CG7LaczJXMKr+f5W+Cwy6OwQXVwlK//PuCs3pbRBRxtzTmiLZZRYstmarwN8kcc8x+DgokZ9JJ7wTuxbcWdTmjRkxs/8LZXHEvDjPViU2P8QrCTuLH9vnt8LrjCN91OQ5EOhvHuzqC+Js2boK3S5T/tz9FDBWAHdPkcp7fA6A+4mu6QM4ebxcESBobubqQoaQcaHrcaT0kdjE7uAkPYitezLioSO6GcNM4OWLiRp88KzHDPUtX0f6p2zLdjWox/FBt5WsnkWsGzQs1LKHiIuxI/wQ9ohsHyJzPtFWo2HsPz5VxcmIbHFLouZzL0Bg2I3Q8ALFdRfB6b3F8ATVbVOsMwY1jSu9ZdnS1v2Zi85J+0SiNkEtiRBZozoRvYbGWcKek7GSKInvrDw/snNi6qwicZZYQgAYtEvujnKjtrQYFmQepAQknF9k1PZWg1CcOtJ4R9Dk4G5ZsI3efU/uafd5Ymbt3jxND5JdrJhnJ+T/qckYhkXAlm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:0j67nxM3EVtVRqOvZzpfoHYRaoFaoWJgqXAUN+t0N7qfXL0WQJoG5JrV3oQVnN/M79Nc3Yrwq3BJGndplvrsYn88YiZkflgqUrILswRilY9hE8fbYMAAWSmdQLEMyOrLLlk8gtdkoolrYq1U0MHbOXYoyRVdDVA1/Yan+1edIgV8G3gE36mtJThdL4i5za5HUHcTSlKP7ho0PEIE8k5+HIBAL8HROvrgbDKK+xnd5lQC+eVMo7JvXMb3wCITBflN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 10:09:42.5656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c6a4228-589c-4328-d408-08d521d9d625 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: CY4PR03MB2696 Subject: [dpdk-dev] [PATCH 1/5] pmdinfogen: fix cross compilation for ARM BE 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" cross compiling DPDK for BE mode on ARM results into errors "PMDINFO portal/dpaa2_hw_dpio.o.pmd.c No drivers registered" Fixes: 98b0fdb0ffc6 ("pmdinfogen: add buildtools and pmdinfogen utility") Cc: Neil Horman Cc: stable@dpdk.org Signed-off-by: Jun Yang Signed-off-by: Hemant Agrawal --- buildtools/pmdinfogen/pmdinfogen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Acked-by: Bruce Richardson Acked-by: Neil Horman diff --git a/buildtools/pmdinfogen/pmdinfogen.c b/buildtools/pmdinfogen/pmdinfogen.c index e73fc76..9119e52 100644 --- a/buildtools/pmdinfogen/pmdinfogen.c +++ b/buildtools/pmdinfogen/pmdinfogen.c @@ -181,7 +181,7 @@ static int parse_elf(struct elf_info *info, const char *filename) sechdrs[i].sh_offset = TO_NATIVE(endian, ADDR_SIZE, sechdrs[i].sh_offset); sechdrs[i].sh_size = - TO_NATIVE(endian, 32, sechdrs[i].sh_size); + TO_NATIVE(endian, ADDR_SIZE, sechdrs[i].sh_size); sechdrs[i].sh_link = TO_NATIVE(endian, 32, sechdrs[i].sh_link); sechdrs[i].sh_info = From patchwork Thu Nov 2 10:08:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 117762 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1964271qgn; Thu, 2 Nov 2017 03:09:49 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TbX4l8xP+L6d2s+RfGEZgu89WCFjR1wgnUbhbQDaOHJ6CRVGbMPS3rkbHQuKtjE4dDJN1k X-Received: by 10.28.20.141 with SMTP id 135mr1129894wmu.74.1509617389591; Thu, 02 Nov 2017 03:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509617389; cv=none; d=google.com; s=arc-20160816; b=XNMg2iMH0uQ4M8gzXQ3qK1nflOsy1gRDa/2oYhKb+r4QRa8BeUF59FbDZIG8bNY1W+ ADBJoQvSM0qllJSbwOuuzU5R/M4E9lQ70B4BZQyFYRXr21+nxHlye9PiVNNFcLJ8w3sc XUrlnEi3+z8xF6hhrTNzLYhx/O5ezw3JtBMpt0U2hiEFA7/df+H4iB0rAd7BrAzF+yf1 hz7eZmQws3Xb3Farhm1oasYu7Eiqa8NsG/14vIXtwfB+z+KkJPuZvXzF4ZzKkJ8mayrS 3zN0tKRBsLYsQF5c+PsfgUz+s0TKbpO+DR0BnhOuzupW+T22mq7QpAHLGRIJvqorOGDn wMPw== 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=1vp6kM+ZCycN1P7fQAKMClXVwQwoaC7UrzoYelspmjs=; b=yOMnOp2uB9VX4NSVEimr7KNGhTmsM5S82BprMdgBZjUEKKEIOS6fe2pM/TSvMyoOGh 3gtLRi0ETFHLr3HeOqM+IBajh2vR9v99thOiRo2QCrGNdOAMl9gcmcZwDADFv4ivwBkZ h3VKcqJUGLEO1wtGmDySTas3O3Iq63hTq6qP3EBMtt3de8QZhhBlT361Sz5CAMh/SHfy OrfbE6x6EdktnwTNqPkw/qDUj2Z4mZdCgllOqomBt1gtVBsXj/XRxTNWXfNLPJrzgwLa e/mq3th/+Toh7aZDLggL4lJxivA0Qshe2UvNcWH//yPGntZN0B8e7LlNVZN4+K3h7yWZ fFog== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id a77si2459274wma.225.2017.11.02.03.09.49; Thu, 02 Nov 2017 03:09:49 -0700 (PDT) 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 DDAC71B3B6; Thu, 2 Nov 2017 11:09:48 +0100 (CET) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0059.outbound.protection.outlook.com [104.47.42.59]) by dpdk.org (Postfix) with ESMTP id 1A8781B3A7; Thu, 2 Nov 2017 11:09:46 +0100 (CET) Received: from MWHPR03CA0004.namprd03.prod.outlook.com (10.175.133.142) by BN6PR03MB2691.namprd03.prod.outlook.com (10.173.144.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Thu, 2 Nov 2017 10:09:45 +0000 Received: from BN1BFFO11FD036.protection.gbl (2a01:111:f400:7c10::1:132) by MWHPR03CA0004.outlook.office365.com (2603:10b6:300:117::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Thu, 2 Nov 2017 10:09:44 +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 BN1BFFO11FD036.mail.protection.outlook.com (10.58.144.99) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 2 Nov 2017 10:09:44 +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 vA2A9bnR031572; Thu, 2 Nov 2017 03:09:42 -0700 From: Hemant Agrawal To: CC: , Michal Kobylinski , Date: Thu, 2 Nov 2017 15:38:52 +0530 Message-ID: <1509617335-6354-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131540909847496220; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(346002)(376002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(85426001)(189998001)(316002)(50986999)(2906002)(2950100002)(36756003)(4326008)(68736007)(50466002)(6916009)(23676003)(5820100001)(106466001)(105606002)(54906003)(76176999)(2351001)(2870700001)(33646002)(50226002)(6666003)(53936002)(8936002)(86362001)(97736004)(498600001)(104016004)(77096006)(8676002)(81156014)(81166006)(5660300001)(47776003)(305945005)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2691; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD036; 1:G/ihgvhQkM1Tx+7cDI4PXsntozwhpIVI0g0ztLanqIuwX7dkakXq7PI3QbLn1FQ66i17ZlZRYtHIi8tHjX0jTKVEcz5ZlPdr0BgGf9kFyIs8m9qKFlwSy/Kopx2GsBiH X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 58b6753e-f3fb-418d-461c-08d521d9d75b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603238); SRVR:BN6PR03MB2691; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2691; 3:qAtzSXeMldBH7U2u9I9ro5Ys0Mtt0sJ2LeTsfmCZ84R/9ThvYh9OLzC38q+aKYGU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lZloHbfBt4L9WB9ElXBVycMEkcW0OQXOiewVFAm3fQYsa+pRJtd2sHT23MCAdDVZHza1/U6y4DLg1HvvqgXBnmU62HAt9wSoAIxqKf06Qce4dtNW/JgkGaQAqbI3ZKYLINoq9hwvqvA/yW6uuvWqdb1SpcFXZH1ksCc94Vbawkk3qz30+N/Mmmfj+FVXfIJ7j/M/BG+tbtK6MkmRq6pbq/tIleAxbHX0PO+K/BIi48nsVVT4tthE7+XpU= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231020)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123556025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2691; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2691; X-Forefront-PRVS: 047999FF16 X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BBN6PR03MB2691=3B23=3A0iTS?= =?utf-8?q?HRQZypXzUUMOZeWqKxEQ6scpTnf8e9v+syv48ch7H7dkRim35kMFDsIv?= =?utf-8?q?PWwA2k2CUkJkKfBE9v1s0hbJ4xrI8CQKFAiPtqbRBWy5bciySrGDuvx2?= =?utf-8?q?+2FYY+qIQUyznkXt/f8Lz8VGPRyu7jxGSaY7rnu50cm7OEvUO+KN5hCt?= =?utf-8?q?UU5IpkxX1c78CSEav3ttLBVqYw2HO5S76cbRtxtgSIHN4JFGYh7Sef66?= =?utf-8?q?ajTXjqUUoetuGT+HgDg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UH0EnEKVqLWy29UZLP1B6sjbsQkui5XA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2691; 6:POk36xuGcV6pxlgZrJ3P54QfMkvbHpNNIv18IAPCkhT5Yw8t09R07rAYB41vQR8TEk/20TZHHfrpRxCwNTPn5h+kAEbtWL4eV42GYEF1n0Qb3IkDVQ/P3XTbC2EIkGdoX6ZSKdgMpNS374wZ/TbtytIJK7wHnZL/piCbgo9y1EsgOTivps4zQf0EJc4TZ6KgDP9ZU9UftxogaUY/znUOaSf/HVjIis9+NrTtUUVjWGFASHH9IX82w2T8rsPnM5vXsRjiLbr+uZYhmlrMzDAzajirzLo/KA3Xf+QujNNVGWmNH58QefNkBc5LHCgK2rgIqEBmpFPc+tDUHxSbNTPlAv2ZwYAigfI14U2TDMPgFqs=; 5:1aYHPrQ2Qsrph9K9xC06xzt7OIZ5qNrvGYIM1b4svI5M0QPqEEu8owHJ6c22t7wescqsTGhMcwalYDoO+ya9SNcB8OJDXD+pX4z0o+eem5jXGojVZIXURLg4M0t26m6EcSCZoEpe/SefRKLy36D0cOa6MRXm7zW6JH2yxsGzCRA=; 24:s3tgQleKyWsTSmwQg7F435nwIayalgFsPI3mT6+enymhYi/FvwtT3uXz1IxiZFupIlT6jq0sAcdrJ21Az4a2fOc/wcrrX8nrJMy8qqJUq20=; 7:mVsai8da18ZveuJrvfrUJKwCNFqy61CUGKq7JA0lNxVHkCMBJR+NiFgOxfGvV2/zeep1sswyUqQEB7vE7wS22F6PDVPxeV3ejFZIT//IXZ/+9QlZ8ivPsWqvTs3na+xmO+UktE4a9TjsLGJ75WeaqpMiHLIt3U1O7R+s9auIWzb+ZRX/B+5WvQQfNFynFj0zx9citFf1SB3C94EeSegtsu6g4Ox7ETBddtUFsiD30RqfJ4wSY4dhPHzq1pZKkH9Q SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 10:09:44.5780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58b6753e-f3fb-418d-461c-08d521d9d75b 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: BN6PR03MB2691 Subject: [dpdk-dev] [PATCH 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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") Cc: Michal Kobylinski Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- lib/librte_lpm/rte_lpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 Acked-by: Bruce Richardson diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 140dbb2..3723743 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -913,7 +913,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, @@ -959,7 +959,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, @@ -1366,7 +1366,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, @@ -1669,7 +1669,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, From patchwork Thu Nov 2 10:08:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 117764 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1964593qgn; Thu, 2 Nov 2017 03:10:10 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TRtHSqJkDdO1FLQ75Z3X+oow6qFa/eX/aYwardUJ9kzgerfdg2R5OUqVYMSY3yBrrtBhCy X-Received: by 10.223.201.8 with SMTP id m8mr1407400wrh.260.1509617409879; Thu, 02 Nov 2017 03:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509617409; cv=none; d=google.com; s=arc-20160816; b=iGZfn7Bew39/ZHNYMm9ndNxoGPIhTHYB9MXCePhDgPgW0uZX3SIkDTAH+8tvquQl50 bkJzCKzM9Q+mMuza+4/ZMaiRhVRepJYC2NPgUrNldovfmrEIm26B3funHy9FlIpNI6VI /nI4SeRUCjyf7lcqCCKHqP/mkrQFIs1uK4hJEwiwefCAtx2z+C5m1aIPRyZn4XHz7wK8 0/mMkf0y7pUJjs9t8h+j5aAACH2ZA9SqlmG068q8DFYBjdQm6F8g4vW/LiwZ2HlxQYxq Ty7E83jpwprub9fnyN1d1ZuBQK3OQ5AG2YjNYJWSy2uhDBlCIQeprZyG9Lm8eDlo93m4 tNww== 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:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=GUhIfZQXc0+musYn0uWri4AGAOdP4/9vMDlma2/mj5U=; b=Ckb8Ov1J+ihU+/KLQ1dR72vH+KTGocsjwQupCowEninDX1zgw/6rBP/CXNIdlY6eGk inqKKlILu6uzeZrpvm6Ovf6UKyNh08GJDGKqBUbcKSF49YMilRZb8DwKrCPwJbKsboG7 kuAeDlIE89wT6/gznALAKxeFjAHsQ/j0PkAqomFaShzp7BNasvdPZEltawOn7uauoRvH kMaFZ+eYE/9At2/Or/A1xhW2O3q+d924BKv9raXNNgC191Y2YoAfdeLF40L00r8tWdn2 bCJoGsqa1EW3pd1BggbxpucwgeC5i5prlVPrf1ElucXyHN4tEeRelIQsbAYdcbjL1No7 fAhQ== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id r20si2608860wmb.17.2017.11.02.03.10.09; Thu, 02 Nov 2017 03:10:09 -0700 (PDT) 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 EFE4A1B3D2; Thu, 2 Nov 2017 11:09:51 +0100 (CET) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0042.outbound.protection.outlook.com [104.47.41.42]) by dpdk.org (Postfix) with ESMTP id D86241B3A7 for ; Thu, 2 Nov 2017 11:09:48 +0100 (CET) Received: from BN6PR03CA0018.namprd03.prod.outlook.com (10.168.230.156) by CO2PR03MB2357.namprd03.prod.outlook.com (10.166.93.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Thu, 2 Nov 2017 10:09:46 +0000 Received: from BN1AFFO11FD045.protection.gbl (2a01:111:f400:7c10::147) by BN6PR03CA0018.outlook.office365.com (2603:10b6:404:23::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Thu, 2 Nov 2017 10:09:46 +0000 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 BN1AFFO11FD045.mail.protection.outlook.com (10.58.53.60) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 2 Nov 2017 10:09:46 +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 vA2A9bnS031572; Thu, 2 Nov 2017 03:09:44 -0700 From: Hemant Agrawal To: CC: Date: Thu, 2 Nov 2017 15:38:53 +0530 Message-ID: <1509617335-6354-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131540909865755333; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(39860400002)(39380400002)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(3190300001)(199003)(189002)(50226002)(16586007)(316002)(8676002)(86362001)(81166006)(81156014)(104016004)(2351001)(189998001)(105606002)(50466002)(106466001)(33646002)(76176999)(50986999)(97736004)(48376002)(2906002)(53936002)(305945005)(6916009)(2950100002)(68736007)(5660300001)(5003940100001)(356003)(36756003)(498600001)(77096006)(47776003)(6666003)(4326008)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2357; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD045; 1:hFcm4PVDDyot6jNqfIRvUSmp8i38BmEfVmsQBUFEhQpJMptYjy63BQ0AkGKSgGUNeLvhsYIKvnJImRKbL2itN9cz8Be2PeaBmV5IxUCTdSXsMFF5NBuYcr6rzOPGYWxM MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ec57ee55-ebf2-4ded-8166-08d521d9d86f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603238); SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 3:QqBzzzk8FXQOyWTl91HpYzFs32clsU/DDUSFbz/jscv8sQCe4d4+SSyTD6UZ+Duw8wZ0EtpTYLpZSMihhEdFtW4Z5h0dJ3o6tidDatRmAa7kAf6ha1ByJG0ttdv2169QJgeZ5vI1F6HK/k4cKaIR+C08AiOLGQJ2FEmnlTsB+ZcwpdMQBmLmD4Ry3yZRajo3oJYKjqAXWGBsL4oohZLTuprIOb3SaIoXL7YK7TxOuBt12/cWmnv6pIWONFZoMhNQneWy1I1uLbxZBkkQtWeHm211IAPc7vmG7BnGLVnBOwtVWRr8SM9LbKzKqZqjb/hSU/MXIkDetprB/9R/7pI8psk8o2VneCK4UX3HootRyfY=; 25:BW6uZPF04ptGfZrhIIY4w9sMQnRkM9x6w7ONCWRVXqW9k4Nv3vdcpmMGSPlpHVjZ2XZ1eQqCM21ZRc0HoK5N9bYcEZiEOC/4mXxG7yuYA0fjHN3D6nEiIqVrU+WJjcjKO2kuXjeV0IOdaOELv8OV3oX593fmx+py/4rAM6ftTkpuhUnCOg7+lGBKty+YfMH1SfJY2TENbbm8tbX9gMAJ+y79VhjREDISvphNzm1cxT/XKygSdi5BEW5AKC6E8PJjXew4pJsbdUFXSqlwoCgEWFZEpOCAQUvpWIIwFwFRG/JTB3qzzsH2NpziHHvUcU+fF9EdyV633ofUCTHTGszM5A== X-MS-TrafficTypeDiagnostic: CO2PR03MB2357: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 31:0l/5K7ezwZyIMDsVIr2bxlaE0Tmz8gwH0CTyiP6z5f2Yoj3hq/prep8OQ8eJuso1rLkOdRelqVL8RQegFRy+xolcKOgSegQKUPLGb1LFT5bP188naGvRfFC2rinR2caS+n2i/sd3L0xfUWJJ0Ii2atTtvWhBPffoaQ6kd0BDsyoNKONtpyYPvqSih4vkh068NEsYgnRXr1vbsN46PscVHQTgTgCeCEGuPoYAaeVm1wo=; 4:4mjR6MRZGjX8YzGeNfIqM/OsWp48Zu/3ug6JxMNd2GpHwdYrMR2G583kGnqQCj3iLd6dAQJL9x6XbdsRxyGZa8j27HT2lv3xa9usjD4s61maHhjx1bx2HPVbiVaASKIi9tlRqGB1SFKQzwTtYNlW6cGeQWZfjDE7OB92drfeqmuGw9L7c8XfHzLcHBkWNFixVlXWTz7FMznEUu/h00SK6EESBFuWlcsi209rB595TdZzzGyccJubsr3XzZjeJhvn4STbNB7crK61oZp+paZIE76LEPH8W+7nonTRO/Lo8wVSwBaqr66Y2W4KN4EXwTUE X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3231020)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123559100)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(20161123561025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2357; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2357; X-Forefront-PRVS: 047999FF16 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2357; 23:f1q6YsP+pvwOsqeD1JLAWN6xxVas8V7+tyTOqJDa9?= vzLbDTbdrVTOaTwE44/UU7PMVctD0DlH16pxr4QI9RSiTLCKlslaJ5a3fy6E1NGR8W2tJ1caqIOJ9Ns554vctrhEhaC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yZgOxzwKL5pVD7ChGce5w6W8BPSENl4dwteEamlGCLblQSfku4Sc9Xk2UPRIGvpXICZZtQGy1zwlBeR68VdfDqB4Q/aM9nX5fwUycRP4J61dojXuCCEYEqd/i71gROT3AbkAretIbvweGt7uVR4KdsKX9zdZF2WlRKwnTka/NZ/3BCixGIS++QvEaDi4ic64B96IYzH53dGOq5HmIzJ0vrIUW/pWmQL8yzQcqqabYeruEDKTTEhzD+XT5t6NER8dcaKv8jub+j0s/2ohUbZk3qw5pc49b1iq+FNP4JWQdlJeXP6ocQEiz5qUF2C7LHlmXVdyODmh9JpzUi8dmO55gN9hQ8M=; 5:xzpYqKLSSDsmH3RrH5KdvPwkRk7KGRUVPWFyZh3ysd95QotvwsPdFSL3aYt2WWduaHknctOza/guODOPTLnQP00FcJbQZpqucAZljGCTgCnSqDV3Tp8E/Nma7oHmkivNXSsDFtrRHnMcE/UVXj76yWv/j1nnIm8ij2XY/8yjSN0=; 24:Y2pRUHqyb801o0mS1mP4Kzo+q6byTJkIuCx9zEWZ2gkBC60ac5JOPcGnQMPj1vG+6KoBroSUYDWBDl706V7jhlydOkQzBUFeiMFyxk/YALU=; 7:UsxE8e+KLBo8S7obLtu87SvjO/mkpfI+3VE67x6hfjiKiL2Yam+ePKB4akaHkvqztKfDEVtGLeBE9Jj2ZZI1MKbyIZAY2awRqjdpokJf7MnsbWQ4SPGQhZuS/SAlI2ASHHLIL2XLffaVSi/cVExJ2ilAXWiv0ac1vqhswR6wOYA/QjJXe0Y1E53jZF93Y6oHz8okwMc3XghOT/LvoRQcQO/d2Qp9ZnpyWmSD2LsyPez2l0uk5+WyEh0o2Vw9542A SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 10:09:46.3883 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec57ee55-ebf2-4ded-8166-08d521d9d86f 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: CO2PR03MB2357 Subject: [dpdk-dev] [PATCH 3/5] bus/dpaa: fix compilation on ARM BE 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix the following compilation error when compiling with ARM BE compiler. drivers/bus/dpaa/include/fsl_qman.h:1997:25: error: statement with no effect [-Werror=unused-value] #define hw_sg_to_cpu(x) (x) Fixes: c47ff048b99a ("bus/dpaa: add QMAN driver core routines") Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/include/fsl_qman.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h index eedfd7e..72556dc 100644 --- a/drivers/bus/dpaa/include/fsl_qman.h +++ b/drivers/bus/dpaa/include/fsl_qman.h @@ -1993,8 +1993,8 @@ static inline int qman_poll_fq_for_init(struct qman_fq *fq) } #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -#define cpu_to_hw_sg(x) (x) -#define hw_sg_to_cpu(x) (x) +#define cpu_to_hw_sg(x) +#define hw_sg_to_cpu(x) #else #define cpu_to_hw_sg(x) __cpu_to_hw_sg(x) #define hw_sg_to_cpu(x) __hw_sg_to_cpu(x) From patchwork Thu Nov 2 10:08:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 117765 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1964789qgn; Thu, 2 Nov 2017 03:10:21 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Q/hAv7uqjwpx6Onfny+osKD9HfQWBGQZxbU8mBM3dffRY14XKIKCV0hGcEgIvARU1TWYdd X-Received: by 10.223.175.232 with SMTP id y40mr2495852wrd.207.1509617421488; Thu, 02 Nov 2017 03:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509617421; cv=none; d=google.com; s=arc-20160816; b=OOo+3x9ZL79jWtvLFkKzzE6kNqT/m0/0UqPFXGjLTPK0PM1OTG1yXRlsaNiZPILLns rIY+/U7I0lynPIsi1RR0NNFVQYJNiRRY3lCw85oeeLflY8KKi5MFxq7+3v18QUUH8StP px/efUv1W9Sh8fqrcrOclVqkpE/Ask20Zu2xZRr8Rxov/cVDVrLSF0i1CL0Q5UhgY4d5 ykUHy52u4e3/Bds5jPhdyQXVnoo0UKYzalMGzFyBHotqb/72IjZptxFfaBT+Atm3oj+j Mu4Xh6GPeysDYyGk3OJZW6cGEjRBUVEm6SUV8c1/Fo44hQIRvy4+w3KsR2JotX2+NxhP TYFA== 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=YAmjESA/mtKag2VZ0dFEAeB1tZGenp6RKN7OByEg5KA=; b=VpNCRiQ7nsAdlkr/oarteX2HBBwPQIZ5LCntNM0IaMUwdajucEdPKT9nkuZT9XOs8B CjYK3NdymSY2XT61gT7Tz4QS/BqVXcTZfP1K6GV+UqCfSdhwhkx2uUNE4R14EUVQl3gR OfUVhEJg59yTZuTUhRFpmNrF2xqX4R0ycLtkCc2QcK/CXWmHgc9/8qikPhn4KXMK+Bc+ CHlNIhLBmlWK4BLpe4RqxncVNmOVkrlU5icvbONiYz0QaNHj1g3TkuHsDaQ05u9IjxnO XBxnHhg7eWhPmFLBn+ziPFDydYIzalf3tWwZiMdnzIBB3EH71cGax+sxrYnlpGul7oGz gpBg== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id g3si2486678wrh.161.2017.11.02.03.10.21; Thu, 02 Nov 2017 03:10:21 -0700 (PDT) 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 F14A51B3C8; Thu, 2 Nov 2017 11:09:53 +0100 (CET) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0064.outbound.protection.outlook.com [104.47.40.64]) by dpdk.org (Postfix) with ESMTP id 4D3C51B3CA; Thu, 2 Nov 2017 11:09:50 +0100 (CET) Received: from CY4PR03CA0007.namprd03.prod.outlook.com (10.168.162.17) by CO2PR03MB2360.namprd03.prod.outlook.com (10.166.93.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Thu, 2 Nov 2017 10:09:48 +0000 Received: from BN1AFFO11FD034.protection.gbl (2a01:111:f400:7c10::179) by CY4PR03CA0007.outlook.office365.com (2603:10b6:903:33::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Thu, 2 Nov 2017 10:09:48 +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 BN1AFFO11FD034.mail.protection.outlook.com (10.58.52.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 2 Nov 2017 10:09:48 +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 vA2A9bnT031572; Thu, 2 Nov 2017 03:09:46 -0700 From: Hemant Agrawal To: CC: , Marvin Liu , Date: Thu, 2 Nov 2017 15:38:54 +0530 Message-ID: <1509617335-6354-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131540909884688582; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(376002)(39380400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(8676002)(85426001)(356003)(316002)(5820100001)(81166006)(81156014)(498600001)(68736007)(54906003)(8936002)(77096006)(2351001)(2870700001)(50226002)(36756003)(47776003)(86362001)(105606002)(305945005)(106466001)(23676003)(6666003)(4326008)(50466002)(50986999)(2950100002)(6916009)(97736004)(2906002)(33646002)(189998001)(104016004)(76176999)(5660300001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2360; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD034; 1:cLR/S7TmFjSaHSfN7P4xA+BuiSBxsVfuBq2DyQ7UeYzVrQqnq3N/xxQ1orbpb0cCP0I6a1tCYPxrEESbFJbNqNUNp9uWGkO0UftNnZp++i2wyGJr4+v+wsKNL20pyGEa X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b1f789c6-bffd-4901-c8c6-08d521d9d992 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:CO2PR03MB2360; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 3:PUpSAb52eM1YFfkBBo1/fGEzdpNTwAim3UyZh7l43CDggwKgj+ja8/uFwzG2PSBtWyDPIZ5xquEgw0+6FtDK8EH3fH8LkLF+xPuQUzwPjQVqrYKzqiFIv5L8JkNJ8H+62WMoyJhEgGvToIvCeWSXO5sFCgmZf3TuZ6hOpsWnsZsd3eAQIe+9EXbKT1bL2xuy42/i5dndPuL2Rpep2s/kdBi/tUyO7l/WOGQDoBQpXNmtMFIR7nAzNRG5kz5zInsW0S/BGRcCUMCN/+MDRF/L2TWORHIFsCi4XhfUj/VgaQfQ0Lhu/FWHGQtFybkiIlElqeUGDYyrA3vlEiOOQuo5AZz+gdl6eZz6Jlf7iTtzW0c=; 25:y1Lm6djExeBpZdaMSnlx7rlhEeI10Bxw/NGRNg+JsfWH0cSE6N70MKPT8NgiAfJGreq91KAd9/E9j6XDWmVqLcq2xA5djonpswihxh/FX4jFt++4oPWX0Mzi6NpH5OJFYQ3+08u5YenJpyp/yD6JOSPKSNUgU9pcBmn0LHgPCCN+qnBXEYYhCW5eQM4mv6Dv4iPsXpDLP3B5HvPWP4fSkt3PJR8DUiywSigoRBl9sVOg2iN6j15/ISyfm5CXa4pVnXGmrr8tDM+f7nPD9UAf8KRnFDN0wEU4OVr6aBUI2Lx2lk8/bTdvfZoJvsh8aVwbWTyCC+511EUWzFeUaMb6Hg== X-MS-TrafficTypeDiagnostic: CO2PR03MB2360: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 31:RsOmXGBzWzN5QaDswUSEEg7GpoAm2W3UXEF6KutNr6akMlpPlD1TYI4Ub+5fAQONGhQMor7DqrXEHy5RWXJYsBGMwK7++WAIdM1FhS+VWhxCE36vE/OBJNXHkpaWXNgrT88E6lV6BeGhl1vCv9FvnIwTA3Q2UakmEa967syz6ErKv5YALvHsl2FNXxqs5SLM8MrxbCrKteh9U6uhhGEf9TF2I9M5VVdDsBZoAmJU4wo=; 4:pelxs9AroLj8U3IGBe+WF/GP2Qg4liPDUl+irBt0rSKBn1MYT5bYrWywAgZV1OX236osKvJG7tktrxeJN6vuU5HWsNpABz0Mnnzz2fj/SGQVJOw6vhEnttn53HUHwXredl3mdHCGvCes3qINpJtcZsLsmQTAju6oueWCaFMvVJemssjCohQS2ed42/4W2ue+OtfwqlGjqfwK3vUT6QAu02xn3g2rtNUP2x3mp5ZWX5ailXAH5PqSSFLIUmL64hP+7JYBxVHFVAfKMH2m3ELohLaufw7YbyGRx3H/ES/kpQfeVx9Ns5bSRFmLxtn53nAgG1OC02BGUKofbU91lv53wSbASEfPk9+OiqujYCtLiMs= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231020)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123561025)(20161123563025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2360; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2360; X-Forefront-PRVS: 047999FF16 X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BCO2PR03MB2360=3B23=3A0dQg?= =?utf-8?q?r+ZmOkn4S/T9mmf0/+988GW46aYLJ7fZTanCIyi9J3ZIgdD+my/HEZ6g?= =?utf-8?q?qcvdt6y35b3mUt6I8rslK8Ifj1v/sNCFPM4sMwQdd/NTRLdDIirGLmk8?= =?utf-8?q?5Y5WfdlXuK6k4CdVUgvWSV5vhAlK3Fl5adK2ldkbn6XPfepKjF6jn+39?= =?utf-8?q?PJ/MCufZWs+vV6QagvZzatJhGm6+MkrA8WFlsa2k23r2ogJj1b88GUmO?= =?utf-8?q?WSeDWtVsgSHuRX3cuWKYM5758B49z1vOTviUN2YjKK1gcJ5R7ec7IMws?= =?utf-8?q?cYysodbiR6Dlekk2OGPQdeJ33IOQhW/oRpDBlyQ2APDEqUW5Ye37cW7Q?= =?utf-8?q?VuIAhJxTYgVz+ZGna4R5TOG1zprkgdiwMpJBv/736HHHDngc3MzVjQgl?= =?utf-8?q?rFqi8S9ckz6CJh0BxZT5ruVoc+KfZrJc3exXGyw++KqnTdj5xyaHf7jz?= =?utf-8?q?ICO6Wi8tfJGfmvtlKkpPdYKkoPautI/CwwYViW2yDl7QjSSlEzEXiyPj?= =?utf-8?q?7OuIWuviZuidjd0c4ocEk1cwR/0RA9VVmhMAZaSvqvaWlbkeIlhXFe79?= =?utf-8?q?wiYUAHsy2AY7ziALmILacfOPB0B5uDigPhlyCgqQG0v3y2F7xZlE57UU?= =?utf-8?q?owh/cfMmGK78/uE9PU6LrB0WLgKT17SlR8qZGIG3QYKbcrfZtku7mTLK?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h63TNdmtaILYCNSVhjcz7Yo+ONpefxilx3Mw3oauHJn9Y/rhk8/fOINZm4+eAytvP8zCb4ViNoUpnECQzDj+I7s9w=; 24:8/2dulTNDfujFW79Vg9P33qNGHQAOv2txbZlUb0IAt4xTqJtSXOjsEZhIUD56HpN2FaJzP3b8JPtTyDy8tyME5Tf8OkKi/1iY8tAaI1/dkw=; 7:OQlzhozz1nYgblEANvOis3Lk4Wqv5b5gW9xd+XC10D0b3d/JOzMhC5ADrKSp3p4uNBnr+bj8CnCbbRzIZb94TsMGI53G+nPRWcXJ7j+nU36fdYQfg8l3VzLknjqxC3Tgpxf4/X8HvRIljLMrsNB+pND98EH06yazA4xQkGGAMuyqyqEtazGmb+Cw+hQoUBC1C7K5/IsZYLF86ogOmmHyQmUmuQ6ZnlUPDKgubj+aCasA1l2gtBN0zWwTbDNHlQdZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 10:09:48.3128 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b1f789c6-bffd-4901-c8c6-08d521d9d992 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: CO2PR03MB2360 Subject: [dpdk-dev] [PATCH 4/5] net/i40e: fix compilation on ARM BE 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes the following error observed when compiling with ARM BE compiler. i40e_ethdev.c: In function ‘i40e_dev_tunnel_filter_set’: i40e_ethdev.c:6988:5: error: lvalue required as unary ‘&’ operand &rte_cpu_to_le_32(ipv4_addr), Fixes: edc845bd53ec ("app/testpmd: fix build on FreeBSD") Cc: Marvin Liu Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/net/i40e/i40e_ethdev.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.7.4 Acked-by: Beilei Xing diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index bcd9ef1..c66f101 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -6951,7 +6951,7 @@ i40e_dev_tunnel_filter_set(struct i40e_pf *pf, uint8_t add) { uint16_t ip_type; - uint32_t ipv4_addr; + uint32_t ipv4_addr, ipv4_addr_le; uint8_t i, tun_type = 0; /* internal varialbe to convert ipv6 byte order */ uint32_t convert_ipv6[4]; @@ -6984,8 +6984,9 @@ i40e_dev_tunnel_filter_set(struct i40e_pf *pf, if (tunnel_filter->ip_type == RTE_TUNNEL_IPTYPE_IPV4) { ip_type = I40E_AQC_ADD_CLOUD_FLAGS_IPV4; ipv4_addr = rte_be_to_cpu_32(tunnel_filter->ip_addr.ipv4_addr); + ipv4_addr_le = rte_cpu_to_le_32(ipv4_addr); rte_memcpy(&pfilter->element.ipaddr.v4.data, - &rte_cpu_to_le_32(ipv4_addr), + &ipv4_addr_le, sizeof(pfilter->element.ipaddr.v4.data)); } else { ip_type = I40E_AQC_ADD_CLOUD_FLAGS_IPV6; @@ -7302,7 +7303,7 @@ i40e_dev_consistent_tunnel_filter_set(struct i40e_pf *pf, uint8_t add) { uint16_t ip_type; - uint32_t ipv4_addr; + uint32_t ipv4_addr, ipv4_addr_le; uint8_t i, tun_type = 0; /* internal variable to convert ipv6 byte order */ uint32_t convert_ipv6[4]; @@ -7338,8 +7339,9 @@ i40e_dev_consistent_tunnel_filter_set(struct i40e_pf *pf, if (tunnel_filter->ip_type == I40E_TUNNEL_IPTYPE_IPV4) { ip_type = I40E_AQC_ADD_CLOUD_FLAGS_IPV4; ipv4_addr = rte_be_to_cpu_32(tunnel_filter->ip_addr.ipv4_addr); + ipv4_addr_le = rte_cpu_to_le_32(ipv4_addr); rte_memcpy(&pfilter->element.ipaddr.v4.data, - &rte_cpu_to_le_32(ipv4_addr), + &ipv4_addr_le, sizeof(pfilter->element.ipaddr.v4.data)); } else { ip_type = I40E_AQC_ADD_CLOUD_FLAGS_IPV6; From patchwork Thu Nov 2 10:08:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 117766 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1964956qgn; Thu, 2 Nov 2017 03:10:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TSNFGOq360QYaT6nbQ1+D4043KJMBJ0olQGbWVRY+8dr+iULj5pJ8GQ5r+Q1cH3UgVHlNU X-Received: by 10.28.144.140 with SMTP id s134mr1265889wmd.82.1509617432252; Thu, 02 Nov 2017 03:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509617432; cv=none; d=google.com; s=arc-20160816; b=eRCBV8ODFGoSluZM6ah8g1YnACfrKs5TzqbOzc5qBSy1VMA7cebizAXdh6ULTbU89C Hzn3mQhABFrTAH7Mup/zZgnuweewXDgl6hqpAQz8bWgXXPFMIw0Ocydp01eKM8AuyY+U kTBsku30rVSwYaEfTK7H85VmWfBk0BqnIhLDaapJ/SWIFWZ7O+Q9ekJNBCQ6v0UsPAc+ f/XNc6pkrHQg8330cVGPlCQinThX9zZ7JRHAcCiNzUeIwkJjoE+4Uyx0ZwM50UCcBSX9 4GKm6hL9QGIxbeo/Tp+sqJ1xBC68TJYpZilyZHsaGA2OUbu+uuQHfKbTPBmisgN+jCwg 6Vfw== 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=T8BRBrpVcgXcMaBpPsHBWGxXHekeqtz4Pd7HyG2pso0=; b=SmQGmF5464O59rhYwP7/H+r6pfpGYUyPKAPrWImL1HMaL88btYQgx0uDrXWIvM3xK0 QNo9j7yfhhSlKVntj/QtlvZ65AjO/YCs8tkNFjqITUzebJ0kfJVReKceOicomRbvaI8q Cm9g7nA7e5fQ6OgwuGIbrSsLliR2HBbv+tERhfYQQqAC3EMLTk+FSHWiIY2QFK9RI+oL v8aDtCNuC/mtu30CPGrZ40OkHLK35cSgSiYOFIKQujW3eLUxN2PevLnjivvPpq02hKzs yHyfCZ86+KjFGxzTTKJQVKFktrFIPt6GoreJyzlPXv+xy7gkmWjidfy9FD7K/40OWfdf FqZw== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id t69si2523349wmt.200.2017.11.02.03.10.32; Thu, 02 Nov 2017 03:10:32 -0700 (PDT) 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 287C81B3DD; Thu, 2 Nov 2017 11:09:55 +0100 (CET) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0064.outbound.protection.outlook.com [104.47.32.64]) by dpdk.org (Postfix) with ESMTP id 22C6E1B3C2; Thu, 2 Nov 2017 11:09:52 +0100 (CET) Received: from MWHPR03CA0017.namprd03.prod.outlook.com (10.175.133.155) by DM5PR03MB2700.namprd03.prod.outlook.com (10.168.197.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Thu, 2 Nov 2017 10:09:50 +0000 Received: from BL2FFO11OLC002.protection.gbl (2a01:111:f400:7c09::122) by MWHPR03CA0017.outlook.office365.com (2603:10b6:300:117::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7 via Frontend Transport; Thu, 2 Nov 2017 10:09:50 +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 BL2FFO11OLC002.mail.protection.outlook.com (10.173.161.186) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 2 Nov 2017 10:09:50 +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 vA2A9bnU031572; Thu, 2 Nov 2017 03:09:48 -0700 From: Hemant Agrawal To: CC: , Date: Thu, 2 Nov 2017 15:38:55 +0530 Message-ID: <1509617335-6354-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131540909904049648; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(376002)(39860400002)(346002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(498600001)(33646002)(8936002)(36756003)(47776003)(86362001)(50466002)(53936002)(5820100001)(2351001)(4326008)(105606002)(54906003)(106466001)(76176999)(189998001)(85426001)(8676002)(2870700001)(77096006)(5660300001)(316002)(6916009)(2950100002)(104016004)(97736004)(81156014)(50226002)(6666003)(68736007)(81166006)(305945005)(23676003)(356003)(2906002)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2700; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC002; 1:9/ved1sBRD5NLO2gUot3HcD808pyB0Son9MtqqssYUOcQRljkV8MQlLi62KcarLK78biHpS2OoEs6WZKfkpIuYery57LdrZat7+0b0ikwv0HbspyErAKmJsgJ0A/dV30 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da928d1b-1ef6-42e4-d492-08d521d9dab7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:DM5PR03MB2700; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 3:a8D5IHbHSB0Wuc2+CYIx+TFv66TDvGNJCBZTQaVRH+pjPXZX3CuO5yGIk398ancyrrKX7XeJHvUbSk92yt93hYb74Nmrq/k/TGnrF1FNPDz9bEkiuQjL9MVt4GjpwFd5iQl0AIJ2Z3K3NVR/4KfgAknI+BsvrZiyNHIEKMXI5HmU/YcMflyfQW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H/l4xLO9EfBxfm9mhMSzhJx/uW67ELTX6gwzf+lTNBbowpRAmyt9Qe65Kiybh6qoIGbBvTn9cgHMruvonP0veqyon/DLB X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231020)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123561025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123565025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2700; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2700; X-Forefront-PRVS: 047999FF16 X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BDM5PR03MB2700=3B23=3AZzkZ?= =?utf-8?q?ypM72RnC6OjYY6RuOZ6Sb4BgjMQ1axdscffE/Ou85VrFV0V5AMRR7GPy?= =?utf-8?q?UHRdBk+RTcUlcg77pzMdvak1VcmhV2En8vwuwL6rnc0SKJi79fD0yJUz?= =?utf-8?q?7QF/U2+PpnWjn7KfEABQK0iHRYKz8FHsZiotsn27918D0cOSvkSSGYYX?= =?utf-8?q?Bt4qZwAsXqohZqdZ8Cj/Q4So+XF3LKPcphOpmeGIy19e6VkIrDuS9CIJ?= =?utf-8?q?+ohOQuF0cwS9kP685L7hWUe2/pLKE9fdbdxkgTS35TXon0tRWoLgMxZr?= =?utf-8?q?fo4vXxIyI09b/kWZgAQH5Mzf4gZ6Tt1yetS+wpjvopOjzxnCBEgXOi78?= =?utf-8?q?SgPMpzvqd1KnJMX14p7yjf0P/wPAmnH06w2EgoI9G/oGU8gyn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drDWnteJ9/jDSMYPPLLonACwcbpkQ/xG7VIRgYklZll8IQ1t7h7dxvTEstSaczAcdfGNb+ul6hZEEEut3rfos5oudxPVPOShyV9BN2dHQ7ZMkWtJ5wozQ6b0yIeH+YVYPC35Hvm9xLYgZ9Q3NCOtdkgRhsXPdxwANDddq7YDK5SFqIbRrcF4uehB/XTDYmeIP+CWHjWxHqnMGFzEuWMC8tz7XVACnj/KcNkFosHOTtZ+kJF1DtQXwjyiaxgAVLDTmw=; 5:6QBUeLDN3ugSXCiNlJW9n/tIZffcXTLKWy7Z+X0OLCN9Z9q0wHY7zNePKc8yea6Yc3UuyN/VCTXoHWmVOpuVmGvVUFoi1PGdyeLztsAJNLw+0TGfQeddT5fLuIslzz/hsrDjQNZljSIyqPf2bLzoALxDx8PS+zQ+5A4615qBFVc=; 24:kiOUsQGeTAfVL7uHiKHxRZ/XcUHoWhcFBJbAbL3jJEybgdP5cHCPANZcRSlIqFnUhxBCfAnC91gtQWz82N77q9xD0WvYygiAV9rroOctA5U=; 7:cBX1aIKloet6IlKBcX7gDhqiRDsxPw8MoTGX7+PAzmT6x/1TEohuDJVncazKakfn4Oj77VgFCqqxzjuMZT2tcP4596in/kOpsmi8llTf2B9G49xkkhe39chfFasYAUXgZCwIz58rhR2tX3Rk7+cWWrqebSWuAwftLcRxHIPj+C2HrsMAITRW2klurfWABlA5cWKdE2gPuM+9MCskaXGVWNJxHBSnZkxgtVy189gUrD1FJwsqMGxn0Hzj4u6qiZWR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 10:09:50.2333 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da928d1b-1ef6-42e4-d492-08d521d9dab7 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: DM5PR03MB2700 Subject: [dpdk-dev] [PATCH 5/5] net/ixgbe: fix compilation on ARM BE 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" fixes the following compilation error on compiling with ARM BE compiler ixgbe_common.c: In function ‘ixgbe_host_interface_command’: ixgbe_common.c:4610:22: error: passing argument 1 of ‘__builtin_bswap32’ makes integer from pointer without a cast [-Werror=int-conversion] IXGBE_LE32_TO_CPUS(&buffer[bi]); ^ Fixes: aa4fc14d2cee ("ixgbe: update base driver") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/net/ixgbe/base/ixgbe_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 Acked-by: Bruce Richardson diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 7f85713..5e6ad95 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c +++ b/drivers/net/ixgbe/base/ixgbe_common.c @@ -4607,7 +4607,7 @@ s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer, /* first pull in the header so we know the buffer length */ for (bi = 0; bi < dword_len; bi++) { buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, bi); - IXGBE_LE32_TO_CPUS(&buffer[bi]); + IXGBE_LE32_TO_CPUS((uintptr_t)&buffer[bi]); } /* If there is any thing in data position pull it in */ @@ -4627,7 +4627,7 @@ s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer, /* Pull in the rest of the buffer (bi is where we left off) */ for (; bi <= dword_len; bi++) { buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, bi); - IXGBE_LE32_TO_CPUS(&buffer[bi]); + IXGBE_LE32_TO_CPUS((uintptr_t)&buffer[bi]); } rel_out: