From patchwork Wed Aug 28 12:13:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1154371 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 46JPmX70Ypz9sDQ for ; Wed, 28 Aug 2019 22:14:04 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 1FE602C9E; Wed, 28 Aug 2019 12:14:02 +0000 (UTC) X-Original-To: ovs-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 A33AB2C95 for ; Wed, 28 Aug 2019 12:13:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id E193C8AC for ; Wed, 28 Aug 2019 12:13:49 +0000 (UTC) Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 41022882F2 for ; Wed, 28 Aug 2019 12:13:49 +0000 (UTC) Received: by mail-wm1-f70.google.com with SMTP id m26so653269wmc.3 for ; Wed, 28 Aug 2019 05:13:49 -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:subject:date:message-id:mime-version :content-transfer-encoding; bh=mLda0OkgYhOu3tJU0gcP9NeJnrHHHSnOBFKC914xCik=; b=SpLeQVkZwAJFVAwEz4FD0IBRJFnvFlhBoFAimMqa6jHSmN91KK3kV3HTkgRQTQkwLc WpRwZO9oBF/Cg8zK8yRQVsKFFJ7jHkYja5FmQ5WIXULLLOqpyp1+N/04dTDDtHyqG13f n4Hyfv/QXoBIrziy7r0TE6uJIrMFZ6ZK2ZfClUG4YWjpq83eaga4uXLa8S/p+SaHms8u He+LiB/+mwsy/XzHruU0X0PbV89RK9jZw6VriPS3fGnvPkpbKVMb2Dq6aM6Z84oM5py3 YvitcYnKJ7eRiwWX9fmVvFkpLXyER15dIfFY8doZZaaIKXUDgisB2MJO4Sc5whpitYj9 Xi1A== X-Gm-Message-State: APjAAAXSCNL9by4wWkAQ/G5Vv+BJWnbN7CVxcnn762ycNudTBpacL0Zh R0yVK8yGlKYAsWGKE0gijdpd1HiObyaEnLRB8RQYyOhW8RNTI8bAubsFOlWp1FVPETFyYa4y5m5 P1JhjQmeXXK7mzwNw6w== X-Received: by 2002:a5d:4211:: with SMTP id n17mr3927293wrq.137.1566994427764; Wed, 28 Aug 2019 05:13:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkngzVkimIqeQX1wiZjJupaRkb8FFaSkiUhEaVChJGJf+9Wk+1TS0QHUG+OOgHVLBe5whijw== X-Received: by 2002:a5d:4211:: with SMTP id n17mr3927271wrq.137.1566994427524; Wed, 28 Aug 2019 05:13:47 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id n9sm2924661wrp.54.2019.08.28.05.13.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 05:13:46 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Wed, 28 Aug 2019 14:13:35 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 v4 ovn 0/2] Add rate limiting support for controller_events 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: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Introduce the capability to associate a meter to each controller event type in order to not overload the pinctrl thread under heavy load. For each event type we need to define a naming convention for the related meter: - empty_lb_backends: event-elb Changes since v3: - rebase on top of 'add empty_lb controller_event for logical router pipeline' https://patchwork.ozlabs.org/cover/1153918/ - update documentation - added a unit test for the meter option in the "action parsing" Changes since v2: - fold patch 'Repair memory leak for OVN controller events' - fix memory leak of meter string Changes since v1: - fix subject Lorenzo Bianconi (2): OVN: add meter support to trigger_event action OVN: northd: add rate limiting support for SB controller events include/ovn/actions.h | 1 + lib/actions.c | 43 ++++++++++++++++++++++---- northd/ovn-northd.8.xml | 7 +++-- northd/ovn-northd.c | 68 +++++++++++++++++++++++++++++------------ ovn-nb.xml | 8 +++++ ovn-sb.xml | 5 ++- tests/ovn.at | 6 +++- 7 files changed, 109 insertions(+), 29 deletions(-)