From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 0FC5C568D for ; Thu, 21 Jul 2016 23:26:52 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id f65so35518299wmi.0 for ; Thu, 21 Jul 2016 14:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=73qYTYzau79O1/V9hByIjMgO8QU3d9MpiPT5mxiRZLc=; b=Hxtlwjg4K6hr+9HbRON5xoMQ8HualjSclpdN3LryQC74EMoyR/bgMAJOjlHxLtCdCJ ZsFB7zLiXeHg3rzdR1sGoIwUh0suItnhscevdNqZu2buD7oGwL0r+tPdAZE/s0ciaLXj ah2BIXeNYgu6g1ZTVQyYo+xnJ1d9odpe+4pG5YpxyOQY67NpFjz2nLdUBLGcBSiDN79P 0vU4mIhkbzKgSQAcMqvUFaAOrhjO0/a2WSuICTvKutBlyJ+f6p4FcgHpK+wum7X3QOwg Nwr5FGbTc84L+OPRRDCLxSkCkOfTcQvkkPYjMItgq3T5SiRidROPRdTldbh5qWvO69OK KSBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=73qYTYzau79O1/V9hByIjMgO8QU3d9MpiPT5mxiRZLc=; b=mLNA/pq/dm1CnbuDodRibSYFZAhIxW4UwjAjZsnbSstiQ+067SZ74+GnL9eErUOVMe juo5lM44LkxVJu79HGam6x4qe7pf/hDVxXVKzywwbMMiXGEwaE6WkhZeMveiH0dWEynS nOcVrLiyuKND7VEtnqXR5OGg5bRMWeErXjBxJxSxOQqoBqVLaUbjHbWu1RKrzu1H7W6j bNuQVC3yrrDp4E+ZtL/UnO1ZqbNPxEWCRiObEpPyjGRHcJmIWu2oJlVVCtd6IB5QsUeU ImZTaQ3OumorsxSYHTdSVyZFiLFu8YccHcZ47OnVX6BG53FLBct8I1aKv4VHiVd7JilD 8BWQ== X-Gm-Message-State: ALyK8tICR9p571OuywgnuJ0N7sj4sjxY2KVg1FQh0cOLJfcHZeclo99ixDDYF8hLAZcfdmu8 X-Received: by 10.28.63.8 with SMTP id m8mr21683902wma.88.1469136411818; Thu, 21 Jul 2016 14:26:51 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id x203sm7347339wmg.0.2016.07.21.14.26.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 14:26:51 -0700 (PDT) From: Thomas Monjalon To: Juhamatti Kuusisaari Cc: dev@dpdk.org, "Ananyev, Konstantin" Date: Thu, 21 Jul 2016 23:26:50 +0200 Message-ID: <14017551.U6D1dIIx0P@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB97725836B7E32F@irsmsx105.ger.corp.intel.com> References: <20160715043951.32040-1-juhamatti.kuusisaari@coriant.com> <2601191342CEEE43887BDE71AB97725836B7E32F@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] lib: change rte_ring dequeue to guarantee ordering before tail update X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 21:26:52 -0000 > > Consumer queue dequeuing must be guaranteed to be done fully before the tail is updated. This is not guaranteed with a read barrier, > > changed to a write barrier just before tail update which in practice guarantees correct order of reads and writes. > > > > Signed-off-by: Juhamatti Kuusisaari > > Acked-by: Konstantin Ananyev Applied, thanks