From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0076.outbound.protection.outlook.com [104.47.38.76]) by dpdk.org (Postfix) with ESMTP id 2DDBB25E5; Wed, 13 Dec 2017 13:54:08 +0100 (CET) Received: from MWHPR03CA0053.namprd03.prod.outlook.com (10.174.173.170) by MWHPR03MB2702.namprd03.prod.outlook.com (10.168.207.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 12:54:07 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::192) by MWHPR03CA0053.outlook.office365.com (2603:10b6:301:3b::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 12:54:07 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.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 BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Wed, 13 Dec 2017 12:53:59 +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 vBDCrsSi021824; Wed, 13 Dec 2017 05:54:04 -0700 From: Hemant Agrawal To: CC: , Marvin Liu , Date: Wed, 13 Dec 2017 18:22:57 +0530 Message-ID: <1513169578-28440-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513169578-28440-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> <1513169578-28440-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: 131576432397962819; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(336005)(376002)(39860400002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(23676004)(53936002)(2351001)(47776003)(105606002)(106466001)(4326008)(5820100001)(54906003)(8676002)(8936002)(305945005)(81156014)(498600001)(81166006)(50466002)(36756003)(316002)(77096006)(296002)(50226002)(68736007)(2950100002)(2870700001)(2906002)(86362001)(5660300001)(85426001)(356003)(97736004)(6666003)(6916009)(76176011)(104016004)(59450400001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2702; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:4uawbwUtJT9+EMZL/y5mPXDrdkmhUaPWeH8hkj2SJWJX52pkL3Vr2V1jcNuHEc+IIb06WjiMAXQ9GM4ZgdBCwk8jp0K8uj1grme7KUJ9+BT4bFnXz4noX7RR0LSneIeL X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b0657f24-dc4e-4929-6ce4-08d542289459 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2702; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 3:J3zhN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6PwdeUGbIhMpbM1KT2Fd1VRbWV8ccBXHlqo7HUC5J9WoCtzBUQYMiUgiB93oAcrf8yHqgyZZEcgWu6KLDOk0to3qORmG+EemJB2Yh1FpWrXlcmk/5FtCDE1WS/33CkDfPgkI9BjvFuTJEOSOffuyitUx62BA2pOr5o8xd+N3Rh0pm09gTZf1uWfnb13aHu4jfq6FIgbu81iXMJ3DxdmAHDlaK7prg7CdRcUSoiWI4z4pgkY4igYZzqMSP9fnZaAKmfkCKiE8h971cT+iKgBhAGsqBNoGfUKEEo/bzkUnjeXiSM1dKItzi3v4= X-Microsoft-Antispam-PRVS: 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)(3231023)(10201501046)(3002001)(6055026)(6096035)(201703131430075)(201703131520075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123556025)(20161123565025)(20161123563025)(20161123561025)(201708071742011); SRVR:MWHPR03MB2702; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2702; X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjAzTUIyNzAyOzIzOklJZFl4amxlQzlkcFdGdmdoYjVNdGVmeGZh?= =?utf-8?B?RGZjQjBJUUpSeGpzYVcyRk0xZjVZT2RiYXVDTXZVanh4bDZLL01Xb2VCMjN0?= =?utf-8?B?SVRMTjNyVnBuVGtuUkh0d1pRMytJVlNoU0JERUp2UWNwVUsvbzljVjF3RCtZ?= =?utf-8?B?L3IxcVRLS2FqVEFxSDFSM0tiZjhMc0cyY0xGV2R0NFQ3aTVRUEFyZHVESDZ2?= =?utf-8?B?cDZqMnR6VTJ2T012ai9lTHNkNW0rVk9kMW8vSThwZXA3VFdVMWdYdWpHTVdD?= =?utf-8?B?NVM4N3o0YlJjL2RmakhpaDR5Y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frT23yDgrfmUDVF3L+z9sDB6eyY2b/YNF881cRWK7duyVPF6HJC7UhrQvbfilx4VDkIodYKKOVENY2s+JShfsSB81wS2bHMeCDHDAtOm2mzaVlTwOtKLWItClPjm7C/41YPYsJbSZ4+OofcqaEm7BJGZJxS2gFxO3HfGZqLtZ/qfFDSqM1AZyxWH8JiPVvGfGQTYn6Jlgo1tYikE0csyL8bdaIWLsmPLjjGx11/qS8cQ8PWg/05RdmpKYk6xW5q SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 12:53:59.6246 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b0657f24-dc4e-4929-6ce4-08d542289459 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: MWHPR03MB2702 Subject: [dpdk-dev] [PATCH v2 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: , X-List-Received-Date: Wed, 13 Dec 2017 12:54:08 -0000 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 Acked-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 811cc9f..a92933c 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; -- 2.7.4