From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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/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Mnnzz2fj/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?B?MTtDTzJQUjAzTUIyMzYwOzIzOjBkUWdyK1ptT2tuNFMvVDltbWYwLys5ODhH?= =?utf-8?B?VzQ2YVlMSjdmWlRhbkNJeWk5SjNaSWdkRCtteS9IRVo2Z3FjdmR0NnkzNWIz?= =?utf-8?B?bVV0Nkk4cnNsSzhJZmoxdi9zTkNGUE00c013UWRkL05UUkxkRElpckdMbWs4?= =?utf-8?B?NVk1V2ZkbFh1SzZrNENkVlVndldTVjV2aEFsSzNGbDVhZEsybGRrYm42WFBm?= =?utf-8?B?ZXBLakY2am4rMzlQSi9NQ3VmWldzK3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vg9P33qNGHQAOv2txbZlUb0IAt4xTqJtSXOjsEZhIUD56HpN2FaJzP3b8JPtTyDy8tyME5Tf8OkKi/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: , X-List-Received-Date: Thu, 02 Nov 2017 10:09:51 -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 --- 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 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; -- 2.7.4