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 64F3BA0093; Thu, 21 May 2020 06:56:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A90E1C22A; Thu, 21 May 2020 06:56:55 +0200 (CEST) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 99ED31C211 for ; Thu, 21 May 2020 06:56:53 +0200 (CEST) Received: by mail-io1-f65.google.com with SMTP id x5so6009107ioh.6 for ; Wed, 20 May 2020 21:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PEVVR96I2RkrZXwdzCeM6KsU7tC0lTaaNPzu9nuH03s=; b=UN54rCnbYnqMy41Ppy1lDMTGa+B6uDvaOXh+GP6wElhLNRJTKG4eyNQvKMhBUaDE8C l6+MozesgxCt9tX98SsOrJBzsKXUH9YRiIXDKcQLTEvc3275Q79J+oNyQQoAtn2QwiIH Ve4Tm2MptrvIkDTC3vA+9PE1+u5Xek/hW2CLrTNGmSTQqMm2B3pJiBM732Z63DJsW6b7 hsNk+amBI6MFTLOGBjYfX2or+IX77bZ5Sy56Si7GV2sl5nBbNRnIv9MzWz/bIwx3ysS9 TAi3NNJL6fOybjvUktxDytTBEXrEftbplUWvmP3EJVGILFIkscu4pYhHunAY7rukdzJ7 Gr0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PEVVR96I2RkrZXwdzCeM6KsU7tC0lTaaNPzu9nuH03s=; b=VuPcNxBGYoiQl5ti9pwlIJYxP6v2JCRHQKlkaiK55G1e9G3Ls+/Jykdgcler5jLtdQ auenPDVJT8caoYgVX9VDOcFltaPb9L5a89v1IvkXIeD4HoRy0f4LFozfdcLOF/0gtdWc LkpP49qxzSufhlSVJCyKpN677+szA/tGt9S2kF0DsEGhO+akf35umu8BcjVejJU8mqQE nLp/Bq8eQ38d0kodA59KME0S7fKBh4k2vGaSbK1vfiSMVnYWswi9vGVJpmn+WQjZBkqG Of8G6uImItWRaJ0AZXhJlNosGr/Duk0tkLVrjIWW+SPW8XsyDWrp/ZbCldclldOgwZnw /nLQ== X-Gm-Message-State: AOAM532BsOifb8lJi4eGNV5txwPYNqpBD6n0uOngM71eBESvkcP6lurg Yf9v0pvqvwg2d3y7b+kW8cUncPBfcO5hD1XVuHo= X-Google-Smtp-Source: ABdhPJwFgJkVOkiUmP5QMpKxDAojMjKL1ED1XFjPrepnvCe/KY7M+zkkqy5zlU1m8KYFCgT9ru7vkgSN4m1qwyn5rrE= X-Received: by 2002:a5e:c70b:: with SMTP id f11mr6092302iop.94.1590037012705; Wed, 20 May 2020 21:56:52 -0700 (PDT) MIME-Version: 1.0 References: <1588835193-27550-1-git-send-email-phil.yang@arm.com> In-Reply-To: <1588835193-27550-1-git-send-email-phil.yang@arm.com> From: Jerin Jacob Date: Thu, 21 May 2020 10:26:36 +0530 Message-ID: To: Phil Yang Cc: dpdk-dev , "Richardson, Bruce" , Ferruh Yigit , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Kevin Traynor , "Ananyev, Konstantin" , Maxime Coquelin , Olivier Matz , Stephen Hemminger , Thomas Monjalon , "Ruifeng Wang (Arm Technology China)" , nd Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] doc: announce adoption of C11 atomic operations semantics 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" On Thu, May 7, 2020 at 12:38 PM Phil Yang wrote: > > From: Honnappa Nagarahalli > > As agreed in the DPDK tech board [1], after 20.05 release, patches must > use C11 atomic operations semantics with the help of wrappers. > > [1] http://mails.dpdk.org/archives/dev/2020-April/165143.html > > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Phil Yang > Reviewed-by: Ruifeng Wang Acked-by: Jerin Jacob > --- > doc/guides/rel_notes/deprecation.rst | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst > index 20aa745..208708d 100644 > --- a/doc/guides/rel_notes/deprecation.rst > +++ b/doc/guides/rel_notes/deprecation.rst > @@ -113,3 +113,15 @@ Deprecation Notices > Python 2 support will be completely removed in 20.11. > In 20.08, explicit deprecation warnings will be displayed when running > scripts with Python 2. > + > +* rte_atomicNN_xxx: These APIs do not take memory order parameter. This does > + not allow for writing optimized code for all the CPU architectures supported > + in DPDK. DPDK will adopt C11 atomic operations semantics and provide wrappers > + using C11 atomic built-ins. These wrappers must be used for patches that > + need to be merged in 20.08 onwards. > + > +* rte_smp_*mb: These APIs provide full barrier functionality. However, many > + use cases do not require full barriers. To support such use cases, DPDK will > + adopt C11 barrier semantics and provide wrappers using C11 atomic built-ins. > + These wrappers must be used for patches that need to be merged in 20.08 > + onwards. > -- > 2.7.4 >