From patchwork Thu Dec 22 17:43:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1718921 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=140.211.166.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=ShgamBUc; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.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 4NdHjC0RLyz1ydb for ; Fri, 23 Dec 2022 04:43:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E30664039D; Thu, 22 Dec 2022 17:43:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E30664039D 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=ShgamBUc 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 X8v8Z6b9HvL2; Thu, 22 Dec 2022 17:43:24 +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 1CC88404DA; Thu, 22 Dec 2022 17:43:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1CC88404DA Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 02C96C0071; Thu, 22 Dec 2022 17:43:23 +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 C278DC0070 for ; Thu, 22 Dec 2022 17:43:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 8F972418C7 for ; Thu, 22 Dec 2022 17:43:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8F972418C7 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=ShgamBUc 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 BNLVvUdt9d_Q for ; Thu, 22 Dec 2022 17:43:20 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 72ACF416A3 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by smtp4.osuosl.org (Postfix) with ESMTPS id 72ACF416A3 for ; Thu, 22 Dec 2022 17:43:20 +0000 (UTC) Received: by mail-lj1-x233.google.com with SMTP id s25so2647984lji.2 for ; Thu, 22 Dec 2022 09:43:20 -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=TGOJmIh5FQVejcH1C+A5/GfQUQlfF+VoCkngSt7RV5U=; b=ShgamBUcBnN4u2ZoDZJDipf6vEFW9VLnNg7ryFUvGAuKVlXRSc9IzWAuKlF9ys0dZN aNsCFDWenB4j8S5bYo6T1BUQzCKDVHuqhbhN8/YZJ7BAblcExCNcqj4tHtcl9psLiJUu 4MioC83jnqcW/CeHK5jIxgCCK6mqQLlDQrTBYzrRIUkwH1nYW6c0WZ4ZgTJR++6cv/zI aCmgKXkKbHiZTmj2qcosV55QShVdIoJQhke3rm1QU+neIuNr6sYsf+pVnd+Y6vWK6tD1 tdYuVrxB7TNFKisFIryWF1LcGJQeotGbSQTnhi1FShHvtPL4w4WReCE2tYVkkZgV4YJL 0Qsg== 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=TGOJmIh5FQVejcH1C+A5/GfQUQlfF+VoCkngSt7RV5U=; b=Y2FpbY8H+PKrbQteYG6WWVaCCJMDNPhLyP0PfEXKzMmyGsGw19XBI1WUZe4C2LzNWI 7Z0E74CaNaWrXrjnOS/s94lf0qTQrAT20K00SbS3a/YqEpWH/okTo2Q6NzxnGsWB4ZKK UJLI/GkT6C3VcM8J+vJ/WsymE1nWVBsA65wFA92JKgPhHEswEloQesDlXoNPn189PmRD gsYAKIR42vCmTf5NXSKgEfu9JhASZxy6pVidLwgGshm8mGUP6mjsL0+kwqRdnMqkZJ3T h2gfnpCNpkChopHvKQC9BWlRemBmr6thKbVmiXDvjsIF+jxSdLJQ3uGhywDI4w+K5CbN UcNg== X-Gm-Message-State: AFqh2krLNknJ+89eE7pJldakLgGGN0tDupmIVak4bEfUpcQsJmGEHDI9 J+B+g+3R4OjzSIu97cAKhJ5TAEI/ozJh/w== X-Google-Smtp-Source: AMrXdXujhz7O8bEmx2XbE23kAOCpr4bCklFaKftgLtz1AJntKS39gpYjHXbFF0cQpPwLvWVhLa9YIQ== X-Received: by 2002:a05:651c:b07:b0:278:d139:74e4 with SMTP id b7-20020a05651c0b0700b00278d13974e4mr2229945ljr.30.1671730998183; Thu, 22 Dec 2022 09:43:18 -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 p7-20020a2eb7c7000000b0026dcf81d804sm117433ljo.31.2022.12.22.09.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 09:43:17 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Thu, 22 Dec 2022 20:43:09 +0300 Message-Id: <20221222174309.3141692-2-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221222174309.3141692-1-odivlad@gmail.com> References: <20221222174309.3141692-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn 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" 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 07fb0ab9a..9ee9b590d 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -11612,7 +11612,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 (op->peer && op->peer->od->has_vtep_lports) { return false; @@ -11663,7 +11663,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); }