From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0071.outbound.protection.outlook.com [104.47.37.71]) by dpdk.org (Postfix) with ESMTP id 2938258CB; Mon, 8 Oct 2018 14:20:59 +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=XjOu/d0qje0XrfJC9m69OTJF5NLl3Y7cd0MBOpCZmiQ=; b=ItccZB8TLN7oL85LuvwNbH/98dhyBmvtXYW6iV/XioBRe4smzUI72BmtNO1edlRC02eDCZtW/7BEThMn+KkUVLTB1bK3rQVgxfnagMn0oumcFsae1y7hyw5QFb9WmVY5YGnhR+MoSQLeV4XNmNKo7SOXI49sCpuxrrosIh6Md9Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.167.112.78) by BYAPR07MB4999.namprd07.prod.outlook.com (2603:10b6:a03:5b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.28; Mon, 8 Oct 2018 12:20:54 +0000 Date: Mon, 8 Oct 2018 17:50:39 +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: <20181008122038.GD28968@jerin> References: <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> <20181008120524.GC28968@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181008120524.GC28968@jerin> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [122.167.112.78] X-ClientProxiedBy: BM1PR0101CA0032.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::18) To BYAPR07MB4999.namprd07.prod.outlook.com (2603:10b6:a03:5b::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40a2a5a2-120f-40d7-5cd8-08d62d188093 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4999; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 3:dplNdSPMSdRlwE6WiYJllJ1wDYnFp7en5iRu0EJWdDkBRfY0pBhbLyN025c8HQ/viFGBRe2bmd/jIfgUu+JLCGVd42nGvsdWf7itlcqpBSErljrgeMXFxiclpBhRPcYkSQomrUfco/OUkjvIVb9eSzZKqtc3iZCN8IfOvkBVq5KJAw6svfxxZpmAjFZBnvACUBl79O02CpmZiSth4HciMtgPVqUna84nEag3KjHIEeH3AHqZNiKYmoK/S8PyKcHx; 25:nf64DQrX9MjV4nvMcXWEeL+FksNeR4fWCUKYlZIra618sh9XWuqJfTrWSM2kZ4D7IjO7UpHyLSnwqu/FBzHCdsXDcQcoD3DGJ1hsjRp+IHNFpgg0CGKblgRLXhDVOFTQfMnYrgAFszjys+3awo3muxxOBkQZ6kzTisO2kRrMBNfuL5E83+Ga3jhOy7Ve72Bm3ou8kxeNj5wR+5/hPLoUkFTaJBWnhzNm8zNi5yVSh/JrND2WrOmugiV8RqHoh3a3DoNE9g+bKzKUVcIt4iYKz6VYLxbXSlURf+Mpj6yUYpnHLcNQhDXmnQpYqpIo4WkicWFK3JdE3zwyQa3BSd2d0Q==; 31:n+UHlrrViWZzbftINSLNfuigPyF+hXtQHwnTATv1fRJ2kpPx46JCn+uApA/OaAkHI6ZOjMHLtvY5kWSn8alrlDvgtgRbhtxazlleMIqesuQK9mspCLmN/yZomesDDddIiO1bErEjxeB5SGZqq0BhOXbO7YAu+lzqo3rs3EkLihD+QHR54eh6RRQCUYbiPbCQZRP9NxoWhDr2AjmQVmJPgbb3jUTfPKn2AXOCotQEqjw= X-MS-TrafficTypeDiagnostic: BYAPR07MB4999: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 20:GJZZxw3hNI2G/pTTQDrIgWrS9Vpibq0duGjHcKy1JKZJtnQm7xX0882FMyjRz0gROyxa7C+prNdHVTuy2Px5cDJ5a4zMHxsLOl5emRhcprEe6h6vldYVOn39pmSEM0FVrX8XkYug10/VI0nbzo/9Ri5UAWBSJRkxsPNvbIXRSuUdKQ9VPz536hDghbdBn07a8vqx1INLPwhtB8MIIstzSkTKJhBFwSqV5lXDwJRkaLh8ijuBxRKs/e1tuY7RLcheTYpWQDVWN/7STmcNozO6Lm8SIx1ZmqXvBilxmUqZBD+C+21WJnrEBwlItYCAiAoJDzqQYM562qZAYZQ+09dRDU0eqKrSPAdC5lgXxslWx6YxCkZASRab+8HQe1DIjDDP7qSD/tc1lhG263nnbo7ZPaswcBnWzQBhk6ZicvuJ88dA0DoTEgaEe4GifP17eydgS8mnEvFBBR116tF5DYw0jbXvsV9B5AlfKB9XfPsogRV31AOybZ2FVCGewCLEmykwE4FrLoPoRmZv5a3VXAnrI88N1gXNjp/k8hu6RAnrZwF4pkQpTZoI8cICmIfQ34eumzcQpgnYxCTqjXSSxEwf4EBSPhE3B63YTnDD6Mg6IZo= 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)(3231355)(944501410)(52105095)(3002001)(93006095)(10201501046)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051); SRVR:BYAPR07MB4999; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4999; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4999; 4:J2DEaS1RlwUdJ3mkVOkpVaXNBNP5/COZInh/s3Ggt7jDgN/8EUT2gWs7XLbnmL7f9LBifFdIKlor6jau9D6MvFR5nNDiRpYyt6ryrEaDvqeeJQPWdnnuLW07oVaH+hI1cRxKhcznzqYQEvUZEOztVU08OEEt6+alk7lkg1yRY7sy92S5WoPC5cJCj9N/vHXF8QvVBIEWbbtgmFQpBjeFWPmXnrgJixiDj/d9pNbu/7mce995TZNEEuzjKIi41GzJYwzOK44NfegzkS1ks/8VbWA7vNKRD3gxATVh4dQNyIgBpTWBL0BPaK3oc+XaeVcmLSfA9rzIU7Z3GvmD8Fkl6NDecbhKPLwTBwHV3JCyjlLtfk98ydfdJGvUmZhJ70eF X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(39860400002)(136003)(366004)(376002)(13464003)(189003)(199004)(52116002)(2486003)(5660300001)(23676004)(305945005)(386003)(97736004)(8936002)(33656002)(45080400002)(52146003)(33896004)(76176011)(7736002)(478600001)(6496006)(53936002)(105586002)(68736007)(72206003)(9686003)(6916009)(6666003)(55016002)(50466002)(54906003)(106356001)(33716001)(229853002)(2906002)(25786009)(93886005)(6246003)(26005)(66066001)(16526019)(186003)(44832011)(42882007)(8676002)(2870700001)(19627235002)(47776003)(11346002)(4326008)(476003)(956004)(446003)(81166006)(6116002)(1076002)(316002)(81156014)(486006)(58126008)(3846002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4999; 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?MTtCWUFQUjA3TUI0OTk5OzIzOm0yYS9iSWRNR2lia2lUU0V0MWxnRFdSTlp2?= =?utf-8?B?Tm5HVjBueDZYSGdVd1hpMEdWUUtDRzU2NDQ2aElFQVYwK29HZEZySEh6ZUEx?= =?utf-8?B?NFFuN0hNSi9LM0VSN3Ura0NDeUxsakdwN2RUREJqVFpweUFqSlAxY3Q1Yk9B?= =?utf-8?B?YjNiSWIyM3YybGdQbmlCK2ZVd2Y1Z1laTnFqZWY3NXNJUkwxMXp0ejdQaE1D?= =?utf-8?B?UDQxRjFBalluQ3ViL0FrODZpdTBNZ25TRDdIeXE2ZWVGS29QRVFNcTJzS21p?= =?utf-8?B?aEVWWXp2dmZzNnZ0R3g5WTQwSSszRUZ6YmFBWTJNR3NDdXFIVHV3V3B0bzRv?= =?utf-8?B?WkN6ZVRKY3lhekd2YUFTbS82U2lVZTlVeXBzRGF6b0pLVW9EbEsyUTI0dlRD?= =?utf-8?B?UzkrcitSa3RpMXpCUWpyWWYrcSt3OUVEZE5GUGV1RFRmaHRsaHc1NTRrOXlH?= =?utf-8?B?VmQxVmIrbHlEOUlhVzhNd1lmWGMyc0hLRWdjSHZNK2hxNU9ReHdLendRY21m?= =?utf-8?B?YmVTa0wzdmVIZmtabmZGVStnTTZTRDhwaWQzdXMwMmEvOHNpUEhlSnNTcWkw?= =?utf-8?B?RnFJVDVVQ05CY21nYytCVDhiUlBKc1dxNVV0RktVQm0xQk5VRWhQdHFadDha?= =?utf-8?B?TUVVZFVOTjcwRjZSMkVvcTFjUTl1TjJUWjQ3MEhZL3hkSVp4Um9GU0Fqak44?= =?utf-8?B?b09zUnQveVVzcWRKNUszSWppRzBIL3AxY1ltcTJuNkFwUG43SDlzN0xpekxl?= =?utf-8?B?YlFrM2ZtMmZMV0lBT0xYWTNCR29Ba1E5TkQ4UkFmSTNzU2hhQUUwYThRV3dj?= =?utf-8?B?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VXqQht7AamfMZqUuJ4CO4w6T35XtT5/QfgcWOYekvGarwk9Aq09J/lQZwsQ9DqutF7wzkNPOW7zqKIpRMRJ+Bh3I5qX+1MK0MsWDmfLEFujjQPOt2LM3aUmcYCeT06BVHevwHbNucR1FjFatS56u93J43/dkfqnAwNqA==; 5:DbOBQ2xVedqhy7czy4LLJ+yYokrvqpzf37RzFIyTb/W1luoMkEuWx1Wbh+rvByIF+MDiGKcjJDW8TD7+kji6IMtv6FfIlEiR500csASPdbQ3xFOOokwepUwxhqNdsDRDVNN6IfjOQliL7chImselHcNm/Qw7EsIyCKZbZ/tAagQ=; 7:Ws70UjrBZ2AuPbpCfwI6jMy3AvtuV5WlTt+S+3wmxnBdM2qvrZyXgBm2xDHcIKJg50xdE+kT5KeAE5YBeHzWVzUc5st80yaPTpo8OTd84F5ywlxjyzVrzQmYVrMiLGetMytF2DWULrtSrluI+e+DcJeHV5GsuxWHF/dYE1FLEG4oMWP0pHqv3Zrjl3DY/OiE9GppcqTZELe1kb13avzT+/5VhbcauMAvutJkdWpD4wtPDeMt8A1WuwBgDvUJN4HB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 12:20:54.8749 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40a2a5a2-120f-40d7-5cd8-08d62d188093 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4999 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:20:59 -0000 -----Original Message----- > 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" > Subject: Re: [dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load > User-Agent: Mutt/1.10.1 (2018-07-13) > > External Email > > -----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. correction: s/with introducing C11 memory model/with out introducing C11 memory model > > > > > > >