Home
last modified time | relevance | path

Searched refs:vlan_tci_mask (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c30 #define is_vlan_pcp_wildcarded(vlan_tci_mask) \ argument
31 ((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == 0x0000)
32 #define is_vlan_pcp_exactmatch(vlan_tci_mask) \ argument
33 ((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == VLAN_PRIO_MASK)
36 #define is_vid_exactmatch(vlan_tci_mask) \ argument
37 ((ntohs(vlan_tci_mask) & VLAN_VID_MASK) == VLAN_VID_MASK)
359 static bool is_vlan_tci_allowed(__be16 vlan_tci_mask, in is_vlan_tci_allowed() argument
365 if (is_vid_exactmatch(vlan_tci_mask) && in is_vlan_tci_allowed()
366 ((is_vlan_pcp_exactmatch(vlan_tci_mask) && in is_vlan_tci_allowed()
368 is_vlan_pcp_wildcarded(vlan_tci_mask))) in is_vlan_tci_allowed()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c191 u16 vlan_tci, vlan_tci_mask; in cxgb4_process_flow_match() local
196 vlan_tci_mask = match.mask->vlan_id | (match.mask->vlan_priority << in cxgb4_process_flow_match()
199 fs->mask.ivlan = vlan_tci_mask; in cxgb4_process_flow_match()