flow_set_vlan_pcp(struct flow *flow, uint8_t pcp, int id)
{
    pcp &= 0x07;
    flow->vlans[id].tci &= ~htons(VLAN_PCP_MASK);
    flow->vlans[id].tci |= htons((pcp << VLAN_PCP_SHIFT) | VLAN_CFI);
}
flow_set_vlan_pcp(struct flow *flow, uint8_t pcp, int id)
{
    pcp &= 0x07;
    flow->vlans[id].tci &= ~htons(VLAN_PCP_MASK);
    flow->vlans[id].tci |= htons((pcp << VLAN_PCP_SHIFT) | VLAN_CFI);
}