From patchwork Mon Dec 18 07:56:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 122188 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2526956qgn; Sun, 17 Dec 2017 23:58:26 -0800 (PST) X-Google-Smtp-Source: ACJfBovny2NKmDKSsb1vzqe6fNxBrB2AE1xHSCkIfrOFE3ZPgbXlCdGL3dJlB8ALORWwBMX1vi6D X-Received: by 10.28.27.206 with SMTP id b197mr11938001wmb.96.1513583906184; Sun, 17 Dec 2017 23:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513583906; cv=none; d=google.com; s=arc-20160816; b=mfW5WSpSe3RqP2nfqMwMHHtOyOrYNR5ilJ6LceSd6z5jqyK6K+fS83PXIwpA1R6Nwz LVug9Vra+BaZkA87I38JejTrB+1cdU0G3HrNSWsu8AfPJDUNcfuBs7FiZOP4QkEwXDSP v1/wgsSx5Q/SsF9vihrWgNUU3wMOxnNODb5CPJ7YjbxATggD5+iQGWi10TEJ0oCin/Vo 9oL3rNdCg/VcSRjO/HrHKHGYN0DqBhHMVxSDgGkhdeBuXjUSwkXLF6uUDXKZqSKkL794 RDKXDePK8BRzFVbhFt26eGsX71kzm0/+er1ExJIkenPv9DFT0I/0pC1u9tLy6+XpIyYm D1Tw== 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=fv3q3TTWIjhpV48OHSAOLxNmJFgJIBSGA3T5r9WWRcQ=; b=WpuKUoNFPwah3I0k5wJEN/wgbovtcDvhxX8xILY8bo/k7xosVXqAAto+s2p5nDFxoT 0U1UPESbTiXlLO5llRepXWF3wLxAS+x53Ftv52MKx7Z+D74eW1ZMBmJVrKUz96kLietR sThwWYwEYLjfCexT819CCReKPx9aIad6r747MAieIMo0pxkBjlrD4Ikqd+4kbvuXv32G 494tqQNO2j2+9C9lzBv9+vvZzkzyJdQ4N5rTeYrkCsEbA0oYnq+Os2TzITmIFpenh53+ HWiXR9ee1TfNUuHIAle56/O+4CHFzuqQl40FHjyIoSszd4kLj0byLhEz0i4TuMwL7DfA PgWw== 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 j46si9684796wrj.390.2017.12.17.23.58.25; Sun, 17 Dec 2017 23:58:26 -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 8AE7B1B029; Mon, 18 Dec 2017 08:58:05 +0100 (CET) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0064.outbound.protection.outlook.com [104.47.34.64]) by dpdk.org (Postfix) with ESMTP id BC0D91B014; Mon, 18 Dec 2017 08:58:01 +0100 (CET) Received: from BN3PR03CA0111.namprd03.prod.outlook.com (10.174.66.29) by DM5PR03MB2699.namprd03.prod.outlook.com (10.168.197.137) 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:58:00 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:171) by BN3PR03CA0111.outlook.office365.com (2603:10b6:400:4::29) 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:58:00 +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 BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) 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: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 vBI7vl6H011541; Mon, 18 Dec 2017 00:57:57 -0700 From: Hemant Agrawal To: CC: , , , Marvin Liu , Date: Mon, 18 Dec 2017 13:26:48 +0530 Message-ID: <1513583809-3926-4-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 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131580574689545125; (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)(39860400002)(39380400002)(346002)(376002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(356003)(2906002)(5820100001)(8936002)(50226002)(105606002)(68736007)(106466001)(4326008)(2351001)(36756003)(59450400001)(5660300001)(2870700001)(53936002)(8676002)(305945005)(81156014)(81166006)(85426001)(6666003)(316002)(50466002)(97736004)(498600001)(54906003)(47776003)(23676004)(2950100002)(6916009)(104016004)(77096006)(86362001)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2699; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD002; 1:0Qk8pD8PyVnaO/zKuJC42tE5K9FNr7LIOL3bHkg853s/G38+MxnF10ZvGraghs2Xlu9DoC1IH//Pv5/ae2ivauwOKcRdWhK1KoMQIA2GiBmM8ZSN1a7EIIFuCvo+zG4o X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0931b43d-70a8-4a51-4ba5-08d545ed082d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:DM5PR03MB2699; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 3:lPRdFJ0OoebFnxGdYDdhoLQlzGjD6bttYmjvnyuosnvmHorVFxVTfnOJr9pgbkzslO5olzq+CuVtIKhX1+b0jbIt5G6q6sq7pZXenVUWDUv3jt8cR4uBzQSVXM8jX76gjzjnFBnkVDnbKrhPCbjclOKyEBZsNjXXzsQC77+G01hpVNg2c3cPlFEw6IuRiN6yJcHT+aE2Wp8Rtx04iqvIUiMBdQQ8GumQ1F/KTYCcz6lAvGMEtz8SaLV3AMWes4kwcgIowgJ2vA+k6xkNNX6prlPNMgQ3VuWtV4yv+i+jhazqoSypUxdx4EYJyscnGBnAmyUPSspVUze/WodEnikPqzgM2b51e2xvO7UTV16OT3E=; 25:p2JDoZrHnKq6SW93Ki5dADQFGysqrRwrhhsFGwPDOnSBA+zTr06ex3AvKEl6TkTgFkdXa3vw3zechv8dMx5Ch7pT72PnpgtATukfwrG2CfdkHjb58KJ2qFQZS+R0dg+SnXQbI8HzSPwvOnIpOfaCJRKrqZHWDMJ4hXPaIMYUI4BhmfQuJtf1HcABXDDKlsGzpMyVy3stEwk/Mf52FwIXe9m8KT/oNUeSN9/UULhQ7jSHScCgsfH7eTRAEDDLbQUt2XSRXqZxOgYX0/mNZWAo8Fy1EDZ8I7Qjnu6A2VbLUbtyQJYNZVY1sFxHvMW682LV8ssNgqr7KammjanPdmEglg== X-MS-TrafficTypeDiagnostic: DM5PR03MB2699: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2699; 31:QdxwnbEtPZzcCbrRsKrpgp0wEQIQChiwPOJXwgqkJNNq4HxtNWHb7q1eEpZhdVxgtywUz0XMtjJxGh1cknLY3GYLUssDtfraFx1rR4MCgnOadIdWFHu8qxGL0QFz4o53ebjtrogl9D29Bl/+CKbB6ix3I5lVSdf0007GCAcdjRJfRgaRlf0BW9DCeg0YunohaM7L9f0duwbkI6vkZmExTO/NC4URCtmvcp4KMGOyxr4=; 4:KEFC1tw35SGso7csBPWL2tT8IVVSPda6hTd7Yr26MVANzTyRc0gwuN5emj2WVYH345nThsnp2iTDuZy6LFM2nE6I46zGbC8lzR4gwts5XtGteWOxuEkKu3NpcG1Rr1ETuI/yI5E1DCqqwpXYDOSIeiZ7v9SMh76jCLOvsP9xgG2DJBsUHpxgBozqx7hb+djO2d9LZFFDrlx67oQ1rm6RGgTQg/P9XIeh5GjHCh/elV16FLUgtx3IEQt9Fd2BRapy3BtFXtNGJS78jN/Vhnhaqbvm2G6xOKGneyirUCg+dPSrRFs3bOrboEY2qlbhmvJbQVd9+O0v1sut3+d8OJ+svOYAI2aOCYD6gfDPk1c5QU4= 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)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231023)(6055026)(6096035)(20161123563025)(20161123561025)(20161123565025)(20161123556025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011); SRVR:DM5PR03MB2699; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM5PR03MB2699; X-Forefront-PRVS: 0525BB0ADF X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BDM5PR03MB2699=3B23=3A7u5m?= =?utf-8?q?LNjAqmBmmXMQqXSEt3tcEUzdQFO8hnSYQbl+f16TFVCtA+V7pOYuG71z?= =?utf-8?q?YZDLBvWtRFP/g4CBh5X2M8FOtEDY6VT3ajUbyxe6C6gLaL7dF2Bwnd9B?= =?utf-8?q?bSbvkFADO3z+jpw4O5Yea+qOfZ025SlpJkNqb26pi75innPW2JIRkZng?= =?utf-8?q?4w99cRfuBao0ofOk2wtQucIHN1eHj17j+Vyi19G5XghACrPNURfRQmqv?= =?utf-8?q?oo6tsOF0P+i/1LaqusW/DTxrO3XGcOaw5Ow5MEE9st5KrtWngLzotztq?= =?utf-8?q?IoCO0/wszNJlEBbSVKQaYHSCKwhEB/Gvvb/84FfXOW3cwe08gwXU1Qb9?= =?utf-8?q?8Po4aG+OuA/fEDQmjmIorBw4GLX7dPdnGP/Yff80yroWrC2gNysFszF2?= =?utf-8?q?bZqmnYZYVSjAMxbonJaoHcnws7jRLwOWGk8GJ0RlrLM9/IMGtlxF1zZp?= =?utf-8?q?yRgzK1bgKD1knEAVk/c4x56OkWgbaTYefY7OMogFkc2g3PZYZJQZsoz1?= =?utf-8?q?3Iho/ED3eDmJDW2scmsT8WtGQ7PB2VEJcAEGZT4/VZs2r42OUSlqH2BL?= =?utf-8?q?MtB+XNx0Mqwl60Wvc8ypU+MLMdxATi7Bsrlwa+LxwZ4hI/NxhFtbEDGx?= =?utf-8?q?mm7mq/1CEvXErmhF5tuow2RT4Tzx65U9W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mKgDVWFp2NjpPimREJ8eBYR8ZcrLAN3AQB/8vNEH4Eu+tsxmHuU3kCXSE8njY=; 24:eBHxGjW1/Afi//3Cl1nMS4+ZYUUsc2EHhItvMh3JmDBAuYtBP5EMle+UFC/0HgDxZTyxmZ9sVOUal/l3A3lcFmk7zso//pgpCfkDadcoHho=; 7:6kAletH9imuYWNnzMttGwLVvcyrKg9L7TqzfHS34+zxdPpY/VeCf9bIbhLvHCrw3o0CUZut9MTiCo4vIc4sHrK/jK44tE9AfkmzT5V9gyQzn9Sydnw0Joh3RYEpJLT8RSuuyPQl+MylPxXol4vADFMvmID9JAQwba2CpK7S9DAFwYQktNXTiP7a6ZBRNCd4xNg/5GDINSJLg1tYKKJtu53YjuAMuAjEomzwnHV9ZJFOUriiBiwTBPsEM5S6/Eu0q SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2017 07:57:48.7829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0931b43d-70a8-4a51-4ba5-08d545ed082d 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: DM5PR03MB2699 Subject: [dpdk-dev] [PATCH v3 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 Acked-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.7.4 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;