From patchwork Mon Dec 12 16:29:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Garver X-Patchwork-Id: 705084 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 3tcpGt4npHz9t0v for ; Tue, 13 Dec 2016 03:30:30 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 54350B2B; Mon, 12 Dec 2016 16:30:02 +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 51FD6258 for ; Mon, 12 Dec 2016 16:29:59 +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 F1DF81E6 for ; Mon, 12 Dec 2016 16:29:58 +0000 (UTC) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 62A028B137; Mon, 12 Dec 2016 16:29:58 +0000 (UTC) Received: from wsfd-netdev-buildsys.ntdv.lab.eng.bos.redhat.com (wsfd-netdev-buildsys.ntdv.lab.eng.bos.redhat.com [10.19.17.61]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uBCGTuqr032161; Mon, 12 Dec 2016 11:29:57 -0500 From: Eric Garver To: dev@openvswitch.org Date: Mon, 12 Dec 2016 11:29:50 -0500 Message-Id: <20161212162954.8743-3-e@erig.me> In-Reply-To: <20161212162954.8743-1-e@erig.me> References: <20161212162954.8743-1-e@erig.me> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 12 Dec 2016 16:29:58 +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 Cc: Thomas F Herbert Subject: [ovs-dev] [RFC PATCH v6 2/6] system-common-macros: Add macro to check for 802.1ad support. 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 macro OVS_CHECK_8021AD(). Signed-off-by: Eric Garver --- tests/system-common-macros.at | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 765ea8505325..3d59ba9d896d 100644 --- a/tests/system-common-macros.at +++ b/tests/system-common-macros.at @@ -236,3 +236,9 @@ m4_define([OVS_CHECK_GRE], # OVS_CHECK_GENEVE() m4_define([OVS_CHECK_GENEVE], [AT_SKIP_IF([! ip link add foo type geneve help 2>&1 | grep geneve >/dev/null])]) + +# OVS_CHECK_8021AD() +m4_define([OVS_CHECK_8021AD], + [AT_SKIP_IF([! grep "VLAN label stack" ovs-vswitchd.log]) + AT_SKIP_IF([test `sed -n 's/.*VLAN label stack length probed as \(\d*\)/\1/p' ovs-vswitchd.log` -lt 2]) + ])