From patchwork Thu Feb 17 15:17:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ihar Hrachyshka X-Patchwork-Id: 1594326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=TnPIi4Qz; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jzz3p5Smqz9sFk for ; Fri, 18 Feb 2022 02:18:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5FE818405D; Thu, 17 Feb 2022 15:18:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yMnK6PQ-1EKc; Thu, 17 Feb 2022 15:18:11 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 97DF783FA7; Thu, 17 Feb 2022 15:18:10 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 590BCC007C; Thu, 17 Feb 2022 15:18:09 +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 6865AC0070 for ; Thu, 17 Feb 2022 15:18:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 30B0F425D9 for ; Thu, 17 Feb 2022 15:17:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com 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 Y4GU7bSf-hdo for ; Thu, 17 Feb 2022 15:17:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 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 8C6C7425AD for ; Thu, 17 Feb 2022 15:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645111059; 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=3/xuEjptTni5z9onIFdjaphP+PSlIq6Xz7uYihw0Y2U=; b=TnPIi4QzQtxtpOJ8G27xO7DL135vzpKiE9VMrtg4WxsbdFUzhRlXMEqXBg+24Qa5clN9Bd Z4eERUU8KA4N4KIpF1Sv1m3fO+f/rucC+Bn/6Uk1u7hyjyzRgeVNVqHoXQm6n6h0Hr41k9 ceAmN5mRVwXj6BkYkCS7D+9yki9nA+M= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-655-q83Kc22WP2qnJsAypZPUjw-1; Thu, 17 Feb 2022 10:17:38 -0500 X-MC-Unique: q83Kc22WP2qnJsAypZPUjw-1 Received: by mail-qv1-f70.google.com with SMTP id 3-20020a0562140d0300b0042d7c7ac26aso5617021qvh.7 for ; Thu, 17 Feb 2022 07:17:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3/xuEjptTni5z9onIFdjaphP+PSlIq6Xz7uYihw0Y2U=; b=Z4vT9BYOtCdAllfshhkN3kDPSUEgjOqiercq5965y/NEMkHaJYaDHI8RZwHwwo0mXQ iMP1a8nlfE/eBGg0zvhwTld5jZbq3vWzog1L8fi3Z1VRXiVMoQLrv0jSyWd09eDsQ5uS FLNfP8eEwgHJW5Uca5y9wHwfswPC2T/vfenssHaEBb0eqzmimI6iPXCA/e9/daJtZMda uBk0CVKxoYdTjtSO+H/ZUFTGFmgnbnXEoTSfeZZzScD9Nzc6nt2H2Zh/QTjr/yK3p9wR 75y5Rj+tf5y8o6f39yMcKK1hY1qidkKIaATDzSZ3SVJ1sxVteKgmEmQIK8RrdmRyKsnr IFKQ== X-Gm-Message-State: AOAM533tPSVqKHu/kgPds8rb+FMlOBS5X5Se+KsOLZGmsDiZaIKG3nJI /B/M+tgD/ckTbMs8FwC/da5e8ONOWPyqhhHfVQC3vK5dooUteJFVpBFaV3d3iUbfDVvB7KJxsLC en6EEBAlupJUSzvsRi2WrVsIsfqfarULq6LlTH38yyj//mnMSdFRhsNQ0iY+4A4ht X-Received: by 2002:a37:4653:0:b0:47b:8670:4abd with SMTP id t80-20020a374653000000b0047b86704abdmr1894499qka.546.1645111057210; Thu, 17 Feb 2022 07:17:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZu062p3sbCeKmOczhfZY/xKSKL/hg7II+dRhtWr13W5s0tpF1BOyOzy4mmkq/J4l/jvrWSA== X-Received: by 2002:a37:4653:0:b0:47b:8670:4abd with SMTP id t80-20020a374653000000b0047b86704abdmr1894478qka.546.1645111056948; Thu, 17 Feb 2022 07:17:36 -0800 (PST) Received: from fedora34.localdomain (cpe-172-73-180-250.carolina.res.rr.com. [172.73.180.250]) by smtp.gmail.com with ESMTPSA id p66sm6937371qkf.12.2022.02.17.07.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 07:17:36 -0800 (PST) From: Ihar Hrachyshka To: dev@openvswitch.org Date: Thu, 17 Feb 2022 15:17:06 +0000 Message-Id: <20220217151712.2292329-11-ihrachys@redhat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220217151712.2292329-1-ihrachys@redhat.com> References: <20220217151712.2292329-1-ihrachys@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ihrachys@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn v3 10/16] Tag all packets that arrived from a tunnel as LOCAL_ONLY 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" A next patch may need to clone packets to another chassis as part of "port migration" procedure, but only if they haven't originated at another chassis. This LOCAL_ONLY tag will enforce the requirement. Signed-off-by: Ihar Hrachyshka --- controller/physical.c | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/physical.c b/controller/physical.c index d28772ed8..a3eddd100 100644 --- a/controller/physical.c +++ b/controller/physical.c @@ -1709,6 +1709,7 @@ physical_run(struct physical_ctx *p_ctx, OVS_NOT_REACHED(); } + put_load(1, MFF_LOG_FLAGS, MLF_LOCAL_ONLY_BIT, 1, &ofpacts); put_resubmit(OFTABLE_LOCAL_OUTPUT, &ofpacts); ofctrl_add_flow(flow_table, OFTABLE_PHY_TO_LOG, 100, 0, &match,