From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0084.outbound.protection.outlook.com [104.47.2.84]) by dpdk.org (Postfix) with ESMTP id 9EAAD1B228 for ; Mon, 6 Nov 2017 09:19:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GTe9oqUMA2f+Kc/XsbBmz3w0V0tnTjcaJrJkwrh3Yqw=; b=D5tC9Eb0WyaRBCsX0rCY6HYLPyrbblkaDyOOmzm/829su51MkctCeHP5L/elXC3O1zDrDw1kR9zYE4oHfWJxY1CfDC0+Ry02QLmenmX/UX6R6zdHDl+CmbxTBYFDNuR9aPydFczJq9b7iZRWFNY44m/P+6uLDy6mXAJDCYbPgPU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jianbo.Liu@arm.com; Received: from arm.com (113.29.88.7) by DB6PR0801MB1350.eurprd08.prod.outlook.com (2603:10a6:4:b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Mon, 6 Nov 2017 08:19:13 +0000 Date: Mon, 6 Nov 2017 16:18:06 +0800 From: Jianbo Liu To: Jerin Jacob Cc: Guduri Prathyusha , tomasz.kantecki@intel.com, guduriprathyusha@gmail.com, konstantin.ananyev@intel.com, dev@dpdk.org Message-ID: <20171106081805.GA15773@arm.com> References: <20171103104351.30181-1-gprathyusha@caviumnetworks.com> <20171106042945.GA4073@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171106042945.GA4073@jerin> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [113.29.88.7] X-ClientProxiedBy: SG2PR06CA0104.apcprd06.prod.outlook.com (2603:1096:3:14::30) To DB6PR0801MB1350.eurprd08.prod.outlook.com (2603:10a6:4:b::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59532de2-32ed-49d3-4aee-08d524ef117f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:DB6PR0801MB1350; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1350; 3:jE05Bs+gVVKhOz+s2hB1WtG40HbOEBGDto4oWcwXSGYOoskFIqpCo1/EM19uScjydQKHfZ1aF+wndW9Rhn8Ja7RHY7VEmhDkv7hSShtyvngyLiZfJFC5/bmY5esQPdx2HGFSp+Xs4SMSrKQzegtPVmztaXJe83nXU2yjqAEwY/j4dxJnnKgMzx5Ra5wGjJeS0u1HN8iuHA+DKIUvGNvgZNPOmegsS6Ws5zfVJSw/V3JPAeGb33TyTZ1VuED9GA5I; 25:XmnJkhn6YTUNKQbiagkba6P0vP80oN4z4CJD45Fpp3fKpdvGb68SeZvW3uP1mgDJ4QezpVxVxcoWEAD9+ocqSkVMAcn4T2syWPTe8Dl3iwlEJJSzKy9GXp0Bk03DXRI6md59lubrjH7LMhq0G9e6T/4wrXnqOjyz46uSy6Gfz6m0r4/2K/pvPk1I9USgKznkBDanS4av2GXKEKuy0jSryY2khQZcxdez5lBbRsJEXYhyv6uLixUcogDvSY8RuKHYkvI6KUdpWxexPJdZMgW2rvnnaF0Dt5DUAejxtXTKUALW/SVgalePDDq7NZrnndeb6QuT9O6pD7189T5CBsCkgQ==; 31:4YVQiKZ9r8X1rcpS0qrOP7sE9yNuVK98kLCdXZNAjEQ/bEsrYE4qxS7JEfBupBXA8hPEoB6mpV3PttZk3yxiZ5QEZ+LYnv4Vzji5uP41q8cAye9d8ph5DL68BLNFSbc6ZNxJIYBOC/UABNZ0J044hoAcrFYpqgASOC5lqNoAwk7ATuHvYzO+XDqsNIwzA+ai9CK/38w6EGD3GE4OTqSUeL9xyOQx86h0IXrtkqlw2Og= X-MS-TrafficTypeDiagnostic: DB6PR0801MB1350: Content-Transfer-Encoding: quoted-printable X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1350; 20:ZgOXkBB88gZL9dt6XC3JaFoMrL7b2crwY2tL02SuljRWDxxYqxBxSImEwqMUqmO81wh7ev73fgZOj92Oqwng22CJM/wBZaBhWSHQNA1L4mzcp5eGEMT3s4+tjeRPRcDT+QqBanesC9+53RvxxSdgGUAuwkiSg+cbZ+INOEgvRPJksmhp3ijil/ATV09Ld8nYGVtqx2QC7AG5jOG2u1hCOkKDuvmq5cz/GLcO1Y1aKdxDVdUBZjkJVxVv3Q5GvFkrjYUb3KhzrRq0Mcvuw6iDpJ1vHJtVH2k5rktPSet66XmdqmPELixRV3cdY+iF5NGHh+WoqEdg6VLwygOfG7VgBPfXIYTOXXzIJyU1jhQ3wJwxUlqJsuhK/n0iGrYyIhW/r43X9oR4AKYIYgRXK6/+ShmmP04UVPPX92S7aCD1dBhwCscXWJBkb6zq2WclANnls+Y1z15K6V66fDIiqE4MY3Lpg3lYMLvoxgYzUPuLd+VdJ/QhCTHBJ2gT/JR9kUt6; 4:V3Wpb2dy6xPfCIofUaCBPoEIxgMGtF7tOqMPWOI8NtLL8jL91ejF2ecte5kkpIU+GWBPrTyabaGiTutJD1t9xAvUgEPifMeHtShHOl+QHeUiwLLUeuoTj4Y+BWa6d+Vm+4e+V3dyB5Q93/H5YI9f/mIDdXTTCSVbw3VwRNJksFbPCq6q+bD+U89JIfjTLQT1rSXszU9t2T9bHRlcKsdIAu7CY+5nu7CnDiyzD3tR3z0lhe3I9ituzUO+PGVHUfEPyFtlLiObH5od9PHb+hjUTlUTiDL3Kva0UmaHKB2qkFOrYTB5yuJhmPuUoYqGhgmju9v01Ngp88f7dI+9b/iWqAt5bPnrbdjk3cjgqr1d6dU= X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231021)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0801MB1350; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0801MB1350; X-Forefront-PRVS: 048396AFA0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(24454002)(40434004)(13464003)(199003)(189002)(36756003)(47776003)(66066001)(33656002)(50466002)(21086003)(105586002)(6916009)(101416001)(2950100002)(106356001)(6666003)(50986999)(229853002)(5660300001)(76176999)(54356999)(72206003)(55016002)(478600001)(6246003)(2906002)(53936002)(8676002)(8936002)(81166006)(81156014)(8746002)(25786009)(316002)(58126008)(83506002)(4326008)(16526018)(97736004)(7736002)(189998001)(39060400002)(23676003)(5890100001)(68736007)(305945005)(86362001)(3846002)(1076002)(6116002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0801MB1350; H:arm.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjA4MDFNQjEzNTA7MjM6OERBV2NNaGQyRU5TeFc2dlo1MXdLakE4?= =?utf-8?B?cFltaFlsdjBOQ240VGY2SjU2YTQxR1JIZ1NnVk1pSXh5aXhpN2ppUjdwa25K?= =?utf-8?B?QllGOEN6REFyS3A2WHFFSzc0b3JVb1RNVnpuSVhTcEo0Ly9IeWlTbj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3f0WxoH3bt1L1tbSox5zm9ZQ8bNqgVVa6xL/O0eW1DxJRZzl0uc7iOSDV9Q2XWCYMgN2ycwBEg4RuRehT/HPER0HSIk3s39FTsn8ddtlBFBVgLMHvHI4r+wHY78I5ogyr0Gjd/v5yH1GyKnGxHYCuJT25S8zsFj0ZA1Z5DFVEhFBzM=; 5:vD7gZbnCwuyK5w/erMIGNOCQD+d8ijoMS6IMIlW1lXh22DWw7NW62VrZdWgKQ3i6ZGxEuYKq86rgsFQQUwtB6a9Z16itABJ5+HHSlWFlVh/SkmH+7d8C66fKsBrH5s4KXozYaPQxVMmDX9/3IUIwkX+SKdm2+5RMIhvgn3Muowo=; 24:FBJEowJtJyWwpbArhUcaTX+Gp2mWxPxPIyGybuJjR/kOQoJ+miaCsm1Ptt1ItDf+9kAByV043TeGJovrYNbg4L40H/5YBlwZ2LvKei4p9Xg=; 7:djFSuj3QjTt6huIKkJoXcmHzlCJXbquvugGYITlj/NMdykgwrEJSI6Fch5qufF97dNiOFDfNiOuHsp+PArfklpL9MEd/2gIeSf5gmeOgTdOStVFkhB0vrZkLxyJzCuoWch2Jh3/BJI7EfO82dzwSRsP1Xdi+JuTIiqqfYRVBb0jJQx5oypdQxWsbLouvTbSndIh7q5YMF4h3GLv1gFUh3eQV6XD+A54Pjy/3PCPzcvmlaPAmVbB01nmfFCrD20vL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2017 08:19:13.0568 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59532de2-32ed-49d3-4aee-08d524ef117f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1350 Subject: Re: [dpdk-dev] [PATCH v2] examples/l3fwd: fix aliasing in port grouping 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, 06 Nov 2017 08:19:16 -0000 The 11/06/2017 09:59, Jerin Jacob wrote: > -----Original Message----- > > Date: Fri, 3 Nov 2017 16:13:51 +0530 > > From: Guduri Prathyusha > > To: tomasz.kantecki@intel.com > > CC: Jianbo.Liu@arm.com, guduriprathyusha@gmail.com, > > konstantin.ananyev@intel.com, dev@dpdk.org, Guduri Prathyusha > > > > Subject: [dpdk-dev] [PATCH v2] examples/l3fwd: fix aliasing in port gro= uping > > X-Mailer: git-send-email 2.14.1 > > > > With -f-strict-aliasing enabled by default from -O2, gcc > 5.x gives > > undefined behavior in port_groupx4 in ARM. 'pn' and 'pnum' are > > two different pointers pointing to same chunk of memory and > > with -f-strict-aliasing the pointers are assumed to be pointing to > > different memory and compiler reorders instructions that depend on > > pnum and pn. This breaks port grouping algorithm. > > > > This patch eliminates the above problem by introducing a compiler > > barrier between the instructions that depend on pnum, pn and lp. > > > > Fixes: 569b290cdb36 ("examples/l3fwd: add NEON implementation") > > > > Signed-off-by: Guduri Prathyusha > > Acked-by: Jerin Jacob > Acked-by: Jianbo Liu IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.