From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 3C92A1B1B8 for ; Wed, 24 Jan 2018 16:36:41 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DD0E922384; Wed, 24 Jan 2018 10:36:40 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=cuL87TE5NtdaVkqD0 sPqwKWs9172PxDN0PRhHFG5s8w=; b=VbTUOr4llm8YluV6vEFiuTFSQ1qEQrjSq 10tJANOJiUuh5N/1ZJ8vL1S5WpsZErW+mynCJKFDpf0iLafdVPaJwrkHGYoo5XXf BUKORBPk+lzb6srLH8xVqjMiD1r0GjHnskhl4U8fpeo684ElNJsWpk9poh7pVk9N x3aZ7I+hbqzQ7KsclrGAhsvnDYWolUDJEtAlQLat4iCB84Sw9VWFBuCPHAItjLdk T+RJK4+82jpq2Lt63IarEpTtEmPqigHOOr3yv5rYMN1j+q54JLx5KYTlS7OCnNli /NMcavGlYRAHHhdgja7krTu9rQ+B8aQJ3CWHjr5AkpDEPxmlvvWZA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=cuL87T E5NtdaVkqD0sPqwKWs9172PxDN0PRhHFG5s8w=; b=P+/XJlGDrhqS8QPvWjIIev SVCWxSnkjEVKHvzN5XkMnIWmGHmfmhtJnt6U12iItbZM52r4azkfjyQh3y9GNDiS SZGIaMpqaq1Ak/Myq+Ksn+KBm2P+Wv+1Aj2EQArhi5O8NtyhVp2ssRRfM8I3ufNE XOXOVfDZwZ0a7ewnZ7sMrO0wve3/dLZOYrM9r+Uu3F71E98ItWM7U5DrRLRtNrY9 h61vt7X3NDsWCUcJwJNMQYATehBYHOl/s1Cbs94vXE2fXkjsyJeguMwUZ3eNn54H HncLoP1gk0iVIiLcgL1Vmzts7HDMSbpxOEsDlO2wFTFuKTPtNyv8DuQV38vMMwnw == X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id BF45A7E354; Wed, 24 Jan 2018 10:36:38 -0500 (EST) From: Yuanhan Liu To: Hemant Agrawal Cc: Beilei Xing , dpdk stable Date: Wed, 24 Jan 2018 23:31:27 +0800 Message-Id: <1516808026-25523-19-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/i40e: fix ARM big endian build' has been queued to LTS release 17.11.1 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: Wed, 24 Jan 2018 15:36:41 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 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/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From dd18ba50b3d9340dab332271ef32b8f96b5f1191 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 18 Dec 2017 13:26:48 +0530 Subject: [PATCH] net/i40e: fix ARM big endian build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 80c557be08edbcb59d4d964150821f3be35533e1 ] 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") 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