From patchwork Sat Jan 21 16:46:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1729998 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SaMSyc9z; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Nzj1Y6Gzcz23gL for ; Sun, 22 Jan 2023 03:46:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E8BFC40A89; Sat, 21 Jan 2023 16:46:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E8BFC40A89 Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SaMSyc9z 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 SIWJ85RJSZMx; Sat, 21 Jan 2023 16:46:22 +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 0457F409EE; Sat, 21 Jan 2023 16:46:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0457F409EE Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id BB24BC002D; Sat, 21 Jan 2023 16:46:18 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6C089C0032 for ; Sat, 21 Jan 2023 16:46:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4C6084163E for ; Sat, 21 Jan 2023 16:46:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4C6084163E Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SaMSyc9z 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 FEtUd3Yz0wrG for ; Sat, 21 Jan 2023 16:46:16 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A642A4167C Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by smtp4.osuosl.org (Postfix) with ESMTPS id A642A4167C for ; Sat, 21 Jan 2023 16:46:15 +0000 (UTC) Received: by mail-ej1-x62c.google.com with SMTP id mg12so21099955ejc.5 for ; Sat, 21 Jan 2023 08:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=woqFlf29HroAhl+eyulTgvVZYF9YncBenGRcelo4fKs=; b=SaMSyc9zOR9VWEUEp6Uv43TxgySOe3TvM3eb3+sEmYYu9c8whJRTfoqaIaUjq2qE6u 2e0cDoZc/UwR1XCMBG6O0OK9y+atN+EumPrzeMxDYqHQKjfKbDKyXHXvRztQPUgkI3B8 SUmS+F0TzMgKUmTSNRVeeCuViPGI14/58k0y4CMKDGXJBQ8ebfGClVXMdporPgOEy5Wj gOQy58GMish1m/SJil669EYXiZcVEjZPNWvr70cOIYaeuKWBrJh4yyOUHs2IpVBDSjfY zaGmv1aHN1to85UFyJxNCqB6rPh1YK8XJ4lefSiwLbkskK8nBxctMjbRykhlC7rOXJbC 5UDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=woqFlf29HroAhl+eyulTgvVZYF9YncBenGRcelo4fKs=; b=KjSiWHR9m+/IU1j9MskI6dSG9nYq9Bvk5vXquTAyVtemhzQDsQTu1TQ/Wt0omW2Mvs 7kYm+mqis8ev7QxfiiJ0y4knhMbuJCrLLAjq4wwUvgs0C6brkW7SlqfHxX7J+xGxrOhl KM5iz9jPVeL07/v+rP9E/irZ4Op9ZsSnQuOMj6zWnNp0eNhGKIgfT9qVi54/FtX128wJ Dd2fpYIC0IpL8Lwii2iHLWc54akDsey+vrorDkYFc/Dmm9NWqockEYOw3IsLDE422kZ9 NtUOHcAMJeeden3rSjkV2GGG+WrI6hhjrkNkZOop+/KL2JYzNeRycsypsJPI7ZzEpil3 xPDQ== X-Gm-Message-State: AFqh2kp3A4FwDpQ/2HZa028rvBjYYVRaojKeC8GTbWWm6KykRlXYbjzF 5uStyL9b0UQt3QTqsVrJ7x7jA666ZQ5eLgHQ X-Google-Smtp-Source: AMrXdXsOQfBiHIvPmXsuoavPh/GX1zZlCQZcgyXrYUGCfOISmTnp5dqBW/Ai907CcV7CW3rvowC7gw== X-Received: by 2002:a17:906:c7cc:b0:7ae:bfec:74c7 with SMTP id dc12-20020a170906c7cc00b007aebfec74c7mr18500395ejb.72.1674319573602; Sat, 21 Jan 2023 08:46:13 -0800 (PST) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id 11-20020a170906318b00b0078d3f96d293sm19614438ejy.30.2023.01.21.08.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 08:46:13 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Sat, 21 Jan 2023 19:46:08 +0300 Message-Id: <20230121164609.3625347-2-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230121164609.3625347-1-odivlad@gmail.com> References: <20230121164609.3625347-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Simon Horman , Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn v2 2/2] northd: fix typo in consider_l3d{wg, gw}... function 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" This patch fixes typo in consider_l3dgw_port_is_centralized() function. Signed-off-by: Vladislav Odintsov Reviewed-by: Simon Horman --- northd/northd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/northd/northd.c b/northd/northd.c index 46ed39850..bc2d79164 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -11636,7 +11636,7 @@ build_gateway_mtu_flow(struct hmap *lflows, struct ovn_port *op, } static bool -consider_l3dwg_port_is_centralized(struct ovn_port *op) +consider_l3dgw_port_is_centralized(struct ovn_port *op) { if (l3dgw_port_has_associated_vtep_lports(op)) { return false; @@ -11687,7 +11687,7 @@ build_adm_ctrl_flows_for_lrouter_port( ds_clear(match); ds_put_format(match, "eth.dst == %s && inport == %s", op->lrp_networks.ea_s, op->json_key); - if (consider_l3dwg_port_is_centralized(op)) { + if (consider_l3dgw_port_is_centralized(op)) { ds_put_format(match, " && is_chassis_resident(%s)", op->cr_port->json_key); }