From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id C0D411B2DE for ; Thu, 16 Nov 2017 10:32:14 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id b189so8004309wmd.5 for ; Thu, 16 Nov 2017 01:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dBZfjg8vMJQFYF62CyQ0fr1bUTU+ztEOEeba5IVb1qQ=; b=QLOM8X6nXW0jOabgVTsEOEXGbQg1n0qam/ysaMcGMLwuWD2UI2EiMSzOGSVwSGJOvB n5sz9Mnl9KtS9sRzphT6NlVZ5p3VfEiHP1+0SATw7C9+FyRQ8gncjbrrKzmt3axclXOi gwXDmShSGTmrcI+v/b/zvKOjy5q50kBuzG1l0Q9ASAZUSmf6u5NovzMgyqIEXKW6GBiU YEVUBlJDWjhWalZ6aKPXCpF7IJIAz7/RmJaw1UMbXZxdPzK37q0u3ECSuSMsHnG89Hfw EjvqNPyKkY7AQTzUP1aY0E4TilZdndcKj34dLrrH0Q0jRBEmKQDBSoG1iGpQC9mDXCWp k+FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dBZfjg8vMJQFYF62CyQ0fr1bUTU+ztEOEeba5IVb1qQ=; b=r/lYKkdrgXo8hLtyqHFyK68JjrJK1dYOhyGr4Iv6EK84nWDq8SfQBfzQbQT9Tp4VLy Syx1aJgS4iKLswiJPHIR88lZYE7MagzZeHCgmGIuDtEsnsqAhGMXHNEILMMIV3ex688R uhSA8oSuyPJw91hh1DOsBTqjD98Ygx6psU0MoHF+zathqdHwqZBDT8yJPcVGCdpOtstW /eIyYETZb5fn7FNhbR+Z8j1P4GfZMDN8oMOcsPrv/muYmRGUg3R94+ZaFbf58WLB9j1J FqBGtETrCLwUcGJ5RDacmqTlGrxmeiEcG65F2CNDhr4vNNR89D74cd+rhQN3zGqgC1Li VeqQ== X-Gm-Message-State: AJaThX6aS2Aj4T8ql8+GvVnhk1pXQh1A+q/l5EQwKKpjoRCmonaW0DT8 W7S4uKIew2vlREohagyiCfc= X-Google-Smtp-Source: AGs4zMYa6d+KOt0QdDflaabb+WL2L2LCxE4hBtXOUVPqH6dVKgvWx3pDaluky3KbomRsRBiOvjM98g== X-Received: by 10.80.225.138 with SMTP id k10mr1830053edl.216.1510824734586; Thu, 16 Nov 2017 01:32:14 -0800 (PST) Received: from [10.61.0.167] (bba193485.alshamil.net.ae. [217.165.96.191]) by smtp.gmail.com with ESMTPSA id b17sm703705edj.21.2017.11.16.01.32.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 01:32:14 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Ilya Matveychikov In-Reply-To: Date: Thu, 16 Nov 2017 13:32:13 +0400 Cc: Olivier MATZ , Konstantin Ananyev , "dev@dpdk.org" Content-Transfer-Encoding: 7bit Message-Id: <5C1B1043-3444-4750-A7AB-D96403C61E42@gmail.com> References: <20171115091413.27119-1-hhaim@cisco.com> <1D98684F-B8A9-4037-8534-0D4E3A1FD34C@gmail.com> <20171115173058.mrkrv3usbl5sfw3h@platinum> <2fa9a7806c9e447995d6017c6def9894@XCH-RTP-017.cisco.com> <20171116084112.ockgmxnxews7coie@platinum> To: "Hanoch Haim (hhaim)" X-Mailer: Apple Mail (2.3273) Subject: Re: [dpdk-dev] [PATCH v3] mbuf: cleanup rte_pktmbuf_lastseg(), fix atomic usage 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: Thu, 16 Nov 2017 09:32:14 -0000 > On Nov 16, 2017, at 1:06 PM, Hanoch Haim (hhaim) wrote: > > Understood > > rte_mbuf_refcnt_update_blind() > > should be good., it will take care the RTE_MBUF_REFCNT_ATOMIC > Why guys not to add just __rte_mbuf_refcnt_update() as a wrapper over rte_atomic16_add_return() and use it in inside rte_mbuf_refcnt_update() and rte_pktmbuf_prefree_seg() as well?