From patchwork Fri Mar 11 01:46:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 596025 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 7A66B1402A8 for ; Fri, 11 Mar 2016 12:46:20 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 9E42E10AD1; Thu, 10 Mar 2016 17:46:19 -0800 (PST) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id E607D10A5E for ; Thu, 10 Mar 2016 17:46:18 -0800 (PST) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 53D30162181 for ; Thu, 10 Mar 2016 18:46:18 -0700 (MST) X-ASG-Debug-ID: 1457660777-0b32370eb90b630001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar6.cudamail.com with ESMTP id dSBJcLKgPQMgy0vw (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 10 Mar 2016 18:46:17 -0700 (MST) X-Barracuda-Envelope-From: blp@ovn.org X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO relay3-d.mail.gandi.net) (217.70.183.195) by mx1-pf2.cudamail.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 11 Mar 2016 01:46:17 -0000 Received-SPF: pass (mx1-pf2.cudamail.com: SPF record at ovn.org designates 217.70.183.195 as permitted sender) X-Barracuda-Apparent-Source-IP: 217.70.183.195 X-Barracuda-RBL-IP: 217.70.183.195 Received: from mfilter34-d.gandi.net (mfilter34-d.gandi.net [217.70.178.165]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 4446CA80CF; Fri, 11 Mar 2016 02:46:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter34-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter34-d.gandi.net (mfilter34-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id izpUQnmHD6zk; Fri, 11 Mar 2016 02:46:13 +0100 (CET) X-Originating-IP: 208.91.2.3 Received: from sigabrt.benpfaff.org (unknown [208.91.2.3]) (Authenticated sender: blp@ovn.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id CD8F4A80CD; Fri, 11 Mar 2016 02:46:12 +0100 (CET) X-CudaMail-Envelope-Sender: blp@ovn.org From: Ben Pfaff To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-309103894 X-CudaMail-DTE: 031016 X-CudaMail-Originating-IP: 217.70.183.195 Date: Thu, 10 Mar 2016 17:46:10 -0800 X-ASG-Orig-Subj: [##CM-E2-309103894##][PATCH v2] Document how to match any packet with a VLAN header. Message-Id: <1457660770-22327-1-git-send-email-blp@ovn.org> X-Mailer: git-send-email 2.1.3 X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1457660777 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH v2] Document how to match any packet with a VLAN header. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" This one is actually useful, I don't know how I omitted it whenever I wrote this documentation. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- Supersedes http://openvswitch.org/pipermail/dev/2016-March/067562.html DESIGN.md | 4 ++++ utilities/ovs-ofctl.8.in | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/DESIGN.md b/DESIGN.md index 6865d47..a330312 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -426,6 +426,7 @@ version works. [8] 0000/efff [9] 1001/1001 1001/1001,-- [10] 3000/3000 + [11] 1000/1000 fffe/0,??/1 1000/1000,-- Each column is interpreted as follows. @@ -512,6 +513,9 @@ The matches are: is just an example; one can match on any desired VID bit pattern.) +[11] Matches any packet with an 802.1Q header, regardless of VID or + PCP. + Additional notes: - OF1.2: The top three bits of OXM_OF_VLAN_VID are fixed to zero, diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in index bc3ddae..1b0718d 100644 --- a/utilities/ovs-ofctl.8.in +++ b/utilities/ovs-ofctl.8.in @@ -1051,7 +1051,10 @@ header with the CFI bit (with value \fB0x1000\fR) forced to 1. Examples: .RS .IP \fBvlan_tci=0\fR -Match only packets without an 802.1Q header. +Match packets without an 802.1Q header. +.IP \fBvlan_tci=0x1000/0x1000\fR +Match packets with an 802.1Q header, regardless of VLAN and priority +values. .IP \fBvlan_tci=0xf123\fR Match packets tagged with priority 7 in VLAN 0x123. .IP \fBvlan_tci=0x1123/0x1fff\fR