From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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:lPRdFJ0OoebFnxGdYDdhoL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M2nE6I46zGbC8lzR4gwts5XtGteWOxuEkKu3NpcG1Rr1ETuI/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?B?MTtETTVQUjAzTUIyNjk5OzIzOjd1NW1MTmpBcW1CbW1YTVFxWFNFdDN0Y0VV?= =?utf-8?B?emRRRk84aG5TWVFibCtmMTZURlZDdEErVjdwT1l1RzcxellaRExCdld0UkZQ?= =?utf-8?B?L2c0Q0JoNVgyTThGT3RFRFk2VlQzYWpVYnl4ZTZDNmdMYUw3ZEYyQnduZDlC?= =?utf-8?B?YlNidmtGQURPM3oranB3NE81WWVhK3FPZlowMjVTbHBKa05xYjI2cGk3NWlu?= =?utf-8?B?blBXMkpJUmtabmc0dzk5Y1JmdUJhbzBvZk9rMnd0UXVjSUhOMWVIajE3aitW?= =?utf-8?B?eWkxOUc1WGdoQUNyUE5VUmZSUW1xdm9vNnRzT0YwUCtpLzFMYXF1c1cvRFR4?= =?utf-8?B?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0CUZut9MTiCo4vIc4sHrK/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: , X-List-Received-Date: Mon, 18 Dec 2017 07:58:02 -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