From patchwork Fri Feb 2 13:49:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1894557 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=jTOo3vdO; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4TRHGB1lhDz23g7 for ; Sat, 3 Feb 2024 00:50:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E594D43763; Fri, 2 Feb 2024 13:50:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E594D43763 Authentication-Results: smtp2.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=jTOo3vdO X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aGdxvhuRX9hX; Fri, 2 Feb 2024 13:50:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id A8ECC43723; Fri, 2 Feb 2024 13:50:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A8ECC43723 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 77CA1C0072; Fri, 2 Feb 2024 13:50:05 +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 0206CC0037 for ; Fri, 2 Feb 2024 13:50:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 771304373A for ; Fri, 2 Feb 2024 13:50:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 771304373A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VJiL5u1Q4frU for ; Fri, 2 Feb 2024 13:50:02 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id A0E6F43727 for ; Fri, 2 Feb 2024 13:50:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A0E6F43727 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706881800; 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: in-reply-to:in-reply-to:references:references; bh=LHrJ1gctrlqDgE+aRW3GXCmt+GM3BQGYUqs9u/QBr04=; b=jTOo3vdOEEAESdYNp27yeM2U+eJMGx+mGwXnsTDKZgpBp02zoXG4uZIWy06qYz0cEm7a8L QwhEHY6lrc1r03Yw5SvGZUacbkwz706/LyK/nng2lMPijGNY16Fy1IiNPChcDbuxw8qesU 6wag/ryTia0H9hlyWLZtdGdwAOVjK8Q= Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-124-4RsT9TaLMgWW7eK-VpGZbA-1; Fri, 02 Feb 2024 08:49:59 -0500 X-MC-Unique: 4RsT9TaLMgWW7eK-VpGZbA-1 Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-1d78e48085bso21259405ad.3 for ; Fri, 02 Feb 2024 05:49:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706881798; x=1707486598; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LHrJ1gctrlqDgE+aRW3GXCmt+GM3BQGYUqs9u/QBr04=; b=oUcqc7r+0b1mXO5BTAtt4VIrUDwdHkmEFMA9WUjnw6sh5gpDvGh/2V0K+WiPCC/Seg az+GWpx9BYbJnc1+c6RjxWv/P6YLIunAomLut0t+Jzx5WEJHQrHtS0+YIPAjZs36GavQ KZjVsFqHnk11vwDlMz5kO4xFSAzJKQkfDVm3gR8o+B9u0nA8FqAQyIDZ+KsYCBa9WLJd 8ZUscgcdGMI0QU1vDKUnhLqyW8pXtfT0kgEB/EE701/+yN1ilK31xz++rgVQcWYl10Py FhkmNJHMKANOVCH+wFu0qVlcV8HoP55OqB0v67OZ4ga8L0mrQ+Q1Hg9RmxSN1XP5afrE +tuQ== X-Gm-Message-State: AOJu0YxzaTrlTMd6mFEohGgkPW/FvhA2eCyxZ/LTEOLE8QCqkWmuXzbz yv18AUyTdDFxv1EklZ6yEPD8AzlgDlsZVYMdZZgTsVSSwIh9xVViHKr3ZD5qtOCBVdnt8/hU2i0 4sReliO8InOYrNH5cRX/EfWNQCgBFqqyFaaRsO/Hf0/RiY3SjByclN6J3Ihsuxlqux78aZ9S+8b U+IWq3GOSNNNe7BFxtIDTvGm3y9Xi0d+cVfjxD2gS1QFW4f6YKlQ== X-Received: by 2002:a17:902:6b46:b0:1d9:3bb5:2819 with SMTP id g6-20020a1709026b4600b001d93bb52819mr2269210plt.34.1706881798174; Fri, 02 Feb 2024 05:49:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcaJAVvvNJXXxLUhXX1uvE2A29/a4mxVMfvSj4rPB2uPfj2TjFmZ2K7ETh7V8fsju4qPVZWQ== X-Received: by 2002:a17:902:6b46:b0:1d9:3bb5:2819 with SMTP id g6-20020a1709026b4600b001d93bb52819mr2269193plt.34.1706881797780; Fri, 02 Feb 2024 05:49:57 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWPN6v4INrkbnTzTV2RKCqKFBTDxweHO3cGScLtwXyGYWlI6XBB1aUaIxI39mAxzbs7uubAQ5omLdAKJRF2u/cWBNGd Received: from localhost (net-93-71-3-198.cust.vodafonedsl.it. [93.71.3.198]) by smtp.gmail.com with ESMTPSA id ks14-20020a170903084e00b001d95a6983b0sm1625643plb.87.2024.02.02.05.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 05:49:57 -0800 (PST) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Fri, 2 Feb 2024 14:49:34 +0100 Message-ID: <6924c3f70d8972bb93d93628fd5cd291f9c32fe0.1706881571.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: dceara@redhat.com Subject: [ovs-dev] [PATCH v2 ovn 2/3] ovn-nbctl: Fix nbctl_pre_lr_route_add for BFD. 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" In order to properly check if we already have a running BFD session for the next hop used by the brand new route, load logical port column of the nb BFD table in nbctl_pre_lr_route_add routine. Acked-by: Mark Michelson Fixes: db6d30783bec ("ovn-nbctl: Don't replicate entire database unnecessarily.") Signed-off-by: Lorenzo Bianconi --- utilities/ovn-nbctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c index 526369b68..0586eccdb 100644 --- a/utilities/ovn-nbctl.c +++ b/utilities/ovn-nbctl.c @@ -4394,6 +4394,7 @@ nbctl_pre_lr_route_add(struct ctl_context *ctx) ovsdb_idl_add_column(ctx->idl, &nbrec_logical_router_port_col_name); ovsdb_idl_add_column(ctx->idl, &nbrec_bfd_col_dst_ip); + ovsdb_idl_add_column(ctx->idl, &nbrec_bfd_col_logical_port); ovsdb_idl_add_column(ctx->idl, &nbrec_logical_router_static_route_col_ip_prefix);