From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 06B00A0527; Mon, 20 Jul 2020 17:44:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CF10D1BFBF; Mon, 20 Jul 2020 17:44:27 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by dpdk.org (Postfix) with ESMTP id 098872B86; Mon, 20 Jul 2020 17:44:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kRiKs5zkjbNxarm468OGzL+dm42Iv2Fz4FrUoKJfTzM=; b=nd2W/4405SNxz5UykhX3+++L1gb3eWLHmvZ+zrsl49QawEFsye7G8PAkvtNa62vQXYJHimGw7Fit0SMYrijo82tJo965PTqQxuvdsy30P33ai9EW9T7w0UJ5QRrori1V3FW8DK9nst34fgY72BEG+wum/wrSGWAgIoCpCmEulPs= Received: from AM5PR0402CA0020.eurprd04.prod.outlook.com (2603:10a6:203:90::30) by HE1PR0802MB2347.eurprd08.prod.outlook.com (2603:10a6:3:c8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.24; Mon, 20 Jul 2020 15:44:24 +0000 Received: from AM5EUR03FT056.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:90:cafe::a6) by AM5PR0402CA0020.outlook.office365.com (2603:10a6:203:90::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Mon, 20 Jul 2020 15:44:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT056.mail.protection.outlook.com (10.152.17.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Mon, 20 Jul 2020 15:44:23 +0000 Received: ("Tessian outbound 2ae7cfbcc26c:v62"); Mon, 20 Jul 2020 15:44:23 +0000 X-CR-MTA-TID: 64aa7808 Received: from 01fa7c423625.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EBBD48E5-EA8E-4423-9A1B-CDE0E5818E2A.1; Mon, 20 Jul 2020 15:44:18 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 01fa7c423625.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 20 Jul 2020 15:44:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fOwSa0c9MTx7LUMlpLO2cFNxQa5hJ9jIhAlCzOJbyyZxbmGMF05BDQpbr+MsnwrQp0y57Lo9hN9nFMaO/fOUcmbpqxpHw4zAuakf3MGD2cLY8rORyTxSRgqmyUFE0jFo6f2bx6x0JBG7Qr13U8Dz12g9pzwTws7p+O6m+UAHaKpbKH9gkPm33iwxxLfTi7m4SSWF5+ryi+CUr54C1pEtmxS/9Txz8cyPWoJKjdZW3Tib5LwRt1hXkh7G38LlLoRpvPYdcqG9H6Yd1wHYGZDSCO34HDNmM1O5nb/V4Ve1VBq7923yo+u5DRaI8W0Sj9+QPsJLMFpd6uM5+tam6oz+Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kRiKs5zkjbNxarm468OGzL+dm42Iv2Fz4FrUoKJfTzM=; b=eUzy+NLdl2Zb1frwogcWsNqZTZjFJxMjRLn9jIMIb5obN0zVhMw7cdVhU3JwM5uCyRGmt5WT6ThJZ9vYLzKuuQeaMIFQw7iSmDtXMt/c30v2dW/mll+7ZgtnOz3lmi31z+vWSzwD792wYbDrc4UFEmURfZVUmAP/CkZR7V24KtU6056B5zZDB7QS3muKDamf1Kxy6vUFUMsRlvpFk+9Kco60IHe0TiVrtUAl84n/4rz+5LvY3xrbQ4a6DvwgBXP1RQ6vKK1HmhvgwXw+22rzIdGtWpBirXYSi1XKp/vtdmc4SwbZdTuNsUhHcs5lQ3UPbjGoX7zU0h0AkRK81rqSXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kRiKs5zkjbNxarm468OGzL+dm42Iv2Fz4FrUoKJfTzM=; b=nd2W/4405SNxz5UykhX3+++L1gb3eWLHmvZ+zrsl49QawEFsye7G8PAkvtNa62vQXYJHimGw7Fit0SMYrijo82tJo965PTqQxuvdsy30P33ai9EW9T7w0UJ5QRrori1V3FW8DK9nst34fgY72BEG+wum/wrSGWAgIoCpCmEulPs= Received: from DB6PR0802MB2216.eurprd08.prod.outlook.com (2603:10a6:4:85::9) by DB6PR0801MB2069.eurprd08.prod.outlook.com (2603:10a6:4:7a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Mon, 20 Jul 2020 15:44:16 +0000 Received: from DB6PR0802MB2216.eurprd08.prod.outlook.com ([fe80::9d1d:207b:e89d:199d]) by DB6PR0802MB2216.eurprd08.prod.outlook.com ([fe80::9d1d:207b:e89d:199d%10]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 15:44:16 +0000 From: Honnappa Nagarahalli To: "thomas@monjalon.net" CC: "ferruh.yigit@intel.com" , "david.marchand@redhat.com" , "dev@dpdk.org" , Phil Yang , "techboard@dpdk.org" , nd , Ruifeng Wang , Honnappa Nagarahalli , nd Thread-Topic: Using C11 atomic semantic Thread-Index: AQHWXqs6hE19i/gXsUuIF3yyAWSByakQmaZw Date: Mon, 20 Jul 2020 15:44:16 +0000 Message-ID: References: <7124002.r8JxatOC3Q@thomas> In-Reply-To: <7124002.r8JxatOC3Q@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: edb4762a-bc90-4c58-81ed-8241f8f280e6.0 x-checkrecipientchecked: true Authentication-Results-Original: monjalon.net; dkim=none (message not signed) header.d=none; monjalon.net; dmarc=none action=none header.from=arm.com; x-originating-ip: [70.112.90.121] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 70f0579f-7792-4049-8df0-08d82cc3c6c3 x-ms-traffictypediagnostic: DB6PR0801MB2069:|HE1PR0802MB2347: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: He+p3Q6EEr6Fbw2/WXSbtqRKiDSiEU8MgJ1nAkh5wEvMyHdMDtUDbzuOO+/x3fwGCDcy02y/JqsQTxKkI3+n1rBEPBxUdK513z6pLwnJocU4vAzS6Wz1vEnFiAIWCpF9wplvgO4ARaanXgoqAomYqUWBQxugB7yNdjunAGRCsA4YnkN4SaS6QyJMtala/d5x73s/9RwSO1OYBz+J8Zjew4HJwkHUmb7bkSLR+PFA4YzxeJIfC5wzt/qaGjPW25ZUv29psmyHh3eLtgkqgoY93n6cQyF126n6NL+kbkN46gWkLIcKSjbIrYypygTn4JgNARfLeUsw5a1bfaiQlVoULj1s3tsPtDX21ENrzftCTxepdvYXwcJR/0fVhK5bUYgPWJRrGA8MTemdBdyqsEi5Sg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0802MB2216.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(136003)(39860400002)(366004)(396003)(376002)(6916009)(54906003)(316002)(71200400001)(9686003)(4326008)(186003)(26005)(66476007)(2906002)(76116006)(66446008)(64756008)(66556008)(66946007)(52536014)(55016002)(6506007)(8676002)(83380400001)(33656002)(966005)(5660300002)(478600001)(86362001)(8936002)(7696005)(53546011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: IPAX2G5cSW4wm31yzTXhd19TWkRoJinV6CAFlWLASQBqGEvUR/I7ZDJZ98/6N4dXt1RL98rSnK1+p/BdV6LdlUC3bXo5tiEzvY3nsofuTk3iGVV98pmiEOuVroQ7zcsiYWSccyy4RRZj7ormk82vJ8IuqcJvc/tn9W0mAxWN9p9LQSJFsv7/0PJIPjUaUXJ+HxjKC+3cogZHYD0We392JIMEZCJI9SJbcpZMWatsZoCEQGf3mwl39NW5jNg80cCr0Qe2X1Q0dfGB9IgHwHoSopyyYShBVoiq+z4g1bI/54iXypCE98NYnNnnq1uSed0aoNESTRVe4gx6A1QYwG2WZ9qAuklW5AJlSqHiSuJDKB5dp3fauNuCCc3mn4pbO/QAW8odqzYhzl2gneTl/P/GGZnit1VmSIOvEic/Pl/xQLnoYCR0iI3F6n+bVde+Vhc7hS3eQuaZYf8Bpe/WdNBntGhoaL6k+oH3KdW8D3BPg78= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2069 Original-Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none; monjalon.net; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT056.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(136003)(39860400002)(376002)(396003)(346002)(46966005)(316002)(5660300002)(36906005)(186003)(53546011)(7696005)(8936002)(8676002)(6506007)(86362001)(70206006)(70586007)(26005)(54906003)(33656002)(6862004)(81166007)(966005)(356005)(336012)(47076004)(82740400003)(478600001)(55016002)(4326008)(450100002)(52536014)(83380400001)(2906002)(9686003)(82310400002)(2690400003); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: d42c8e00-7071-4e19-82b6-08d82cc3c29c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: szHff5dB7r2Zo8E4VuEg0CyUm63TU2lWWp3WXK9Z2HR5sddK6v9r+gdtENS7OYZnxIcQYTPeRQ86yuw71gjE8f0sFx8LqVVedMFWcXg9jilJQBlyO7TnbdyTlF4qO40lBo97vePvAFYLTKViMdgLcYi5iMyGHI5Bw/32XqXYsYWRpCUWG0zrDfI9HAFvJu3tjTJYzrdt2V69vCBD3kZBjrDlkHmQlqoLE6/2Anv8VDL/lJrzEg+fhnRbFMWh6sHqJr8/pvJkqXJj66FjAk3Fg/Ni5vthnas4zZ/o5Crf8fa9udwhoo0kknrJDwkGT863mVQJluSlXYMKAOpLKZJa8UqmCewnuIkODChylfUiyjmXksAcDx1mUVlFs4QiNYEIRw/R1HhI0mc9KZMkX0bc9I+t4dJvP5Bd7PiOVvVVGakLCbSXTkYtirW31HBzwZwH9EeqHXNwH2xhR0thXniTk/LmnX7mbpmgP1GXimbk4/4KOkqR0b7BlSYOjv791jdJ X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 15:44:23.7015 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70f0579f-7792-4049-8df0-08d82cc3c6c3 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2347 Subject: Re: [dpdk-dev] Using C11 atomic semantic 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" +Ruifeng > -----Original Message----- > From: Thomas Monjalon > Sent: Monday, July 20, 2020 10:34 AM > To: Honnappa Nagarahalli > Cc: ferruh.yigit@intel.com; david.marchand@redhat.com; dev@dpdk.org; Phil > Yang ; techboard@dpdk.org > Subject: Using C11 atomic semantic >=20 > In the techboard of April 22, it has been decided to block patches using > rte_atomicNN_xx and rte_smp_*mb APIs, starting DPDK 20.08. > Meeting minutes: > http://mails.dpdk.org/archives/dev/2020-April/165143.html > Deprecation notice: > http://doc.dpdk.org/guides/rel_notes/deprecation.html >=20 > Some doc has been submitted to help understanding how to manage atomics: > http://doc > .dpdk.org/guides/prog_guide/writing_efficient_code.html#locks-and- > atomic-operations >=20 > Unfortunately the tool to check new code was merged last week: > http://git.dpdk.org/dpdk/commit/?id=3Df1602b4a86 >=20 > As a consequence, I propose to apply the "reject rule" starting DPDK 20.1= 1. As far as I know no patch with rte_atomic has gone in 20.08 so far. Are the= re any patches in RC2/RC3 that need rte_atomic APIs? >=20 > Can we make this rule better advertised with an announce message? Do you mean an email on dpdk-announce mailing list? > Are the current technical explanations enough? The documentation patch you referenced above covers most common cases peopl= e will encounter. Even the rte_ring/rte_stack algorithms work on the same p= rinciples. > If not, it would be wonderful to have a blog post explaining the details,= as > part of an announce. This is in the works. The plan is to send it to you soon and get it out alo= ng with the release. >=20