From patchwork Tue Aug 29 04:30:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roi Dayan X-Patchwork-Id: 806940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) 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 3xhG1Z5f09z9s7c for ; Tue, 29 Aug 2017 14:31:46 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id E13E0A67; Tue, 29 Aug 2017 04:30:34 +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 0D6BE95E for ; Tue, 29 Aug 2017 04:30:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 250373DD for ; Tue, 29 Aug 2017 04:30:30 +0000 (UTC) Received: from Internal Mail-Server by MTLPINE1 (envelope-from roid@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 Aug 2017 07:30:27 +0300 Received: from dev-r-vrt-189.mtr.labs.mlnx (dev-r-vrt-189.mtr.labs.mlnx [10.212.189.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v7T4UQP7026904; Tue, 29 Aug 2017 07:30:27 +0300 From: Roi Dayan To: dev@openvswitch.org Date: Tue, 29 Aug 2017 07:30:24 +0300 Message-Id: <1503981024-3627-3-git-send-email-roid@mellanox.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1503981024-3627-1-git-send-email-roid@mellanox.com> References: <1503981024-3627-1-git-send-email-roid@mellanox.com> X-Spam-Status: No, score=0.0 required=5.0 tests=RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Simon Horman Subject: [ovs-dev] [PATCH 2/2] tests/odp: Add set vlan test to odp testsuite 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 From: Paul Blakey We support parsing set(vlan(vid,pcp,cfi)) so let's test it. Signed-off-by: Paul Blakey Reviewed-by: Roi Dayan Acked-by: Simon Horman --- tests/odp.at | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/odp.at b/tests/odp.at index 0e8cbed..cd01b32 100644 --- a/tests/odp.at +++ b/tests/odp.at @@ -294,6 +294,11 @@ set(ipv6(label=0,proto=10,hlimit=128)) set(ipv6(label=0/0xfff,proto=10,tclass=0x70/0x70)) set(ipv6(label=0)) set(icmpv6(type=1,code=2)) +set(vlan(vid=5)) +set(vlan(vid=3,pcp=5)) +set(vlan(vid=3,pcp=5,cfi=0)) +set(vlan(vid=5/0x3)) +set(vlan(vid=5/0x1)),3 push_vlan(vid=12,pcp=0) push_vlan(vid=13,pcp=5,cfi=0) push_vlan(tpid=0x9100,vid=13,pcp=5)