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/0RA9VVmhMAZaSvqvaWl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CwSqm/qu/1OB+0+n/c8bCdzwx2y22vXKUXddvWTFt6KyVO41pxDCQ=; 5:IwU6NDRbvqQkwU3JP5tKFmwDbAaYo1UKP/DzZcvExRvtnFB4afQA+S9E/oJnUe/T2tGXsnBoi9bJBO1k8xh63TNdmtaILYCNSVhjcz7Yo+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;