From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0075.outbound.protection.outlook.com [104.47.42.75]) by dpdk.org (Postfix) with ESMTP id 8F2165398; Mon, 8 Oct 2018 14:05:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=thNEKTs4fe81PIedjI48nHzgWxd9h/jzA1+tdyE0NKA=; b=oqgIa4v8ruem49TMt8pMVM2nS6ujFDj7zzGqTbmXHyC0Peba1eiEChal8KMuf2Je276vXXqVh165/22fZ8i4P7jA3f2nLgbLOqDrzBpLlL2C6VeHb438v5iXmzn7cqvQlO7dVn2d/tWQIcL8CFV9vPi1YFGV0ZqiWt6Jk0Hm0I8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.167.112.78) by DM6PR07MB5004.namprd07.prod.outlook.com (2603:10b6:5:25::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Mon, 8 Oct 2018 12:05:38 +0000 Date: Mon, 8 Oct 2018 17:35:25 +0530 From: Jerin Jacob To: Ola Liljedahl Cc: "dev@dpdk.org" , Honnappa Nagarahalli , "Ananyev, Konstantin" , "Gavin Hu (Arm Technology China)" , Steve Capper , nd , "stable@dpdk.org" Message-ID: <20181008120524.GC28968@jerin> References: <20181007040243.GA1850@jerin> <7A156041-23EC-4CCB-B129-3607AF34A992@arm.com> <20181008060629.GA5228@jerin> <063A95EC-CFC1-42F7-B864-DFB9C6718AC8@arm.com> <20181008100004.GB11081@jerin> <20181008104653.GC11081@jerin> <20181008115028.GA28968@jerin> <22595D8F-00A6-4D45-B143-2BF25148869D@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <22595D8F-00A6-4D45-B143-2BF25148869D@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [122.167.112.78] X-ClientProxiedBy: SG2PR06CA0087.apcprd06.prod.outlook.com (2603:1096:3:14::13) To DM6PR07MB5004.namprd07.prod.outlook.com (2603:10b6:5:25::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 764199b4-fd4e-4cc1-f2cb-08d62d165e3a X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB5004; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5004; 3:5x34ljKXtFr10DhuyRxiF4fUP2vnKWTDKtrlcSx/ZEeZb4gNfM0mH8p4UH7FWFuxpwreLsTtZKarVkVq20dM6RG2n3b+ePIskYQflCQc6dDD8ibzeJMJTrRrEf15Ks1nFW8mEKW4FzYk2X2MT7wy5XlDtpdZQPLUBTEyiKPHmO3433+CdE1YuVea5hCzriPPW2e2HWK5e5xKsLxOBl4Fpo+1ATzDCBnGWeLmg31OOpzwAwj9gaGwHMAXFTqgR623; 25:TLhRPqkhKYyIMoQ7hsfu71fSgwED22J3zBl+vUb3OKRP9p/8uH+3hV5tTzku+/5AOM3c6ANHcceoeGMrLfF4ydfLRAWNfX/Yy35sx0vvvG6SN+DejoWWnYq9j/hR+S9Qn5FIuUslYrkIcX/IPdOYSAL5B5Yjsw3DN0/RPRGUEF7LKlUcDEAmM/xfGk/CTmVuyX0IqjknKJ6XV/ka6K1PNez+HjHyLQKobc8qa26uVsIG78g3ENrMuHrx01yAaM6qiedCbSXh3W4u62XyL9fG3GE+44y3Zt1AJeTnTdu+f4MHS6/oY6ILYLIGsqoA9HnUgqwz3wybBnQbA3pffKERjQ==; 31:kP7sV5Xtkl34YXUBtTY9osLGW7WluzIo79Q3C2feJImEoVTIJjAi/jFj91n3f+sqIm4SY2Z8r5fEkHNLdlPLEgfqFpdTCEkZ+Qnz7kHd4gpYlCD/RKealpnz5KDaQJtQfgEx4Ct5e5QxWu8hnx9AzfyBIHNsLYiRamsjeztnIg+qXLbTPb7tMxDY7GdI6HNXaL1CB5l3gjQ2BNgvC5jdtdJkveNp5ZJe1SRztUdLzS0= X-MS-TrafficTypeDiagnostic: DM6PR07MB5004: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5004; 20:uLpMIlYKD3X5L1MsJyMUfMIlNCUk+ecvYlmOcfoar5tGKDO9Pm/7l24Qum6b2tnVJMDp3nUkVBIi9wfM1g3KqxOVN/D9gxjN/Wl9qqC4VzqjsU2uTUx2j8Bavn7bCNuwYK18HZtA2KWQg8WcLJ1vg/R+F1RBXBWzfxvpGkBhgUgMvvzKMKm5b5jXfWJIuF5tEksi4gdZUeX81wLw7wI9lH4oOO3cWYhc7HqyXsqKYoSRQifiHZx56vRyDAXPzIOOC2azIzq6gTiNEJ1tHuDReqGyuFx4WM1SHTkQZZFOG60mEyNxRQKaJU4GAiliqCyWRZhEIhK2lHVsVkzbdS9UlKjvhf2fnB0z8Tigq6MPw6eQPBipLVK/W7UPptZMp40+BGWmwDHrhRNXzJMo0fWIXYFMuSZlfGToJHJ5a39tGidx7/lh5d6OCOJMKsjCX3Gn/oAdR1BEZoZFUNLBsAM//bGVFRXdNDeWae16sW5WoRmfTVwPyEUZW3qMPKirwqGZWocwl7ZIUoggujO9RnGumrd0f86MXa1Wpw0CZ8Q6PQOdijS6CZMnMIYDuUjQE/so9Gkh4RSxnADBzlM0VYcwg8xZfrhcUR6ryUOie3D/1Ko= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(228905959029699)(166708455590820); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3231355)(944501410)(52105095)(10201501046)(3002001)(149066)(150057)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991055); SRVR:DM6PR07MB5004; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB5004; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5004; 4:ALZ/IyR/+xzavGuihTTLI2TQ5rRHokVDv6PDTF5a70J9Ui5srk99cthpi1qFiVcCU1ALTXWdGYKav1jfXtwo4/Ve5q1zfNOpuYSjnlRHSfyZ5Hs2cG/OFK3pTI933wQf2DEaFkXpSBgVXgEYqYDNY90IcqvOIE19W6/kSfkReBA9clZ6Hu0ERxlge7eGSyG8LoAMBHUJezkEfJiHwg4Edb8dO8CqUFrr8DQZQrXNlBwG+tNrH+Khraxp8qKgoc5LLvncx++vQWWCQOwMaCIopR9YNN+NCZNs7BYAzgb5fS71D1xuWmpGf/RCciUZItl2RPaN/fYo0Z76S+jdyd/df02QL0lGCTdw4DwUv8V1IQ8VO13DWxiXaYlZRZQOc62J X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(366004)(39860400002)(396003)(346002)(376002)(189003)(199004)(13464003)(386003)(52116002)(2486003)(23676004)(6246003)(52146003)(76176011)(6496006)(45080400002)(4326008)(2870700001)(33896004)(25786009)(478600001)(93886005)(19627235002)(316002)(33716001)(58126008)(44832011)(486006)(446003)(3846002)(6116002)(1076002)(54906003)(72206003)(11346002)(956004)(476003)(53936002)(97736004)(55016002)(8676002)(186003)(7736002)(16526019)(26005)(305945005)(2906002)(42882007)(68736007)(229853002)(8936002)(47776003)(33656002)(50466002)(81156014)(6916009)(6666003)(5660300001)(9686003)(81166006)(66066001)(105586002)(106356001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB5004; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTZQUjA3TUI1MDA0OzIzOjhJbXhQcUtBeVpBUWJBMU9OdTZMbHVBZE4y?= =?utf-8?B?eEswbUQ1dS9nVjRxdENBRDZ6SnVkV1I3eUxjRC9EMUxLWlRCYU1YaTFERDJV?= =?utf-8?B?R2pXc05FUkx5cnNZV21iQ28zeXZ4VlhOQUxlc3dIVGZaOWU4dHZEQUN2YjJI?= =?utf-8?B?MjF5eGFLdk5UOWRTMVVrY3FzNXVrYSs2UXhhV2ZwTC9EamwzbUtjNk5NakF6?= =?utf-8?B?TWV3V1pBTUlDaGcya05GUHh0QmVWL1FkUXQ4WGlNN1RQSTgvZEJoWDNlUnRR?= =?utf-8?B?YlUrM0ZpTXBGQ3VzYVF4ZEwvMis2QUQ3THJPbGVvNUQ0MU9CcGIvMndBOGFP?= =?utf-8?B?NlFPNTFHWTFkRUpQa3hadU5KYmVRM29sRW9KcDY3dFVwSnFIODkwa1hXK1Qr?= =?utf-8?B?bk9ITHRVVU9WYlk2d0ROYWRPTnVINEVvQk1aM3ZZZXMvTjE2cUxXSEhjNEVL?= =?utf-8?B?aUJtU2xON0d0Z0ZWdlpsVm1wQndkUmRFV2ROaFJXK2d1eHlKY2Z0MEdIdlBq?= =?utf-8?B?K2UzZURqajBhOUd3SUFWWlp5NXpCOGlPUFoxb0RseUhzZE4yanc5cnZSR05K?= =?utf-8?B?TGJLZXJEejU3TkQ0T05STkRVMllrM01pRk96K0ZwaVpPeFpFSDdhTVlRQWRX?= =?utf-8?B?WjJBL0s1MUpCZUpTMmFzaHNZd3FoM2ZFQTFHalZCYTcrTFo0d3Rqck1JZ1M1?= =?utf-8?B?d08rWmIvWUlpTXVZSlFGNE43WGNFZ29MNWludThoYnZ5UUx1ejVVZ0I2akpy?= =?utf-8?B?MFFENXhsUWdWVEg5bkhaWUZGQT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/xzfaEgsh58r8y1R6Y1D91sS0sDL8OqftOrNH31VsPUPYkQPiIl3ibxLJQpRVyWy8Y9FiB6Yzwn8Rrfx5mNlOc1o0taZPqmDlwu1Y18doIK2fqHmQfNJ43lMv5HUbDAMQq7Fvwmdmyav1kWbfE77uU4gjgFwg9JM6o69Tuc2W3DDkIvgyQH8h3mBRlMhQF+Gg==; 5:ZuiwEz+T6gFnz7GfmgnDzr7S6a3SVov/aanQI0LDQX0Uza4nubKVpMJNXH+cILCptU6gAGd6MvqkW2lb/tNgY2RP/BkGGZuvmfydziF681z6jP3f40n0jvJYXw5OZXRa87SJDC8MOyJhmSjG4oCyUi7hV+tz413uvA41YjBdIRs=; 7:dmA7gB1kjqpRr7eblAYNTk6AYeq9lmiGEc0WEMttLyMLvwZAb9ltEGaWt6BrIwL7b3fg5YvFAh9RYsBk56B6XrvMzpRh6lI+Mv8xLEZZx5jNoKFnOlVCRqWbt/WOVvseniHDCetvwi6qg7kizeEejKpYhGF4272SnmycoRcBM0j1PbmMZoHDHZ9o2A/fecwpRSq5GGFZEP6S/ECPrclGLggstUIZ1gWbCWlFUObeCTUV/K5657pR5hhnucxXNppe SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 12:05:38.1623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 764199b4-fd4e-4cc1-f2cb-08d62d165e3a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB5004 Subject: Re: [dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load 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, 08 Oct 2018 12:05:43 -0000 -----Original Message----- > Date: Mon, 8 Oct 2018 11:59:16 +0000 > From: Ola Liljedahl > To: Jerin Jacob > CC: "dev@dpdk.org" , Honnappa Nagarahalli > , "Ananyev, Konstantin" > , "Gavin Hu (Arm Technology China)" > , Steve Capper , nd , > "stable@dpdk.org" > Subject: Re: [PATCH v3 1/3] ring: read tail using atomic load > user-agent: Microsoft-MacOutlook/10.11.0.180909 > > > On 08/10/2018, 13:50, "Jerin Jacob" wrote: > > > I don't know how that creates more undefined behavior. So replied in the > context of your reply that, according to your view even Linux is running > with undefined behavior. > > As I explained, Linux does not use C11 atomics (nor GCC __atomic builtins) so > cannot express the kind of undefined behaviour caused by mixing conflicting atomic > (as defined by the C11 standard) and non-atomic accesses to the same object. > > Checked the latest version from https://github.com/torvalds/linux Yet another top post. So you removed the complete earlier context. Never mind. I am not saying Linux is using C11 atomic. I asked, Can't we follow like Linux to use the HW feature of load acquire and store release semantics with introducing C11 memory model. > >