datapath: Fix validation of ODPAT_SET_VLAN_PCP actions.
authorJean Tourrilhes <jt@hpl.hp.com>
Thu, 8 Oct 2009 17:37:43 +0000 (10:37 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 8 Oct 2009 17:41:48 +0000 (10:41 -0700)
commita4fbb689b03ad18651ee119ba5ce0ff8cf8d95b5
tree1187b766d790a92899dc27fc7b9d24d5e3c33af7
parente7f327ff6bd90bb0ce695ca71054d17829a16888
datapath: Fix validation of ODPAT_SET_VLAN_PCP actions.

The VLAN PCP mask is in the rightmost bits of the vlan_pcp member but we
were checking for it in its position in the VLAN tag field instead.

Slightly modified from Jean's original patch by adding and using the
VLAN_PCP_SHIFT macro.
datapath/datapath.c
datapath/datapath.h