| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp_vlan.c | 42 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ macro 77 & VLAN_VID_MASK; in parse_eth_frame() 90 & VLAN_VID_MASK; in parse_eth_frame()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | vlan_mangle.c | 17 u16 mask16 = VLAN_VID_MASK; in mlx5e_tc_act_vlan_add_rewrite_action() 18 u16 val16 = act->vlan.vid & VLAN_VID_MASK; in mlx5e_tc_act_vlan_add_rewrite_action()
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-switch.h | 175 u8 vlans[VLAN_VID_MASK + 1]; 204 u8 vlans[VLAN_VID_MASK + 1];
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | sriov.h | 32 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
|
| H A D | siena_sriov.c | 326 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_tx_filter() 364 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_rx_filter() 1623 tci = (vlan & VLAN_VID_MASK) | ((qos & 0x7) << VLAN_PRIO_SHIFT); in efx_siena_sriov_set_vf_vlan() 1671 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | sriov.c | 27 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_vlan.c | 59 id = TCI & VLAN_VID_MASK; in ebt_vlan_mt()
|
| /linux/net/batman-adv/ |
| H A D | main.h | 224 return (int)(vid & VLAN_VID_MASK); in batadv_print_vid()
|
| /linux/net/sched/ |
| H A D | act_vlan.c | 69 tci = (tci & ~VLAN_VID_MASK) | p->tcfv_push_vid; in tcf_vlan_act() 167 if (push_vid >= VLAN_VID_MASK) { in tcf_vlan_init()
|
| H A D | cls_flow.c | 238 return tag & VLAN_VID_MASK; in flow_get_rxhash()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_metadata.c | 47 #define VLAN_VID_MASK 0xfff macro 317 if (!ASSERT_EQ(meta->rx_vlan_tci & VLAN_VID_MASK, VLAN_ID, "rx_vlan_tci")) in verify_xsk_metadata()
|
| /linux/drivers/net/dsa/ |
| H A D | bcm_sf2_cfp.c | 883 if ((be16_to_cpu(fs->m_ext.vlan_tci) & VLAN_VID_MASK) != in bcm_sf2_cfp_rule_insert() 884 VLAN_VID_MASK) in bcm_sf2_cfp_rule_insert() 887 vid = be16_to_cpu(fs->h_ext.vlan_tci) & VLAN_VID_MASK; in bcm_sf2_cfp_rule_insert()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | xdp_hw_metadata.c | 212 #define VLAN_VID_MASK GENMASK(11, 0) /* VLAN Identifier */ macro 215 __u16 vlan_id = FIELD_GET(VLAN_VID_MASK, tag); in print_vlan_tci()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 1384 !((cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow() 1386 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow() 1387 cpu_to_be16(VLAN_VID_MASK))) in mlx4_en_validate_flow() 1412 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) { in mlx4_en_ethtool_add_mac_rule() 1414 spec_l2->eth.vlan_id_msk = cpu_to_be16(VLAN_VID_MASK); in mlx4_en_ethtool_add_mac_rule()
|
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | l2t.c | 103 V_L2T_W_VLAN(e->vlan & VLAN_VID_MASK) | in setup_l2e_send_pending()
|
| H A D | cxgb3_offload.c | 187 if (vlan && vlan != VLAN_VID_MASK) { in get_iff_from_mac() 420 VLAN_VID_MASK); in cxgb_offload_ctl()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_tc_lib.c | 1782 if (match.mask->vlan_id == VLAN_VID_MASK) { in ice_parse_cls_flower() 1786 VLAN_VID_MASK); in ice_parse_cls_flower() 1817 if (match.mask->vlan_id == VLAN_VID_MASK) { in ice_parse_cls_flower() 1821 VLAN_VID_MASK); in ice_parse_cls_flower()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 382 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs() 653 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan()
|
| /linux/net/dsa/ |
| H A D | tag_8021q.c | 552 tmp_vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv()
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_eth_soc.h | 376 #define RX_DMA_VID(x) ((x) & VLAN_VID_MASK) 377 #define RX_DMA_TCI(x) ((x) & (VLAN_PRIO_MASK | VLAN_VID_MASK))
|
| /linux/net/8021q/ |
| H A D | vlan.c | 225 if (vlan_id >= VLAN_VID_MASK) in register_vlan_device()
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 1055 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid() 1060 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm()
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_iov.c | 603 if (qos || (vid > (VLAN_VID_MASK - 1))) in fm10k_ndo_set_vf_vlan()
|
| /linux/net/smc/ |
| H A D | smc_ism.c | 455 smc_smcd_terminate(wrk->smcd, &smcd_gid, VLAN_VID_MASK); in smc_ism_event_work()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_txrx.c | 843 (vlan_tag & VLAN_VID_MASK)) in iavf_receive_skb() 846 vlan_tag & VLAN_VID_MASK) in iavf_receive_skb()
|