Skip to content

Commit

Permalink
Document how to match any packet with a VLAN header.
Browse files Browse the repository at this point in the history
This one is actually useful, I don't know how I omitted it whenever I wrote
this documentation.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Justin Pettit <[email protected]>
  • Loading branch information
blp committed Mar 11, 2016
1 parent 5ffab04 commit 5fec03b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ version works.
[8] 0000/efff <none> <none> <none>
[9] 1001/1001 <none> <none> 1001/1001,--
[10] 3000/3000 <none> <none> <none>
[11] 1000/1000 <none> fffe/0,??/1 1000/1000,--

Each column is interpreted as follows.

Expand Down Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion utilities/ovs-ofctl.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fec03b

Please sign in to comment.