From patchwork Fri Aug 2 13:24:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1968366 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=FUQbVcAf; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wb64c230rz1yZl for ; Fri, 2 Aug 2024 23:24:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 63CB460AAD; Fri, 2 Aug 2024 13:24:30 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id yvPT-1ssPsYX; Fri, 2 Aug 2024 13:24:29 +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 smtp3.osuosl.org 423A76078F Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FUQbVcAf Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 423A76078F; Fri, 2 Aug 2024 13:24:29 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0A771C002B; Fri, 2 Aug 2024 13:24:29 +0000 (UTC) X-Original-To: ovs-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 E9134C002A for ; Fri, 2 Aug 2024 13:24:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DE26E607A9 for ; Fri, 2 Aug 2024 13:24:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id qHmbV2xlR9zs for ; Fri, 2 Aug 2024 13:24:27 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=lorenzo.bianconi@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org D4E9C6078F Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D4E9C6078F Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id D4E9C6078F for ; Fri, 2 Aug 2024 13:24:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722605065; 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=zak1PILmrworcWklE6LgoWBp7Y1GSeUhIfOyABXdn0E=; b=FUQbVcAfVzEsFZabIcGLakVk3ggFrrTi4ASHKe6akjzS7Tl8ViIxqwsp3iWuwMmd8ATnke KwgbIwnap34mNCKkTKYG9bQwwEgGFKUq4UD4cwp2a0/mzzzmRBq4mab5mqyCWR6gJcTtPv Ar3XPViMhsOLPIoaZdYdMeOar+ZBros= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-523-JYJ--MP8M8qwAYhhU4I_BQ-1; Fri, 02 Aug 2024 09:24:24 -0400 X-MC-Unique: JYJ--MP8M8qwAYhhU4I_BQ-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-36871eb0a8eso4091202f8f.3 for ; Fri, 02 Aug 2024 06:24:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722605063; x=1723209863; 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=zak1PILmrworcWklE6LgoWBp7Y1GSeUhIfOyABXdn0E=; b=AvLegoHuqAc25/4xIrjAvUxbTxxgtCrnPwyPB+2lvZdkwF/AnFw1ReiJvY2dBPvx9p D5yAHPddmclxnyGdPTJYho3TLUN8CI45Q/3MvYxWXuxXGgpZHBY9anj7vDlB3a4h7yjt InJc9f8Jx1GIPH1ie4VJbQ+DgzvhpJeANTlr84VUrUiUxHgPsm4pN4wQ6jWwGX9QRB18 a6gjszgHn1geVSHOHtVMPTtB9rIPSRjbp9Ok0Y2pEmGHr9Z4KXVEmtrtyTDnn/GqnX5R yXi2LABQBriQHPzdNB8bGH5EDIqExNZLDr7AEdhrbmVbYZZ0SO9aXFfV90FCeOv6XjJl ks2g== X-Gm-Message-State: AOJu0YytuT/DRnlo/5+R9FO7ut617yf4aRUy5eYs/6BQQHmlAkQOaIfe 5avkwoiJ6gT6o2r8ccpoDSmby3S5zvNkK6YKOwAYmy3WVaaKim2MaRH3VjTf3lzDJoTEK0CNssu eYAjRTZbVz0b/LKIlYr0VyKSTSMBVxOSlAFPZsQvwmB9aMD93vfxlVE8Sx4M1rZ20RJa1rIyy8R j69bFxn8UV9IsDCCvZAfwPhnXqoSa05u/qityel0kWN/8So9Rj/A== X-Received: by 2002:adf:a45e:0:b0:367:8e53:7fd7 with SMTP id ffacd0b85a97d-36bbc12c518mr2155744f8f.28.1722605062813; Fri, 02 Aug 2024 06:24:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFugJzH4d+/wvkJXTrpUGlA6wTALiXf3XESu762PtmbGkn08gC+/shSivb7F/gIMTOpWqUhSA== X-Received: by 2002:adf:a45e:0:b0:367:8e53:7fd7 with SMTP id ffacd0b85a97d-36bbc12c518mr2155725f8f.28.1722605062183; Fri, 02 Aug 2024 06:24:22 -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-4282bb64a68sm96591955e9.38.2024.08.02.06.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 06:24:21 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Fri, 2 Aug 2024 15:24:11 +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 v9 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 v8: - rebase on top of https://patchwork.ozlabs.org/project/ovn/list/?series=417802 - move NEXTHOP_IDS_LEN definition in lib/ovn-util.h - keep nexthop simap in sync with sbrec_ecmp_nexthop_table - cosmetics 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 + lib/ovn-util.h | 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 +++++++++++++++++---------- 15 files changed, 318 insertions(+), 44 deletions(-)