From patchwork Tue Nov 22 03:49:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Numan Siddique X-Patchwork-Id: 1707637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NGVcs6wr7z23nR for ; Tue, 22 Nov 2022 14:49:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B5BD160F91; Tue, 22 Nov 2022 03:49:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B5BD160F91 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F0aJwmXTBQdy; Tue, 22 Nov 2022 03:49:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 04CAA60B57; Tue, 22 Nov 2022 03:49:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 04CAA60B57 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C4EAFC0032; Tue, 22 Nov 2022 03:49:27 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id A9BF2C002D for ; Tue, 22 Nov 2022 03:49:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5C0B160F8C for ; Tue, 22 Nov 2022 03:49:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5C0B160F8C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fIy9XNWpAT1S for ; Tue, 22 Nov 2022 03:49:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5F9EE60B57 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by smtp3.osuosl.org (Postfix) with ESMTPS id 5F9EE60B57 for ; Tue, 22 Nov 2022 03:49:25 +0000 (UTC) Received: (Authenticated sender: numans@ovn.org) by mail.gandi.net (Postfix) with ESMTPSA id 12EA71BF203; Tue, 22 Nov 2022 03:49:21 +0000 (UTC) From: numans@ovn.org To: dev@openvswitch.org Date: Mon, 21 Nov 2022 22:49:08 -0500 Message-Id: <20221122034908.1973726-1-numans@ovn.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovn v4 0/3] northd IP for address sets 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: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" From: Numan Siddique This patch series adds incremental processing of address sets in ovn-northd. v3 -> v4 ------ - Addressed review comments from Han. Removed the noop handler for en_northd input to the sync_to_sb_addr_set engine node. - Added a new patch - p1 to the series. v2 -> v3 ------ - Addressed the review comments from Mark Michelson in p2 - Instead of destroying 'ds', clear it in each loop iteration. v1 -> v2 ------- - Added the test case in ovn-northd.at - Full recompute function of address sets will also use mutate instead of setting all the addresses of the address set. Numan Siddique (3): Enhance the unixctl command inc-engine/show-stats northd IP: Add a new engine node 'en_sync_to_sb' to sync SB tables. northd: Add I-P for syncing SB address sets. controller/ovn-controller.8.xml | 10 + lib/inc-proc-eng.c | 49 +++- lib/ovn-util.c | 30 +++ lib/ovn-util.h | 3 + northd/automake.mk | 4 + northd/en-northd-output.c | 58 +++++ northd/en-northd-output.h | 17 ++ northd/en-northd.c | 4 - northd/en-sync-sb.c | 405 ++++++++++++++++++++++++++++++++ northd/en-sync-sb.h | 19 ++ northd/inc-proc-northd.c | 32 ++- northd/northd.c | 173 +------------- northd/northd.h | 3 +- northd/ovn-northd.8.xml | 34 +++ northd/ovn-northd.c | 2 + tests/ovn-northd.at | 102 ++++++++ 16 files changed, 761 insertions(+), 184 deletions(-) create mode 100644 northd/en-northd-output.c create mode 100644 northd/en-northd-output.h create mode 100644 northd/en-sync-sb.c create mode 100644 northd/en-sync-sb.h