lib/match.c
/* Modifies 'match' so that it matches only packets with an 802.1Q header whose
 * PCP equals the low 3 bits of 'dl_vlan_pcp'. */
Modifies 'match' so that it matches only packets with an 802.1Q header whose
PCP equals the low 3 bits of 'dl_vlan_pcp'.
Modifies ' match ' so that it matches only packets with an 802 . 1Q header whose PCP equals the low 3 bits of ' dl_vlan_pcp ' .
void
match_set_dl_vlan_pcp(struct match *match, uint8_t dl_vlan_pcp, int id)
{
    flow_set_vlan_pcp(&match->flow, dl_vlan_pcp, id);
    match->wc.masks.vlans[id].tci |= htons(VLAN_CFI | VLAN_PCP_MASK);
}
void match_set_dl_vlan_pcp ( struct match * match , uint8_t dl_vlan_pcp , int id ) { flow_set_vlan_pcp ( & match -> flow , dl_vlan_pcp , id ) ; match -> wc . masks . vlans [ id ] . tci |= htons ( VLAN_CFI | VLAN_PCP_MASK ) ; }
Modifies 'match' so that it matches only packets with an 802.1Q header whose
 PCP equals the low 3 bits of 'dl_vlan_pcp'.
Modifies ' match ' so that it matches only packets with an 802 . 1Q header whose PCP equals the low 3 bits of ' dl_vlan_pcp ' .