From patchwork Tue Feb 15 03:57:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ihar Hrachyshka X-Patchwork-Id: 1592901 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=Jitjrtdq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.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 4JyS4F2SQkz9s07 for ; Tue, 15 Feb 2022 14:58:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7B0F8830C5; Tue, 15 Feb 2022 03:58:19 +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 U65byq66TNgB; Tue, 15 Feb 2022 03:58:18 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3A55182A17; Tue, 15 Feb 2022 03:58:17 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0D50BC0011; Tue, 15 Feb 2022 03:58:17 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0F54DC000B for ; Tue, 15 Feb 2022 03:58:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D808C82BFD for ; Tue, 15 Feb 2022 03:58:01 +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 TXnEFkR7JcTf for ; Tue, 15 Feb 2022 03:58:00 +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 smtp1.osuosl.org (Postfix) with ESMTPS id D364082A17 for ; Tue, 15 Feb 2022 03:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644897478; 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=PEIfys4cIfkOKsUQ+ug34DKg/bSccL7R+vU0XxQw1xw=; b=JitjrtdqrEi2iwk5CecjYKvUkLDvO71D0GOE0aOh1FVTU86LAH2CgbSORLe9LmG2rsLaMs 6Gv//do8if6ok/WAQOigjGCv04WwfsfN3uMlkQt61xaAoaTf6nLJNYFLzZm4hxKlHT4NMm QJ5eJnLMNXony8EnI20cpchs0+3KjMk= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-93-5t8GuGHCMIapNN8SvektGA-1; Mon, 14 Feb 2022 22:57:57 -0500 X-MC-Unique: 5t8GuGHCMIapNN8SvektGA-1 Received: by mail-qt1-f199.google.com with SMTP id l15-20020ac84ccf000000b002cf9424cfa5so14026376qtv.7 for ; Mon, 14 Feb 2022 19:57:57 -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=PEIfys4cIfkOKsUQ+ug34DKg/bSccL7R+vU0XxQw1xw=; b=nMuwPJKaYvRHss09TQU5mwP7Tux1RXYtPrsNjArGCHmHgzPn2/uPMEdTNc4Kkq+d1Q mU7Nf9C606HOx/hUGdDyCkdX5wvyYV6OPnsKgRMid4At3eCQDF2zw2zQsE/ObIAK+hbC oQxol0oSLz9NAi5jWzolxILS90VZ46c+O4yBbxdl4v37q3o9qLlWBgAdqjw+6+t3IR6B pu9cMhTUb9D1qo3DbGU2melIQCm+5jLdW6ZH6/7tK5Z5idokvkC0bqM0Pw632UnNLd7t AG3bhi0B9I9GR49/yrACGHilTV1QkmuqJM48LzWiWxLWp96GHjp6LmqIaFfXXNpPvqOX 4Dlw== X-Gm-Message-State: AOAM533ItG1PjaZCtzmg/3ZQtrpoZMTjAC1n6lGrUtlJiENWHfr1bK5V T/MXFwMW4G8jNQGvsuUJHy/c73EA1ea03rO1EIi2tw4AhcGJQFxwbLBtvmFcs6wQnZK8dh9Hlhs B8nS+gJjd/1/r+1Fvz9/EdBMHNG862bR+rCTMOGVWtehPb6zC4V0JhRfDe2rMr5Z4 X-Received: by 2002:ac8:4e4c:: with SMTP id e12mr1535319qtw.98.1644897476671; Mon, 14 Feb 2022 19:57:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyx4onWf5LVM9BKkdpvMgIF7GhlWM5K1fYOLAzS/Jbk0Wm72GXrVBITnOC2rB74ZUU1mgzOHQ== X-Received: by 2002:ac8:4e4c:: with SMTP id e12mr1535312qtw.98.1644897476449; Mon, 14 Feb 2022 19:57:56 -0800 (PST) Received: from fedora34.localdomain.com (cpe-172-73-180-250.carolina.res.rr.com. [172.73.180.250]) by smtp.gmail.com with ESMTPSA id br30sm16753001qkb.67.2022.02.14.19.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 19:57:55 -0800 (PST) From: Ihar Hrachyshka To: dev@openvswitch.org Date: Tue, 15 Feb 2022 03:57:32 +0000 Message-Id: <20220215035737.1820679-11-ihrachys@redhat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215035737.1820679-1-ihrachys@redhat.com> References: <20220215035737.1820679-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 10/15] 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 0f9dd91e5..bc4f7c4f0 100644 --- a/controller/physical.c +++ b/controller/physical.c @@ -1727,6 +1727,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,