From patchwork Tue Mar 12 15:59:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1911161 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=P9AG43c0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (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 4TvJJN2Bgsz1yWy for ; Wed, 13 Mar 2024 03:00:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5D2724065A; Tue, 12 Mar 2024 16:00:18 +0000 (UTC) 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 cDfwVGpWPNuN; Tue, 12 Mar 2024 16:00:17 +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 smtp4.osuosl.org 054FE40607 Authentication-Results: smtp4.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=P9AG43c0 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 054FE40607; Tue, 12 Mar 2024 16:00:17 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id BADB7C0077; Tue, 12 Mar 2024 16:00:16 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 010D1C0037 for ; Tue, 12 Mar 2024 16:00:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E2A4340612 for ; Tue, 12 Mar 2024 16:00:14 +0000 (UTC) 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 pRLmQIIalEuF for ; Tue, 12 Mar 2024 16:00:14 +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 smtp4.osuosl.org A00F14060E Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A00F14060E Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id A00F14060E for ; Tue, 12 Mar 2024 16:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710259212; 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=PkxyWEi9W4RCK0NMd+9ByzucVJ5Gmeuob+HGJqxZKFE=; b=P9AG43c07YbwSsWaY/QAwig1yjjyFuWRpEoXheqGvXyplU3ivYFdwx50t02kxeEEPUA/O3 CGd4hc9Iukis3AFqHlHHrWFcQLJ8Rn92aXmgVGdLnCileeJL3Ce29ZxtWApn72CMvFhMgF UYfOi143SjiGyzHH3eH8nv4UFctD2vg= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-613-LdCfkZUmPO-WyDRoN-rN-g-1; Tue, 12 Mar 2024 12:00:07 -0400 X-MC-Unique: LdCfkZUmPO-WyDRoN-rN-g-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-33e1d994f53so4001356f8f.1 for ; Tue, 12 Mar 2024 09:00:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710259204; x=1710864004; 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=PkxyWEi9W4RCK0NMd+9ByzucVJ5Gmeuob+HGJqxZKFE=; b=lXaMaPIYzwDWYfYMSuiHrAo4tT5pD+2FikO1NYby4YorXLvJtX1g8IyceSNVuefF/1 33z8Y862AqT4D2TNgbBOWLGo5zZggmkAACaI9Pfs7ehz7GXdEOi4zFFPbXTyd5RG830T PZc+pM5H1pWaLjdERKldJEmm1+YEWpRRMvK7b6rimYnEp0tipdwSEDsmQPmr6anz8n/v 113gZYI1ECrOIeuCGbXjWHV2WJ6VFZp1GZcGkn96XUyHQgnvZ0saE7x5JY36/UgaKxP/ 1cBOoFfxgAF1QJmRFpq4XwsyRvQiFaqW9MwbLq7xteN5/q3yNtdEiKVS+U0GFx8N+FkZ iTsA== X-Gm-Message-State: AOJu0YzhK54vp1GusSp4OR2EAEdZPximbFC80MkKSI06zb2CYEr2XQZW qZksD8LamB97Yj2xB0pg4GeZL8UEzMxD3KHzt3N3Xugj3ToEfIxeh1iZ3+mdlrUALtJ5eule3uq q009AZF0j4AyOMO3ICqMUhALP5I/KoPMsbyHYYaPccwx+DPfvED085KIQttm1+43b5NoFrYPPca wBGjoQs0ow18pkqscBp7EUmWI2F2yCp0K9cUx1bwv7bLAT X-Received: by 2002:a05:6000:d48:b0:33e:8b93:87c6 with SMTP id du8-20020a0560000d4800b0033e8b9387c6mr6158819wrb.42.1710259204160; Tue, 12 Mar 2024 09:00:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8zElXvYIOLburpE5+aFfF/GvCjB+idtTQRmfmsxIjxmu+ljNCb/7FrlHAQekdbLpqPdikOw== X-Received: by 2002:a05:6000:d48:b0:33e:8b93:87c6 with SMTP id du8-20020a0560000d4800b0033e8b9387c6mr6158789wrb.42.1710259203518; Tue, 12 Mar 2024 09:00:03 -0700 (PDT) Received: from localhost (net-93-71-3-198.cust.vodafonedsl.it. [93.71.3.198]) by smtp.gmail.com with ESMTPSA id bs15-20020a056000070f00b0033e9f6997c7sm3383823wrb.66.2024.03.12.09.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 09:00:03 -0700 (PDT) From: Lorenzo Bianconi To: dev@openvswitch.org Date: Tue, 12 Mar 2024 16:59:56 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: dceara@redhat.com Subject: [ovs-dev] [PATCH ovn v2 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 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 | 2 + northd/en-northd.c | 4 + northd/inc-proc-northd.c | 9 +- northd/northd.c | 136 +++++++++++++++--- northd/northd.h | 4 + ovn-sb.ovsschema | 18 ++- ovn-sb.xml | 26 ++++ tests/ovn-northd.at | 4 + tests/ovn.at | 4 +- tests/system-ovn-kmod.at | 266 ++++++++++++++++++++++++++++++++++++ tests/system-ovn.at | 62 +++++---- 14 files changed, 590 insertions(+), 50 deletions(-)