From patchwork Fri Jul 7 05:51:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Numan Siddique X-Patchwork-Id: 1804602 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::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::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 4Qy2bd1lnLz20b8 for ; Fri, 7 Jul 2023 15:52:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A8D0B6114A; Fri, 7 Jul 2023 05:52:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A8D0B6114A 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 qViVCJcIsng6; Fri, 7 Jul 2023 05:52:09 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id DD08660AFD; Fri, 7 Jul 2023 05:52:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org DD08660AFD Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id BBE23C0072; Fri, 7 Jul 2023 05:52:08 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 37FEDC0032 for ; Fri, 7 Jul 2023 05:52:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 09430418BC for ; Fri, 7 Jul 2023 05:52:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 09430418BC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a46T1yIDa7fd for ; Fri, 7 Jul 2023 05:52:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 66CAF418B7 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by smtp4.osuosl.org (Postfix) with ESMTPS id 66CAF418B7 for ; Fri, 7 Jul 2023 05:52:05 +0000 (UTC) X-GND-Sasl: numans@ovn.org X-GND-Sasl: numans@ovn.org Received: by mail.gandi.net (Postfix) with ESMTPSA id DEA271C0008; Fri, 7 Jul 2023 05:52:01 +0000 (UTC) From: numans@ovn.org To: dev@openvswitch.org Date: Fri, 7 Jul 2023 11:21:47 +0530 Message-Id: <20230707055147.961462-1-numans@ovn.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovn v2 0/8] northd: I-P for load balancer and lb groups 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 the support to handle load balancer and load balancer group changes incrementally in the "northd" engine node. "flow" engine node doesn't support I-P yet and falls back to full recompute. Note: I still need to do some scale testing and measure the improvements. I'll first attempt adding I-P in the "flow" engine node before attempting some scale tests. Neverthless this patch series is good enough for reviews. v1 -> v2 -------- * Resolved the conflicts and rebased * Fixed a bug in p6. Numan Siddique (8): northd I-P: Sync SB load balancers in a separate engine node. northd: Add a new engine node - northd_lb_data. northd: Add initial I-P for load balancer and load balancer groups northd: Refactor the 'northd' node code which handles logical switch changes. northd: Handle load balancer changes for a logical switch. northd: Handle load balancer group changes for a logical switch. northd: Sync SB Port bindings NAT column in a separate engine node. northd: Handle load balancer changes for a logical router. lib/lb.c | 356 ++++++- lib/lb.h | 113 ++- northd/automake.mk | 2 + northd/en-lflow.c | 8 +- northd/en-northd-lb-data.c | 308 ++++++ northd/en-northd-lb-data.h | 56 ++ northd/en-northd.c | 57 +- northd/en-northd.h | 2 + northd/en-sync-sb.c | 60 ++ northd/en-sync-sb.h | 9 + northd/inc-proc-northd.c | 27 +- northd/northd.c | 1858 +++++++++++++++++++++++++----------- northd/northd.h | 44 +- tests/ovn-northd.at | 131 +++ 14 files changed, 2354 insertions(+), 677 deletions(-) create mode 100644 northd/en-northd-lb-data.c create mode 100644 northd/en-northd-lb-data.h