Message ID | 20200928100802.25333.36491.stgit@dceara.remote.csb |
---|---|
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> 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=<UNKNOWN>) 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=B2SNvJdc; 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 4C0JBK0Nnmz9sS8 for <incoming@patchwork.ozlabs.org>; Mon, 28 Sep 2020 20:08:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8CBB02045A; Mon, 28 Sep 2020 10:08:22 +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 L1kln5hlykco; Mon, 28 Sep 2020 10:08:18 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id EAA1C20423; Mon, 28 Sep 2020 10:08:17 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C9088C016F; Mon, 28 Sep 2020 10:08:17 +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 B9D12C0051 for <dev@openvswitch.org>; Mon, 28 Sep 2020 10:08:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A30EC86F88 for <dev@openvswitch.org>; Mon, 28 Sep 2020 10:08:16 +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 EbyTdgi8URh9 for <dev@openvswitch.org>; Mon, 28 Sep 2020 10:08:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by hemlock.osuosl.org (Postfix) with ESMTPS id A00E986F7D for <dev@openvswitch.org>; Mon, 28 Sep 2020 10:08:15 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601287694; 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=XgHqVpWCwxhLT4+Lpry3A/EFt/9hUTjUpoBJID7jxZ8=; b=B2SNvJdcpcSvQgUKaZ4ExEXPPZNnR7c7+kRVRN8+VYlJ7yvTXVmdkBzMz9jodJ2yyJkr9I idg5+0kisxLIuKZYIZNCXBgnOYdNOCBCpDtHPmoOsLmrjB8K+fKvRIPxf8RGFkb4hH6NG+ DaXfTldjyGU83A1QWWKammfHd+MVw4E= 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-51-oaTtDzMPNVqRoUEIiDk31A-1; Mon, 28 Sep 2020 06:08:12 -0400 X-MC-Unique: oaTtDzMPNVqRoUEIiDk31A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D45A1882FB4 for <dev@openvswitch.org>; Mon, 28 Sep 2020 10:08:11 +0000 (UTC) Received: from dceara.remote.csb (ovpn-113-160.ams2.redhat.com [10.36.113.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1DEFA73662 for <dev@openvswitch.org>; Mon, 28 Sep 2020 10:08:10 +0000 (UTC) From: Dumitru Ceara <dceara@redhat.com> To: dev@openvswitch.org Date: Mon, 28 Sep 2020 12:08:03 +0200 Message-Id: <20200928100802.25333.36491.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.13 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 v4 ovn 0/2] Drop packets destined to own IPs and refactor SNAT processing. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
Drop packets destined to own IPs and refactor SNAT processing.
|
expand
|
The series refactors logical flow processing for SNAT trying to make it a bit more efficient while reducing code duplication. CC: Numan Siddique <numans@ovn.org> CC: Han Zhou <hzhou@ovn.org> Signed-off-by: Dumitru Ceara <dceara@redhat.com> Dumitru Ceara (2): ovn-northd: Refactor parsing of *_force_snat_ip. ovn-northd: Refactor processing of SNAT IPs. lib/ovn-util.c | 6 + lib/ovn-util.h | 2 northd/ovn-northd.c | 375 +++++++++++++++++++++++++++------------------------ tests/ovn-northd.at | 19 +++ 4 files changed, 225 insertions(+), 177 deletions(-) --- V4: - dropped first two patches because they were already applied. - addressed Han's and Numan's comments. - added Han's acks. V3: - turned the patch in a series (bug fix + refactoring) - patch1: - implement Numan's suggestion to avoid redundant flows in lr_in_arp_resolve. V2: - rebased changes.