From patchwork Fri Jul 5 18:58:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1957434 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=hAvt7wW7; 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 4WG2q65HmCz1xqb for ; Sat, 6 Jul 2024 04:58:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A41EB409A0; Fri, 5 Jul 2024 18:58:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id IDl9Y4XXVE_I; Fri, 5 Jul 2024 18:58:39 +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 F15BD40975 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=hAvt7wW7 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id F15BD40975; Fri, 5 Jul 2024 18:58:38 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id DA36CC0A97; Fri, 5 Jul 2024 18:58:38 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1E350C0A96 for ; Fri, 5 Jul 2024 18:58:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0A70241449 for ; Fri, 5 Jul 2024 18:58:38 +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 pvoo2KOFpM9e for ; Fri, 5 Jul 2024 18:58:37 +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 smtp2.osuosl.org C86A140132 Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C86A140132 Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hAvt7wW7 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id C86A140132 for ; Fri, 5 Jul 2024 18:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720205915; 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=pMCTrWbiGLI3A7RWnXOXMtAK3a81L+X2jTeUDDljBrs=; b=hAvt7wW7astIn5LREsv7Th6DG6FMwQyaX+PsgiWKLJFD4Kc7xZfzkrUY+sXcYYJBV1PtrH 2m991dx/TzTxIN0ImISdHKFC5t4LOuiMy95vqbY+PiCWLfG3S25CfNLDOAP44u7s/tBhV7 VLQh18W63s5Ge20VBcvKo67Ubbp1/RA= 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-661-moj7xw39MvWVC5AofnviXg-1; Fri, 05 Jul 2024 14:58:34 -0400 X-MC-Unique: moj7xw39MvWVC5AofnviXg-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-424a775ee7fso14473905e9.0 for ; Fri, 05 Jul 2024 11:58:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720205913; x=1720810713; 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=pMCTrWbiGLI3A7RWnXOXMtAK3a81L+X2jTeUDDljBrs=; b=oPi81ntSuylQLELqbo+QL9KUmPPa/ATHzm2E+qxNssvzNq+3LmcdM1SOOb4ZExOqPp SQ8pddn9jLkDOkZbdwofzMNbikRkQYuhfhRTxV4A4wv1kr16gBWyD+wIOQEBh1s7nWym flLze7h+3aw7zE2/Z2zv+6tuKc6yUWI4XDRq5hOeqhZbvE9chVimTqP9HAmnvWy+RCkM swkCCSAEXB8lXP6hdsR8xZPqR6urMKAXmwFaK5nds6w5AqaQNKSkvZUUQRF5rGbN1rWD ukAIoeIo1FYrUAXzSOtEvcq+rR+3P7eNH3F5I/Mtp5R6NRuw3kpR6jVbKaBVOSySrSsh Nu+Q== X-Gm-Message-State: AOJu0Yw9TJbHJe47iYgbiJ4ThxdCjn9u9+g2ioth+1MvkhQLJ3yqzfr1 tbavuk6OOSgKon2/ZlEWKm24Z+eEH+k5BJvXrDGC4q3VUu799PaRESM1+jwKTW8PFQRbqjLEPst H3TYwKaWDiUdOHEZSt8cK35jiaLb1uQ4hsqEDvw19SAwlRonO+CIOJrt8RwwEWlkqgpbs6DdRRt IqUr9Xm2qfmAAr6sribpFqT9hJFPsErhObM6gO088yw6a0TmGj8g== X-Received: by 2002:a05:600c:3309:b0:425:7f73:47ee with SMTP id 5b1f17b1804b1-4264a41f6e5mr32075355e9.33.1720205913144; Fri, 05 Jul 2024 11:58:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOIPqOvushiJwhDerAbSK9hnLoY7aGhmdfuCQrq+YQcnega/5np2dXecTyqw7HALbhxzRtpA== X-Received: by 2002:a05:600c:3309:b0:425:7f73:47ee with SMTP id 5b1f17b1804b1-4264a41f6e5mr32075205e9.33.1720205912632; Fri, 05 Jul 2024 11:58:32 -0700 (PDT) Received: from localhost (net-188-216-101-142.cust.vodafonedsl.it. [188.216.101.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a2ca4dbsm71834035e9.33.2024.07.05.11.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 11:58:32 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Fri, 5 Jul 2024 20:58:16 +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 v5 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 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 | 33 ++++++++++ northd/en-northd.h | 4 ++ northd/inc-proc-northd.c | 8 ++- northd/northd.c | 123 +++++++++++++++++++++++++++++++++--- 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(-)