From patchwork Wed Jun 7 23:54:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Garver X-Patchwork-Id: 772736 X-Patchwork-Delegate: joestringer@nicira.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wjlnT3YD1z9s9Y for ; Thu, 8 Jun 2017 09:56:13 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 5C35CBAD; Wed, 7 Jun 2017 23:54:32 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id EAF67B92 for ; Wed, 7 Jun 2017 23:54:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A5836138 for ; Wed, 7 Jun 2017 23:54:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A4E0C04B310 for ; Wed, 7 Jun 2017 23:54:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0A4E0C04B310 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=erig.me Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=e@erig.me DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0A4E0C04B310 Received: from dev-rhel7.localdomain (wsfd-netdev-vmhost.ntdv.lab.eng.bos.redhat.com [10.19.17.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC6D881EC9 for ; Wed, 7 Jun 2017 23:54:28 +0000 (UTC) From: Eric Garver To: dev@openvswitch.org Date: Wed, 7 Jun 2017 19:54:25 -0400 Message-Id: <20170607235427.15324-3-e@erig.me> In-Reply-To: <20170607235427.15324-1-e@erig.me> References: <20170607235427.15324-1-e@erig.me> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 07 Jun 2017 23:54:29 +0000 (UTC) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH 2/4] system-common-macros: Add macros to create IPv6 tunnels X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Add simple macros to wrap existing tunnel create macros, but lowers the MTU enough to allow IPv6 underlay. Signed-off-by: Eric Garver --- tests/system-common-macros.at | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index f45463ab6957..8de356dcd63e 100644 --- a/tests/system-common-macros.at +++ b/tests/system-common-macros.at @@ -178,6 +178,16 @@ m4_define([ADD_OVS_TUNNEL], ] ) +# ADD_OVS_TUNNEL6([type], [bridge], [port], [remote-addr], [overlay-addr]) +# +# Same as ADD_OVS_TUNNEL, but drops MTU enough for the IPv6 underlay. +# +m4_define([ADD_OVS_TUNNEL6], + [ADD_OVS_TUNNEL([$1], [$2], [$3], [$4], [$5]) + AT_CHECK([ip link set dev $2 mtu 1430]) + ] +) + # ADD_NATIVE_TUNNEL([type], [port], [namespace], [remote-addr], [overlay-addr], # [type-args], [link-args]) # @@ -199,6 +209,17 @@ m4_define([ADD_NATIVE_TUNNEL], ] ) +# ADD_NATIVE_TUNNEL6([type], [port], [namespace], [remote-addr], [overlay-addr], +# [type-args], [link-args]) +# +# Same as ADD_NATIVE_TUNNEL, but drops MTU enough for the IPv6 underlay. +# +m4_define([ADD_NATIVE_TUNNEL6], + [ADD_NATIVE_TUNNEL([$1], [$2], [$3], [$4], [$5], [$6], [$7]) + NS_CHECK_EXEC([$3], [ip link set dev $2 mtu 1430]) + ] +) + # FORMAT_PING([]) # # Strip variant pieces from ping output so the output can be reliably compared.