diff options
author | Ben Pfaff <blp@nicira.com> | 2010-11-23 10:15:43 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-12-13 13:21:05 -0800 |
commit | 8ca67760440e4a779711eaeea31cc66b7bc8ecf4 (patch) | |
tree | 9d9f67e27c5d3bb63b44a71193a2905ee1d5e38d /include | |
parent | 8e801baacf583059c918f3eb194d86d0f95e8092 (diff) | |
download | openvswitch-8ca67760440e4a779711eaeea31cc66b7bc8ecf4.tar.gz |
nicira-ext: Correct and extend examples for NXM_OF_VLAN_TCI field.
The final example for this field was wrong. This corrects it and adds
two more examples.
Reported-by: Natasha Gude <natasha@nicira.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/openflow/nicira-ext.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h index 135f793ed..cdccb3019 100644 --- a/include/openflow/nicira-ext.h +++ b/include/openflow/nicira-ext.h @@ -761,8 +761,14 @@ OFP_ASSERT(sizeof(struct nx_action_note) == 16); * - Testing with a specific PCP and CFI=1, with nxm_mask=0xf000, matches * packets that have an 802.1Q header with that PCP (and any VID). * - * - Testing with nxm_value=0, nxm_mask=0xe000 matches packets with no 802.1Q + * - Testing with nxm_value=0, nxm_mask=0x0fff matches packets with no 802.1Q * header or with an 802.1Q header with a VID of 0. + * + * - Testing with nxm_value=0, nxm_mask=0xe000 matches packets with no 802.1Q + * header or with an 802.1Q header with a PCP of 0. + * + * - Testing with nxm_value=0, nxm_mask=0xefff matches packets with no 802.1Q + * header or with an 802.1Q header with both VID and PCP of 0. */ #define NXM_OF_VLAN_TCI NXM_HEADER (0x0000, 4, 2) #define NXM_OF_VLAN_TCI_W NXM_HEADER_W(0x0000, 4, 2) |