Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c33 #define is_vlan_pcp_wildcarded(vlan_tci_mask) \ argument
34 ((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == 0x0000)
35 #define is_vlan_pcp_exactmatch(vlan_tci_mask) \ argument
36 ((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == VLAN_PRIO_MASK)
39 #define is_vid_exactmatch(vlan_tci_mask) \ argument
40 ((ntohs(vlan_tci_mask) & VLAN_VID_MASK) == VLAN_VID_MASK)
558 static bool is_vlan_tci_allowed(__be16 vlan_tci_mask, in is_vlan_tci_allowed() argument
564 if (is_vid_exactmatch(vlan_tci_mask) && in is_vlan_tci_allowed()
565 ((is_vlan_pcp_exactmatch(vlan_tci_mask) && in is_vlan_tci_allowed()
567 is_vlan_pcp_wildcarded(vlan_tci_mask))) in is_vlan_tci_allowed()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c466 u16 vlan_tci, vlan_tci_mask; in otx2_tc_process_vlan() local
500 vlan_tci_mask = match.mask->vlan_id | in otx2_tc_process_vlan()
505 flow_mask->vlan_itci = htons(vlan_tci_mask); in otx2_tc_process_vlan()
509 flow_mask->vlan_tci = htons(vlan_tci_mask); in otx2_tc_process_vlan()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c273 u16 vlan_tci, vlan_tci_mask; in cxgb4_process_flow_match() local
278 vlan_tci_mask = match.mask->vlan_id | (match.mask->vlan_priority << in cxgb4_process_flow_match()
281 fs->mask.ivlan = vlan_tci_mask; in cxgb4_process_flow_match()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc.h571 u16 vlan_tci_mask; member
H A Digc_ethtool.c992 fsp->m_ext.vlan_tci = htons(rule->filter.vlan_tci_mask); in igc_ethtool_get_nfc_rule()
1227 rule->filter.vlan_tci_mask = ntohs(fsp->m_ext.vlan_tci); in igc_ethtool_init_nfc_rule()
1277 rule->filter.vlan_tci_mask == ntohs(VLAN_TCI_FULL_MASK)) || in igc_ethtool_init_nfc_rule()