Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.h53 u8 vlans[VLAN_VID_MASK + 1];
67 u8 vlans[VLAN_VID_MASK + 1];
/Linux-v5.4/tools/testing/selftests/bpf/progs/
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-v5.4/drivers/net/ethernet/sfc/
Dsriov.c27 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
Dsiena_sriov.c324 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_tx_filter()
362 vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK; in efx_siena_sriov_reset_rx_filter()
1622 tci = (vlan & VLAN_VID_MASK) | ((qos & 0x7) << VLAN_PRIO_SHIFT); in efx_siena_sriov_set_vf_vlan()
1670 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config()
/Linux-v5.4/net/bridge/netfilter/
Debt_vlan.c59 id = TCI & VLAN_VID_MASK; in ebt_vlan_mt()
/Linux-v5.4/net/sched/
Dact_vlan.c71 tci = (tci & ~VLAN_VID_MASK) | p->tcfv_push_vid; in tcf_vlan_act()
153 if (push_vid >= VLAN_VID_MASK) { in tcf_vlan_init()
Dcls_flow.c232 return tag & VLAN_VID_MASK; in flow_get_vlan_tag()
/Linux-v5.4/net/smc/
Dsmc_ism.c247 smc_smcd_terminate(wrk->smcd, wrk->event.tok, VLAN_VID_MASK); in smc_ism_event_work()
318 smc_smcd_terminate(smcd, 0, VLAN_VID_MASK); in smcd_unregister_dev()
Dsmc_core.c521 (vlan == VLAN_VID_MASK || lgr->vlan_id == vlan)) { in smc_smcd_terminate()
532 if (!peer_gid && vlan == VLAN_VID_MASK) /* dev terminated? */ in smc_smcd_terminate()
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c185 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_VID_MASK) { in aq_check_filter()
409 (be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK)) { in aq_set_data_fvlan()
416 & VLAN_VID_MASK; in aq_set_data_fvlan()
587 == VLAN_VID_MASK) { in aq_add_del_rule()
/Linux-v5.4/include/linux/
Dif_vlan.h64 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */ macro
77 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK)
/Linux-v5.4/net/batman-adv/
Dmain.h232 return (int)(vid & VLAN_VID_MASK); in batadv_print_vid()
Dmain.c657 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
/Linux-v5.4/net/bridge/
Dbr_arp_nd_proxy.c73 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_arp_send()
339 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send()
Dbr_netlink_tunnel.c240 if (vid >= VLAN_VID_MASK) in br_parse_vlan_tunnel_info()
/Linux-v5.4/net/dsa/
Dtag_sja1105.c258 vid = tci & VLAN_VID_MASK; in sja1105_rcv()
/Linux-v5.4/net/8021q/
Dvlan_netlink.c75 if (id >= VLAN_VID_MASK) { in vlan_validate()
Dvlan.c222 if (vlan_id >= VLAN_VID_MASK) in register_vlan_device()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1375 !((cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow()
1377 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow()
1378 cpu_to_be16(VLAN_VID_MASK))) in mlx4_en_validate_flow()
1404 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) { in mlx4_en_ethtool_add_mac_rule()
1406 spec_l2->eth.vlan_id_msk = cpu_to_be16(VLAN_VID_MASK); in mlx4_en_ethtool_add_mac_rule()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c358 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs()
594 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.c103 V_L2T_W_VLAN(e->vlan & VLAN_VID_MASK) | in setup_l2e_send_pending()
Dcxgb3_offload.c187 if (vlan && vlan != VLAN_VID_MASK) { in get_iff_from_mac()
420 VLAN_VID_MASK); in cxgb_offload_ctl()
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c582 if (qos || (vid > (VLAN_VID_MASK - 1))) in fm10k_ndo_set_vf_vlan()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_fid.c587 .end_index = VLAN_VID_MASK,
874 VLAN_VID_MASK - 2)
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1064 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid()
1069 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm()

123