From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0057.outbound.protection.outlook.com [104.47.41.57]) by dpdk.org (Postfix) with ESMTP id BF8451D90 for ; Sun, 3 Dec 2017 13:15:09 +0100 (CET) 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; bh=mBBXyHsKc9huIRIj2ynMvy1+3DN7v+4C9mdPtNXQ3J0=; b=V4dLl8rl233NnS3quryH3oOzibhThUSkF2oG6S7Yz/zFgUPCDdSSOT93/yAcwbxPPbIqVLuG3bFH4MKgrMLzA1CoaaCXwWB6Pjdxt8qSlREFXt8mliMI5Lpsd3gGUZbEvAvBp+kpxrzhDOKIrTk5BPsIGRxxwyZAAhGcXrFRd7s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.94.184) by CO2PR07MB2519.namprd07.prod.outlook.com (10.166.201.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Sun, 3 Dec 2017 12:15:04 +0000 Date: Sun, 3 Dec 2017 17:44:48 +0530 From: Jerin Jacob To: Jia He Cc: dev@dpdk.org, bruce.richardson@intel.com, konstantin.ananyev@intel.com, olivier.matz@6wind.com, jianbo.liu@arm.com, hemant.agrawal@nxp.com, Jia He Message-ID: <20171203121447.GB12755@jerin> References: <1510291392-33251-1-git-send-email-hejianet@gmail.com> <1511748024-7245-1-git-send-email-hejianet@gmail.com> <1511748024-7245-4-git-send-email-hejianet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511748024-7245-4-git-send-email-hejianet@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.61.94.184] X-ClientProxiedBy: BM1PR01CA0078.INDPRD01.PROD.OUTLOOK.COM (10.174.208.146) To CO2PR07MB2519.namprd07.prod.outlook.com (10.166.201.6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42e7561b-3bd2-4b75-9326-08d53a477e0d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:CO2PR07MB2519; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 3:8fQFNxA/3JWcsABmcf+tmyaJCuJtIRhmQChDeeDmrQXTwJL/J5zLNg/fKGk7YLURKPE6LVBObu8/peQ59VG2yq574jbT1Qv/b8ePjnKLZEJwCDUlmfEYs/7yEcrGztNxVnXHwzSp7nhfngWT48Yq8nupH3NurWSQl1DyhVXk6DbRl4MO82KMl7wvZqC784HlQSvzR6xZKiZyClbeKwvIiWWzDc4SsrlGhM9phaWC2PuBO/wIUuy7eicqOVQaNz4N; 25:ioJYOEup6OaP0QBT0+Q3xv8ppUkHlNMbdQ2OWp6IODZe8nUPAiZ4MeiP3qv3wOvREepXSgctZ+NcRvYqxrnoZP3AZv/a9ImSEWXuGW92uNyt9WAhkbDARZDACezJZA64Q3ykcssXBezv3IldjDp+Rg6sL8oU9+yKEkK/vL5gwmjdhZJWS5E/7Ho+yUQOQ89l52mscKOyFL6BpV2bGxRaUe8T8NLbj/5zGZSzM7rwSXFV6AOgN6lswoKnL6CNHkuXQT/M9kSG/IZ8uTxdqm0lUzVGNY6sBnMVR5Th8iri7cUkplWNzY6IBTOPVXNGRZEoCzMcK6oa8z2rnLDl7v3xYA==; 31:jfs6eQCJ+RtpPNadglz7qdqWOcevz10isbKRt5ilGSpbXnIyURvvwtLCNDi+WntbLfCAmwAd3QkrgRj1WdHyCMxLfVS8YQ9P82KdR5kR69K28+V/eFTQd5Gr3EzAv31M1qGqI2Gqci6ry81jzsrBH62CX4iCGpmx3+3t3QQaI5SDTmNTGsLjjvx0kJId5KbKFVq777Bk4gACgVuL8Im2LPsCTWMNKeQzHmzhhlXqFFo= X-MS-TrafficTypeDiagnostic: CO2PR07MB2519: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 20:9al5NAj7PJo+x+wsSsivz8jd1V5068Q6PzUvpSaVj49CnZPBJ5srcHj9lJ4+HXnghAzxsl0wCZWSN7yaob9/ajwIgesFbsFfbvYgS01qREFq9PG09Z9++/7+XSWrD3mxJHfrNAKKKv6xKY4/Fbj9UGjMf4Ua3jGowENUs6eecTZORmfjdvF0UNFIxCbMyTnJ6xWl3UN3Rha2U3pS+FXm/cyhKepGH+PRGZScd36A3RfUfFRcVLpmDFj1H7vP4qV7GMKqJLnFzKKBAII4O+REnkPJCY9ENucBsXGqtIOu9SIb45MbrdU8xAZKv7IOq/EcZCCn2xgh0dydnE8pAVO7HVZ6A60eve4NZDY+QzZPtdbUBK0f3D6wDyu1I+YHcWNVgQLWY5pv4aVQa+2xO2ksKkSqJIIpRmaQSBw6/kMC5lhtu/z7mE0GMEusXPUssBDc9DgdIy5pN0v6Q91OI30bTYiRmS6FJIeoJ4ei3TnIDJIsgc+G1cqSf1OowpTrUhwoa8FkXGeXSAdVAD0NjI1hsVxcwF3KHYjTGO13hWWV9M3+ckHHY1UP2sPXIkOWTOCyDFBYL8YU10+qixFQo7r95oEdozhJNNv81Lv/MfMVgHY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(166708455590820)(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(93006095)(3002001)(10201501046)(6041248)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CO2PR07MB2519; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO2PR07MB2519; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 4:DFJ/ujzUoEPoQz56BMOOPbniI/NtD9HYdexzMqVglX+6RvilvtR0hWOaH2mNYlH8+5OwVmiAhSkgU+aaeG3jE6zKtrISDfuIh0Gb6E9AZdYvxIv8TPKjsa1coZ2CTmz5udLYGXamZmMz5LvFNGc99J9qMyejBIrLmqcAS61vsnQ57o8KiOFjCYGp17F6dM7i+0vqR7R/nxZ/oNnHVvBfuuJn4zIMR+U+iSSCPVFGB5z0Cg3ywUEklsIBxPx0autH9VlcfPCb4FXkovR8RVCQBven0+ePKHLmoZRgkr/OrI/JwDPjUbTTriaztvUtpjKO47k0oBenirRuBqSdU9P0iJirGNYjTjAkN6hbhRLjJPEkPjRjRTBv2N5mReK4EidQix1ITFadqClXpBisoYhOXy0nY25kWO8rM1FQDIl2SOE= X-Forefront-PRVS: 05102978A2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(366004)(13464003)(199003)(189002)(53936002)(81156014)(9686003)(55016002)(8936002)(23726003)(83506002)(6306002)(16526018)(5660300001)(53376002)(6916009)(6246003)(189998001)(966005)(25786009)(6666003)(4326008)(478600001)(72206003)(8676002)(81166006)(1411001)(316002)(42882006)(58126008)(16586007)(2906002)(2950100002)(97736004)(68736007)(7736002)(105586002)(305945005)(8656006)(33716001)(52116002)(6116002)(101416001)(33656002)(106356001)(6496006)(1076002)(54356011)(47776003)(50466002)(76176011)(3846002)(229853002)(66066001)(39060400002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2519; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2519; 23:50Q60xwLktWKn1Rohn+MjtPY5S+BaVVrQzh+ICJ+H?= =?us-ascii?Q?TMOiO41qkvZD0kRADYfRNw9TQpJ9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ny8ML1FyTXjOicNKxt3cTtfCV4ix10p9Og2D6tEyZvmiGzsahAC5854bSPvQXIIIsKWFdH2IJlZmxODDm7uAdENhrFHEpKOUgO5YAvHlm/t6P8PH7EyyOPzA=; 24:5QzRxASbYcBeg7d1E8gTbMbpcLeYCNcFQg1AjzYA1mF7NE4bLGKW5/J3BX7ccgWFDQHQ/6ZBwgk/KDMZP4c+dfD8gvsWiaVdDS5I2nGO1Zo=; 7:PnORfEshvgHuStSU5ublXU6+gYb86pEqj97OM1hfCIsS3exUs+OaUwUd4l44I7tCH0hhbAmboxcQuRKb+RwOazKlDl1gH4/Hly0HW2tfuU5k3fUBroARIFSDq2InVJtu5YxZ4SWR2t8VIvva0DJaxCjOockjPSGUJoAAdU32zKlIc/fegIE7zgk0e3V9/mVwhYJe0ykQZgLVlp80Mk1xzDXDA98ll/N4cn2Ap89Hz6LM/LsANBQpyVE+frWcITh5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2017 12:15:04.3294 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42e7561b-3bd2-4b75-9326-08d53a477e0d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2519 Subject: Re: [dpdk-dev] [PATCH V6 3/3] ring: introduce new header file to support C11 memory model 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: Sun, 03 Dec 2017 12:15:10 -0000 -----Original Message----- > Date: Sun, 26 Nov 2017 18:00:24 -0800 > From: Jia He > To: jerin.jacob@caviumnetworks.com, dev@dpdk.org, > bruce.richardson@intel.com, konstantin.ananyev@intel.com > Cc: olivier.matz@6wind.com, jianbo.liu@arm.com, hemant.agrawal@nxp.com, Jia > He , Jia He > Subject: [PATCH V6 3/3] ring: introduce new header file to support C11 > memory model > X-Mailer: git-send-email 2.7.4 > > To support C11 memory model barrier, 2 options are suggested by Jerin: > 1. use rte_smp_rmb > 2. use load_acquire/store_release(refer to [1]). > CONFIG_RTE_RING_USE_C11_MEM_MODEL is provided, and by default it is "y" > only on arm64 so far. > > The reason why providing 2 options is due to the performance benchmark > difference in different arm machines, refer to [2]. > > We haven't tested on ppc64. If anyone verifies it, he can add > CONFIG_RTE_RING_USE_C11_MEM_MODEL=y to ppc64 config files. > > [1] https://github.com/freebsd/freebsd/blob/master/sys/sys/buf_ring.h#L170 > [2] http://dpdk.org/ml/archives/dev/2017-October/080861.html > > Signed-off-by: Jia He > Suggested-by: Jerin Jacob Acked-by: Jerin Jacob