From patchwork Thu May 31 10:41:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Sitnicki X-Patchwork-Id: 923302 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40xPC50wKFz9rxs for ; Thu, 31 May 2018 20:41:19 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 42BD8C97; Thu, 31 May 2018 10:41:17 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id A3C7AC96 for ; Thu, 31 May 2018 10:41:15 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 1271771B for ; Thu, 31 May 2018 10:41:14 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id a67-v6so52934724wmf.3 for ; Thu, 31 May 2018 03:41:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DNO10cpFsVwD5goYxqYcvZo+ryohCpAWNkV1WRpS4Bo=; b=NoE4of5/oYtUMHgCflovaAUNi4gDxcZkvU1jmrke+es6YfRpV3d2SSWVS2zf14D0HN XUO2UNv5JxS8tpWE054j7ry/qG+pwlMXUuuaTE0kgM7OnQXWy3EXznw1XeSuFYWWTIlC i8jrmUNACeb3zNkRMzY+il13i1BMriG/8BlqwaKVJu7IK+/P6amPMF4mzszMxFQ1hACP pOZg4jYXsmL2A9Q/MEUnMGmBmVzUJomKXIFe0o7kJ0MiaYbOgXMg9UBg/RQ69jiOI/dT stD1wdb8262ujs+KT7DcoqzPnR+vDT7AZTWDrATKCrMH3riAqpTFc+LIUCcQJ5AokJdD Nbpg== X-Gm-Message-State: ALKqPwfdFEOTWC9XqzbQVXXPm+hXdSgrMx1R4IsjvUaEtPk00gw2ysXF 8N1XVtKlkhYz39kRwKoFXei/do/neEI= X-Google-Smtp-Source: ADUXVKJrHo0l4jz/6D58I6/Dy43F8v9HvkrTiy8CkQxa4B0mkPeWcNEJzXkaf27KyFJq267OsWkdMQ== X-Received: by 2002:a1c:eecd:: with SMTP id j74-v6mr4317028wmi.137.1527763273470; Thu, 31 May 2018 03:41:13 -0700 (PDT) Received: from redhat.com (red-hat-inc.vlan404.asr1.mad1.gblx.net. [64.215.113.190]) by smtp.gmail.com with ESMTPSA id e80-v6sm1682867wmd.1.2018.05.31.03.41.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 03:41:12 -0700 (PDT) From: Jakub Sitnicki To: dev@openvswitch.org Date: Thu, 31 May 2018 12:41:09 +0200 Message-Id: <20180531104111.15790-1-jkbs@redhat.com> X-Mailer: git-send-email 2.14.3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v2 0/2] ovn: Check for effects of incremental processing X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org (This patch set depends on v2 of the "ovn-controller incremental processing" patch set [1].) At the moment we lack tests that confirm that incremental logical flow processing is working as expected. This patch set aims to address this. The approach to testing is, in short, to observe if we hit the coverage counter for full logical processing routine in ovn-controller (lflow_run) while perfoming various operations, like adding a logical switch port. [1] https://patchwork.ozlabs.org/project/openvswitch/list/?series=46497 Changes from v1 to v2: - Drop the merged patch that introduced a coverage counter for lflow_run(). - Rename the proposed new coverage command from 'read-count' to 'read-counter'. - Read the total count for a coverage counter while holding the mutex. - Cover the newly added coverage command in the man page. - Drop the changes that test for full logical flow processing when handling packet-ins. Plan is to address this in a separate test in subsequent patches. - Add a new test that checks which operations commly used by CMS trigger full logical flow processing in the ovn-controller. Jakub Sitnicki (2): coverage: Add command for reading counter value ovn: Test for full logical flow processing in ovn-controller lib/coverage-unixctl.man | 2 + lib/coverage.c | 43 +++++++ tests/automake.mk | 3 +- tests/ovn-performance.at | 287 +++++++++++++++++++++++++++++++++++++++++++++++ tests/testsuite.at | 1 + 5 files changed, 335 insertions(+), 1 deletion(-) create mode 100644 tests/ovn-performance.at --- 2.14.3