2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

Use VLAN_PCP_SHIFT consistently, instead of open-coding "13".

Reported-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
Ben Pfaff
2010-02-12 13:54:19 -08:00
parent 4380e924b2
commit d42c4f8dc1
2 changed files with 4 additions and 3 deletions

View File

@@ -1273,8 +1273,9 @@ dp_netdev_execute_actions(struct dp_netdev *dp,
break;
case ODPAT_SET_VLAN_PCP:
dp_netdev_modify_vlan_tci(packet, key, a->vlan_pcp.vlan_pcp << 13,
VLAN_PCP_MASK);
dp_netdev_modify_vlan_tci(
packet, key, a->vlan_pcp.vlan_pcp << VLAN_PCP_SHIFT,
VLAN_PCP_MASK);
break;
case ODPAT_STRIP_VLAN: