Home
last modified time | relevance | path

Searched refs:VLAN_VID_MASK (Results 1 – 25 of 89) sorted by relevance

1234

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_xdp_vlan.c42 #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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
A Dvlan_mangle.c17 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-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch.h153 u8 vlans[VLAN_VID_MASK + 1];
180 u8 vlans[VLAN_VID_MASK + 1];
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/
A Daq_filters.c168 (!test_bit(be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK, in aq_check_approve_fvlan()
192 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_VID_MASK) { in aq_check_filter()
417 (be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK)) { in aq_set_data_fvlan()
424 & VLAN_VID_MASK; in aq_set_data_fvlan()
595 == VLAN_VID_MASK) { in aq_add_del_rule()
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/
A Dsriov.h32 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
A Dsiena_sriov.c326 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()
1624 tci = (vlan & VLAN_VID_MASK) | ((qos & 0x7) << VLAN_PRIO_SHIFT); in efx_siena_sriov_set_vf_vlan()
1672 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Dsriov.c27 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
/linux-6.3-rc2/net/bridge/netfilter/
A Debt_vlan.c59 id = TCI & VLAN_VID_MASK; in ebt_vlan_mt()
/linux-6.3-rc2/include/linux/
A Dif_vlan.h68 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ macro
81 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK)
/linux-6.3-rc2/net/batman-adv/
A Dmain.h230 return (int)(vid & VLAN_VID_MASK); in batadv_print_vid()
A Dmain.c636 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
/linux-6.3-rc2/net/sched/
A Dact_vlan.c72 tci = (tci & ~VLAN_VID_MASK) | p->tcfv_push_vid; in tcf_vlan_act()
169 if (push_vid >= VLAN_VID_MASK) { in tcf_vlan_init()
/linux-6.3-rc2/net/bridge/
A Dbr_arp_nd_proxy.c73 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_arp_send()
350 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send()
A Dbr_netlink_tunnel.c243 if (vid >= VLAN_VID_MASK) in br_parse_vlan_tunnel_info()
/linux-6.3-rc2/net/8021q/
A Dvlan_netlink.c75 if (id >= VLAN_VID_MASK) { in vlan_validate()
/linux-6.3-rc2/net/dsa/
A Dtag_sja1105.c527 if (vid_is_dsa_8021q(vlan_tci & VLAN_VID_MASK)) in sja1105_vlan_rcv()
531 *vid = vlan_tci & VLAN_VID_MASK; in sja1105_vlan_rcv()
A Dtag_8021q.c514 vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv()
/linux-6.3-rc2/drivers/net/dsa/
A Dbcm_sf2_cfp.c883 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c1403 !((cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow()
1405 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow()
1406 cpu_to_be16(VLAN_VID_MASK))) in mlx4_en_validate_flow()
1431 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) { in mlx4_en_ethtool_add_mac_rule()
1433 spec_l2->eth.vlan_id_msk = cpu_to_be16(VLAN_VID_MASK); in mlx4_en_ethtool_add_mac_rule()
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_txrx_lib.c213 bool non_zero_vlan = !!(vlan_tag & VLAN_VID_MASK); in ice_receive_skb()
A Dice_tc_lib.c1444 if (match.mask->vlan_id == VLAN_VID_MASK) { in ice_parse_cls_flower()
1448 VLAN_VID_MASK); in ice_parse_cls_flower()
1477 if (match.mask->vlan_id == VLAN_VID_MASK) { in ice_parse_cls_flower()
1481 VLAN_VID_MASK); in ice_parse_cls_flower()
/linux-6.3-rc2/drivers/net/ethernet/mscc/
A Docelot_flower.c846 if (filter->vlan.vid.mask != VLAN_VID_MASK) { in ocelot_flower_patch_es0_vlan_modify()
853 filter->action.vid_a_val &= VLAN_VID_MASK; in ocelot_flower_patch_es0_vlan_modify()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb3/
A Dl2t.c103 V_L2T_W_VLAN(e->vlan & VLAN_VID_MASK) | in setup_l2e_send_pending()
/linux-6.3-rc2/drivers/net/ethernet/mediatek/
A Dmtk_eth_soc.h339 #define RX_DMA_VID(x) ((x) & VLAN_VID_MASK)
340 #define RX_DMA_TCI(x) ((x) & (VLAN_PRIO_MASK | VLAN_VID_MASK))
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c386 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs()
657 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan()

Completed in 70 milliseconds

1234