From patchwork Thu Jun 6 18:34:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1944764 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=Z4i/QW4+; 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 4VwCfj2C6lz20KL for ; Fri, 7 Jun 2024 04:34:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5BCEA608FD; Thu, 6 Jun 2024 18:34:35 +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 MLrMz3cN1tWd; Thu, 6 Jun 2024 18:34:34 +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 3F73B60641 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=Z4i/QW4+ Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 3F73B60641; Thu, 6 Jun 2024 18:34:34 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 13485C0072; Thu, 6 Jun 2024 18:34:34 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8A169C0037 for ; Thu, 6 Jun 2024 18:34:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6851781F5A for ; Thu, 6 Jun 2024 18:34:32 +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 h76rb5FZeoNk for ; Thu, 6 Jun 2024 18:34:31 +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 smtp1.osuosl.org 5E38C81F1B 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 5E38C81F1B Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Z4i/QW4+ Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 5E38C81F1B for ; Thu, 6 Jun 2024 18:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717698869; 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=MHD5cNApptxv3yPT3VJx8IwXBhE5A9a+KzhsL1FYcDo=; b=Z4i/QW4+81VuNKFwCd3+wAy7dbe7aNAyAIfBXVmXJsFkt3xcsdE8DCgCT01cza2+iksQq3 LcstKfqWQDShrtte2SbGDBs+2YCAqfG2wDRZdLDLX1crg0HVH4HG1hFosWYbsnCyLGGMl2 hNbZGo8Mm0tlaUKvxLAMvq7FnY6ZTO8= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-383-JTUUSlwaM1Gwfy2DXSaUpw-1; Thu, 06 Jun 2024 14:34:27 -0400 X-MC-Unique: JTUUSlwaM1Gwfy2DXSaUpw-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-42153125d3eso11117245e9.2 for ; Thu, 06 Jun 2024 11:34:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717698866; x=1718303666; 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=MHD5cNApptxv3yPT3VJx8IwXBhE5A9a+KzhsL1FYcDo=; b=qRV2+1kM2Ftt+amQzewmrgBdp2H8MwpgLzuDjRitMKTZQrmlvDhfqDbmjgHYg4kc04 78I1cZmgaS04arpiZVLWMkByOv/jFB6thkSj1Jgzm19pq5OZ6XvaHjcpQ5sYbj6/y0D+ ZkOsYl08ngpAaE6ugK3H6bZzrZTKVtrn1nr05pOTCSdrbFYT0AYB0zuT1PtGoQ8ft1U8 9IFkm2GtSDj4sKKhV8wUsOgJ+KZAvI6DlXa44TnFtrvvus4DVE09t1C46gO9m3LBv3Ap SYdLr9NpPfO6/8JSOwjsY5J4zf2B1UKToc0w8SlPiv/6HV24Y0GL/+tHYatS3R4jbCnF FgeQ== X-Gm-Message-State: AOJu0YykkHrOjqq/nB/ApyqtXzvstLJcruYEiSa37CiGwiKc2VvdJZ78 msGalkAdnAalgd8uT4Wqu0ZLy4xJtcD1RYLB/p2cbDkGK/GIfV+VafgJkwWd1BeNuUeuAjk+XIB /MveutzuoalAC9y9oSEpmksp6SgwC+gc8dwq5fjSacAehzG/GpHSrYGpK5xb0hcEjFs7uxEvc6l Zmk/aa6ZK3Ij5xTlFz7wIrR7YDzAqAstYAxO9gIdYVwELY5z/RZg== X-Received: by 2002:a05:600c:470b:b0:41b:855b:5d26 with SMTP id 5b1f17b1804b1-421649ea601mr4509145e9.2.1717698866139; Thu, 06 Jun 2024 11:34:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEePwzTe/MYEuDgxNmVMNdDptkMpvVXNqVGEfsOEv2gXutvu42oL4jyXp8oqTfeLVXa0syp7g== X-Received: by 2002:a05:600c:470b:b0:41b:855b:5d26 with SMTP id 5b1f17b1804b1-421649ea601mr4508945e9.2.1717698865624; Thu, 06 Jun 2024 11:34:25 -0700 (PDT) Received: from localhost (net-93-65-57-241.cust.vodafonedsl.it. [93.65.57.241]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215c2a59a3sm30886895e9.22.2024.06.06.11.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:34:25 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Thu, 6 Jun 2024 20:34:15 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: dceara@redhat.com Subject: [ovs-dev] [PATCH v3 ovn 0/3] Introduce ECMP_nexthop monitor in ovn-controller 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" Reported-at: https://issues.redhat.com/browse/FDP-56 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 | 101 ++++++++++++++ controller/ofctrl.h | 2 + controller/ovn-controller.c | 2 + northd/en-lflow.c | 3 + northd/en-northd.c | 33 +++++ northd/en-northd.h | 4 + northd/inc-proc-northd.c | 8 +- northd/northd.c | 158 +++++++++++++++++++-- northd/northd.h | 11 ++ ovn-sb.ovsschema | 16 ++- ovn-sb.xml | 31 +++++ tests/ovn-northd.at | 4 + tests/ovn.at | 4 +- tests/system-ovn-kmod.at | 266 ++++++++++++++++++++++++++++++++++++ tests/system-ovn.at | 62 +++++---- 15 files changed, 667 insertions(+), 38 deletions(-)