From patchwork Wed Jul 8 15:02:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceara X-Patchwork-Id: 1325265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: 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=cplOdfV1; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B22cR1K1lz9sRW for ; Thu, 9 Jul 2020 01:03:18 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 485192942D; Wed, 8 Jul 2020 15:03:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7xRQ562hczXZ; Wed, 8 Jul 2020 15:03:01 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 6B65529C5F; Wed, 8 Jul 2020 15:03:01 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4B0B5C077B; Wed, 8 Jul 2020 15:03:01 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id BE6B1C016F for ; Wed, 8 Jul 2020 15:03:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BA76788263 for ; Wed, 8 Jul 2020 15:03:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rOHq0AM2rC0w for ; Wed, 8 Jul 2020 15:02:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by hemlock.osuosl.org (Postfix) with ESMTPS id A186C88262 for ; Wed, 8 Jul 2020 15:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594220578; 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; bh=yE9jm0IE47bdbPl0bAcr7J2vx+pnlWC4og8NTvVRn00=; b=cplOdfV116E3sxxjxmRT0Jl0KOzcvFS+Vl2FJfL4TrY1o25/qnbE2DFgb2GxD6TAC12gp0 h74hR1qZmVFXdAkDpB3xHk8N/W8HFrqk5/Q0cxWc8c8vXaCgAxQpPNClmgyd3hCWPCdofr cralMbNVrTpNbQO6N6BwiOPvdzSS5eI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-490-DovcwIPoOi-G9-v1bCyPDg-1; Wed, 08 Jul 2020 11:02:56 -0400 X-MC-Unique: DovcwIPoOi-G9-v1bCyPDg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 78F581B2C986 for ; Wed, 8 Jul 2020 15:02:46 +0000 (UTC) Received: from dceara.remote.csb (ovpn-114-175.ams2.redhat.com [10.36.114.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id E099361981 for ; Wed, 8 Jul 2020 15:02:45 +0000 (UTC) From: Dumitru Ceara To: dev@openvswitch.org Date: Wed, 8 Jul 2020 17:02:43 +0200 Message-Id: <20200708150241.10666.61782.stgit@dceara.remote.csb> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dceara@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v2 ovn 0/2] Reduce number of openflows generated for limiting the broadcast domain. 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" Patch 1 fixes a memory leak in the code that generates the logical flows to limit the broadcast domain. This patch should be backported down to branch-20.03. Patch 2 reduces the number of openflows generated for handling of ARP/NS requests for DNAT IPs and LoadBalancer VIPs. Fixes: 32f5ebb06226 ("ovn-northd: Limit ARP/ND broadcast domain whenever possible.") Signed-off-by: Dumitru Ceara Dumitru Ceara (2): ovn-northd: Fix memory leak in build_lswitch_rport_arp_req_flows(). ovn-northd: Fix logical flows to limit ARP/NS broadcast domain. northd/ovn-northd.c | 160 +++++++++++++++++++++++++++++++++++++++++++-------- tests/ovn.at | 74 ++++++++++++++++++++++++ 2 files changed, 210 insertions(+), 24 deletions(-) --- v2: - Changed the fix into a series, such that the memory leak fix can be easily backported to stable branches. - Fixed the "Fixes" tag.