From patchwork Tue Nov 7 08:06:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Simonart X-Patchwork-Id: 1860747 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=EB3PGPLo; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4SPgmD6rtMz1yQL for ; Tue, 7 Nov 2023 19:06:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B8BD46137B; Tue, 7 Nov 2023 08:06:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B8BD46137B Authentication-Results: smtp3.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=EB3PGPLo X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id byWRyw273Hn5; Tue, 7 Nov 2023 08:06:48 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id ED4A061371; Tue, 7 Nov 2023 08:06:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org ED4A061371 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C8CE4C0071; Tue, 7 Nov 2023 08:06:46 +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 D9339C0032 for ; Tue, 7 Nov 2023 08:06:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9D10541F7D for ; Tue, 7 Nov 2023 08:06:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9D10541F7D Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=EB3PGPLo 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 L--sHXwZcpJN for ; Tue, 7 Nov 2023 08:06:45 +0000 (UTC) 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 C57D941F48 for ; Tue, 7 Nov 2023 08:06:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C57D941F48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699344403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fXeBefGwlV1BclOSI7h0fKlYkTAS8FzoMNvYoj5FM+o=; b=EB3PGPLoKPUJsOd22pBuTbPeUK12XRAXhoQ+v8ai6PKoh/Q2e/tH63K2wxCJIGJZvD0cb3 Rq0Od39LMzvlvWu/cmKSTrMVH4IZae5HPPEKhOK7Kxe37Oqxigkhqvh2BL10jNrzb06Ewg Z66KDogqkChBz4Yda9/uG52PzbPKFYE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-671-jNzbTmLqNCa9BfHVzlS8ww-1; Tue, 07 Nov 2023 03:06:41 -0500 X-MC-Unique: jNzbTmLqNCa9BfHVzlS8ww-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 97B6C38C6177 for ; Tue, 7 Nov 2023 08:06:41 +0000 (UTC) Received: from wsfd-netdev90.ntdv.lab.eng.bos.redhat.com (wsfd-netdev90.ntdv.lab.eng.bos.redhat.com [10.19.188.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D23E1C060AE; Tue, 7 Nov 2023 08:06:41 +0000 (UTC) From: Xavier Simonart To: xsimonar@redhat.com, dev@openvswitch.org Date: Tue, 7 Nov 2023 09:06:39 +0100 Message-Id: <20231107080641.2174415-1-xsimonar@redhat.com> In-Reply-To: <20231102144801.428760-2-xsimonar@redhat.com> References: <20231102144801.428760-2-xsimonar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn v2 0/2] FDB entries for localnet should not overwrite entries for vifs 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" *** BLURB HERE *** Xavier Simonart (2): controller: FDB entries for localnet should not overwrite entries for vifs controller: avoid extra flows if localnet_learn_fdb is disabled controller/binding.c | 12 ++ controller/binding.h | 3 + controller/lflow.c | 51 +++++- controller/lflow.h | 3 + controller/lport.c | 22 ++- controller/lport.h | 4 + controller/ovn-controller.c | 16 ++ controller/pinctrl.c | 31 +++- include/ovn/logical-fields.h | 5 + lib/logical-fields.c | 4 + northd/northd.c | 3 + northd/ovn-northd.8.xml | 37 ++++- ovn-sb.xml | 7 +- tests/ovn-northd.at | 2 +- tests/ovn.at | 300 +++++++++++++++++++++++++++++++++++ 15 files changed, 473 insertions(+), 27 deletions(-) Reviewed-by: Ales Musil