From patchwork Tue Jul 30 21:52:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1966770 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gXtpXoJm; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WYTVn6gFcz1ybb for ; Wed, 31 Jul 2024 07:53:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 621E940BAA; Tue, 30 Jul 2024 21:53:03 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id AjodYAqDIGBT; Tue, 30 Jul 2024 21:53:01 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 073D8400E2 Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gXtpXoJm Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 073D8400E2; Tue, 30 Jul 2024 21:53:01 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id B7814C002B; Tue, 30 Jul 2024 21:53:00 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 597D4C002A for ; Tue, 30 Jul 2024 21:52:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 373D68131E for ; Tue, 30 Jul 2024 21:52:59 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id XNlnxyzGi_Ej for ; Tue, 30 Jul 2024 21:52:58 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=lorenzo.bianconi@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 19E498131A Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 19E498131A Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gXtpXoJm Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 19E498131A for ; Tue, 30 Jul 2024 21:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722376376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=abklit7fLDwDuy4pq1G+pvsb8jzrNzlM1p4zgyBu2VA=; b=gXtpXoJmQaR6C/JVD4u0MtT0g7UdfVxrbUv+qGABfJj1Jfm7kblXMiIjwCWLicc188flID lJFN86TioPUFh1qC1gw2ks+n8r4QutcFZBfOTt3tcDJe1Ow6a2wLTvSGrEo87qFrShGFcv buHVhMqSrHLA+7EXQrzIY4GjYkw4gOQ= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-602-dvll-Eu2O_iJVqkjMeBeuw-1; Tue, 30 Jul 2024 17:52:55 -0400 X-MC-Unique: dvll-Eu2O_iJVqkjMeBeuw-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42809eb7b99so1253915e9.0 for ; Tue, 30 Jul 2024 14:52:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722376374; x=1722981174; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=abklit7fLDwDuy4pq1G+pvsb8jzrNzlM1p4zgyBu2VA=; b=bL/PnIJ9BiT2ueDGVfNKbAkalpv62felo+NtPPhU6ZLLCNGh0HnfLCf45jPWXGgWpv wjx4YyX6td9zpcYnsd3Fr561R+aaCWTScbx6H41czpb1oHCbwckstmthaGlDMiTVK50B 2WVmb+sjtr00z5BkfnO68AV3ZeWJnc19un19jEigeKJOzl0Dl0GKIcYnJisKX2QzMDvR jjPmMS4oird9faLJ1ShKsrZapc99vQX1RPewG1YUr1DwHWAC72u32xmBd/q3lmN4wVDI ItdGSBDheOg9P8GLPUZIjCaZivAqKDfw9V5/FspTBbmw0k6rbmm0JXyWpTR5Dj0WzbxP p88A== X-Gm-Message-State: AOJu0Yw+WQhT6TgJxe4mizsiqn9ifVNwGVuWm/9aKIhh6JKs1PPWkHH2 ydtrPlC2hw/29yhvq0gJMAo2XD3zUs5LCaC6Wwomjt1cHSSZP3ElmCwPL5TuWcqcROPcEV9TSeh Z+nipBfQyDOw5N9+Immyk2ZFkGxDZ8nf2ACkceYFcYvdpDBG3ZYYcNUJcAS2fQce5Is/EXoOMqK qH/iK9UrlaXmqULTG3JRqewvsnjV8B13LFNX8KcfDGVt9w7G10/A== X-Received: by 2002:a05:600c:3b17:b0:428:9a1:f226 with SMTP id 5b1f17b1804b1-428243e1b22mr21773365e9.1.1722376373821; Tue, 30 Jul 2024 14:52:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEh7Xw7tb2Ya/o0Nexfx5iAML2bx4gGfkpbYCEusxRcLp98/IU/41OOnZDjclRi4Bl7lD3y7A== X-Received: by 2002:a05:600c:3b17:b0:428:9a1:f226 with SMTP id 5b1f17b1804b1-428243e1b22mr21773225e9.1.1722376373397; Tue, 30 Jul 2024 14:52:53 -0700 (PDT) Received: from localhost (net-188-152-77-192.cust.dsl.teletu.it. [188.152.77.192]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427f935946dsm276488985e9.4.2024.07.30.14.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jul 2024 14:52:53 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Tue, 30 Jul 2024 23:52:43 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v8 ovn 0/3] Introduce ECMP_nexthop monitor in ovn-controller X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dceara@redhat.com Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Reported-at: https://issues.redhat.com/browse/FDP-56 Changes since v7: - rebase on top of ovn main branch and fix conflicts - rebase on top of https://patchwork.ozlabs.org/project/ovn/list/?series=417252 Changes since v6: - rebase on top of ovn main branch - reduce loops in build_ecmp_nexthop_table Changes since v5: - rebase on top of https://patchwork.ozlabs.org/project/ovn/list/?series=416289 Changes since v4: - rebase on top of https://patchwork.ozlabs.org/project/ovn/list/?series=414052 Changes since v3: - rebase on top of https://patchwork.ozlabs.org/project/ovn/list/?series=409660 - use bitmap for id tracking in ofctrl.c - use simap for id tracking in northd.c - cosmetics Changes since v2: - rebase on top of https://patchwork.ozlabs.org/project/ovn/list/?series=409660 in order to use new bfd and static_routes maps - add IP northd node for ecmp_nexthop processing Changes since v1: - add ID column in ECMP_Nexthop table in SB db - remove nexthop-id in logical_router_static_route option column Lorenzo Bianconi (3): northd: Introduce ECMP_Nexthop table in SB db. northd: Add nexhop id in ct_label.label. ofctrl: Introduce ecmp_nexthop_monitor. controller/ofctrl.c | 54 +++++++++++++++++++ controller/ofctrl.h | 2 + controller/ovn-controller.c | 2 + northd/en-lflow.c | 3 ++ northd/en-northd.c | 35 ++++++++++++ northd/en-northd.h | 4 ++ northd/inc-proc-northd.c | 8 ++- northd/northd.c | 105 ++++++++++++++++++++++++++++++++---- northd/northd.h | 11 ++++ ovn-sb.ovsschema | 18 ++++++- ovn-sb.xml | 31 +++++++++++ tests/ovn-northd.at | 4 ++ tests/ovn.at | 4 +- tests/system-ovn.at | 79 +++++++++++++++++---------- 14 files changed, 316 insertions(+), 44 deletions(-)