From patchwork Mon Nov 18 02:45:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yanqin Wei X-Patchwork-Id: 1196495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47GYGl6fwVz9sPj for ; Mon, 18 Nov 2019 13:45:34 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 68FDC86235; Mon, 18 Nov 2019 02:45:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nka09kptuwWY; Mon, 18 Nov 2019 02:45:30 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id DFA0386239; Mon, 18 Nov 2019 02:45:29 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id ACCEBC0881; Mon, 18 Nov 2019 02:45:29 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7F0EBC07AC; Mon, 18 Nov 2019 02:45:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6B10A878B8; Mon, 18 Nov 2019 02:45:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fIVx9baNwZK2; Mon, 18 Nov 2019 02:45:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by hemlock.osuosl.org (Postfix) with ESMTP id 8FF6B878AF; Mon, 18 Nov 2019 02:45:27 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B55091FB; Sun, 17 Nov 2019 18:45:26 -0800 (PST) Received: from net-arm-thunderx2-03.shanghai.arm.com (net-arm-thunderx2-03.shanghai.arm.com [10.169.40.67]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BBC353F6C4; Sun, 17 Nov 2019 18:45:24 -0800 (PST) From: Yanqin Wei To: dev@openvswitch.org, ovs-dev@openvswitch.org Date: Mon, 18 Nov 2019 10:45:17 +0800 Message-Id: <20191118024519.11367-1-Yanqin.Wei@arm.com> X-Mailer: git-send-email 2.17.1 Cc: Ola.Liljedahl@arm.com, nd@arm.com, Gavin.Hu@arm.com Subject: [ovs-dev] [PATCH v1 0/2] improve cmap read-write concurrency X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" 1. add thread fence to ensure hash setting safe. 2. make reader not blocked by writer. Yanqin Wei (2): [ovs-dev] [PATCH 1/2] cmap: add thread fence for slot update [ovs-dev] [PATCH 2/2] cmap: non-blocking cmap lookup lib/cmap.c | 159 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 103 insertions(+), 56 deletions(-)