From patchwork Tue Nov 15 15:18:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Numan Siddique X-Patchwork-Id: 1704133 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=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4NBVDw2hTkz23lt for ; Wed, 16 Nov 2022 02:18:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9CB84409E2; Tue, 15 Nov 2022 15:18:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9CB84409E2 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B_4RlEo0Wh5K; Tue, 15 Nov 2022 15:18:20 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id D913A4017B; Tue, 15 Nov 2022 15:18:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org D913A4017B Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9BD7FC0033; Tue, 15 Nov 2022 15:18:19 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2E3E9C002D for ; Tue, 15 Nov 2022 15:18:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0A088401FB for ; Tue, 15 Nov 2022 15:18:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0A088401FB X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oRqIi4v2cc2h for ; Tue, 15 Nov 2022 15:18:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 219134017B Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by smtp2.osuosl.org (Postfix) with ESMTPS id 219134017B for ; Tue, 15 Nov 2022 15:18:16 +0000 (UTC) Received: (Authenticated sender: numans@ovn.org) by mail.gandi.net (Postfix) with ESMTPSA id 3F75F24000E; Tue, 15 Nov 2022 15:18:12 +0000 (UTC) From: numans@ovn.org To: dev@openvswitch.org Date: Tue, 15 Nov 2022 10:18:01 -0500 Message-Id: <20221115151801.283473-1-numans@ovn.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovn v3 0/2] 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. 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 (2): northd IP: Add a new engine node 'en_sb_sync' to sync SB tables. northd: Add I-P for syncing SB address sets. lib/ovn-util.c | 30 +++ lib/ovn-util.h | 3 + northd/automake.mk | 4 + northd/en-northd-output.c | 57 ++++++ northd/en-northd-output.h | 17 ++ northd/en-sb-sync.c | 402 ++++++++++++++++++++++++++++++++++++++ northd/en-sb-sync.h | 20 ++ northd/inc-proc-northd.c | 42 +++- northd/northd.c | 173 +--------------- northd/northd.h | 1 + tests/ovn-northd.at | 52 +++++ 11 files changed, 636 insertions(+), 165 deletions(-) create mode 100644 northd/en-northd-output.c create mode 100644 northd/en-northd-output.h create mode 100644 northd/en-sb-sync.c create mode 100644 northd/en-sb-sync.h