From patchwork Tue Jul 23 08:15:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1963652 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=LFr4mqWi; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WSqkL6P6fz1yYm for ; Tue, 23 Jul 2024 18:16:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B6B6160794; Tue, 23 Jul 2024 08:16:56 +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 Xcbq2uEMAiJX; Tue, 23 Jul 2024 08:16:55 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.9.56; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 2D40B606B8 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=LFr4mqWi Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 2D40B606B8; Tue, 23 Jul 2024 08:16:55 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id EE790C0A97; Tue, 23 Jul 2024 08:16:54 +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 5C897C0A96 for ; Tue, 23 Jul 2024 08:16:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4BD766071D for ; Tue, 23 Jul 2024 08:16:54 +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 tcXQbU7HCQFO for ; Tue, 23 Jul 2024 08:16:53 +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 smtp3.osuosl.org 4BA98606B8 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 4BA98606B8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4BA98606B8 for ; Tue, 23 Jul 2024 08:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721722611; 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=U3x7rH7d+tySqILVMUVeo8L2k4ptf9VwbmGU22V+/7w=; b=LFr4mqWiKdx/vzqyvVQL3Zs9EkzIXREaotdiRioAWvLar5w823V+82MnGQfjNTb6nti9Ql lXbD4qFd0yhylcU9on2cKPHlkBnxZZ5yJwtAQwGwSzMIymWHNyEgFN3FS/BVaGiWTTK0z3 JM0G4KnHkpo7rTrZ5acugyZPUgFVjZA= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-614-m8WWaUpvMYOHf2-IlxOslg-1; Tue, 23 Jul 2024 04:16:49 -0400 X-MC-Unique: m8WWaUpvMYOHf2-IlxOslg-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-79f045e1adcso614381385a.2 for ; Tue, 23 Jul 2024 01:16:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721722609; x=1722327409; 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=U3x7rH7d+tySqILVMUVeo8L2k4ptf9VwbmGU22V+/7w=; b=Fny6dR1F2AqgthcNcquqRh6DHPdUr8flXU+f6F4Q7arMPU7UX/hY/BsYWjtHY4CnL/ styOo08T9eGdycdbJS8/pZJzHb6Fja+X4Wfw44eFJrwKlHVL7DBRJuM0I2939vF2BPP3 KQa8qrWauYQakEuf5QAG1kFKUgFbMbmzIk4xNZqAHezuwH9snXKA8DE/OuU0NzsxDy+F hwhh0AZlAG/+j/3nJUhkiNqvhHyXXlJYSvgZ2drO3H7XpSp1VE/nIiG+64L9SYrWKg6z X2HKoE4saAf0iTdBXnd2ZRLOnW5fbypRXv7hMhYaerf99CfoLQI7GOj7j0Fluqu0aGZn fjMQ== X-Gm-Message-State: AOJu0YyVKxUQc11gQJbtbwaLvBGbg1JH+vAkzmRpX1KYmy751Bt1acfT M7tnm6fmAUblSLa4aBiqDbzQgM/xBEiqOsjaexgvmf/hpsGmQByMDKh7dobHoEhyx1FiOTCSMOg 3TrcxTAypnWiysfmzZEAYSvWhfNXqtUyPIdfaskR0Ng+1mwDSH5YWeseCia5mqZcC/uFlKWhHtD e8R06J1Hxeck69UAKJsxyKIe+gVd96f/S3ydjvWUGv/5zZlwsghA== X-Received: by 2002:a05:620a:1a93:b0:79f:37f:9c40 with SMTP id af79cd13be357-7a1a6507822mr1021471385a.12.1721722609148; Tue, 23 Jul 2024 01:16:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGINfBgCmQlXU24iBOmQu6O0IoOUHuaHk18DAiVNx3ncFlG4P8flO6MjrCf0xf3zTuNFWuGoA== X-Received: by 2002:a05:620a:1a93:b0:79f:37f:9c40 with SMTP id af79cd13be357-7a1a6507822mr1021470085a.12.1721722608867; Tue, 23 Jul 2024 01:16:48 -0700 (PDT) Received: from localhost (77-32-99-124.dyn.eolo.it. [77.32.99.124]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a19905aa52sm453308585a.72.2024.07.23.01.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 01:16:48 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Tue, 23 Jul 2024 10:15:51 +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 v6 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 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 | 121 +++++++++++++++++++++++++++++++++--- 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 | 66 +++++++++++++------- 14 files changed, 324 insertions(+), 39 deletions(-)