Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/bpf/progs/
H 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/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H 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/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.h153 u8 vlans[VLAN_VID_MASK + 1];
180 u8 vlans[VLAN_VID_MASK + 1];
/linux/drivers/net/ethernet/aquantia/atlantic/
H 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/drivers/net/ethernet/sfc/siena/
H A Dsriov.h32 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
H 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/drivers/net/ethernet/sfc/
H A Dsriov.c27 if ((vlan & ~VLAN_VID_MASK) || in efx_sriov_set_vf_vlan()
/linux/net/bridge/netfilter/
H A Debt_vlan.c59 id = TCI & VLAN_VID_MASK; in ebt_vlan_mt()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_metadata.c47 #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/net/bridge/
H A Dbr_netlink_tunnel.c243 if (vid >= VLAN_VID_MASK) in br_parse_vlan_tunnel_info()
H A Dbr_netfilter_hooks.c443 skb_vlan_tag_get(skb) & VLAN_VID_MASK); in brnf_get_logical_dev()
/linux/net/8021q/
H A Dvlan_netlink.c75 if (id >= VLAN_VID_MASK) { in vlan_validate()
H A Dvlan.c225 if (vlan_id >= VLAN_VID_MASK) in register_vlan_device()
/linux/tools/testing/selftests/bpf/
H A Dxdp_hw_metadata.c212 #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/chelsio/cxgb3/
H A Dl2t.c103 V_L2T_W_VLAN(e->vlan & VLAN_VID_MASK) | in setup_l2e_send_pending()
/linux/net/dsa/
H A Dtag_8021q.c552 tmp_vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.h376 #define RX_DMA_VID(x) ((x) & VLAN_VID_MASK)
377 #define RX_DMA_TCI(x) ((x) & (VLAN_PRIO_MASK | VLAN_VID_MASK))
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c261 match.mask->vlan_id != VLAN_VID_MASK) { in sja1105_flower_parse_key()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_iov.c603 if (qos || (vid > (VLAN_VID_MASK - 1))) in fm10k_ndo_set_vf_vlan()
/linux/net/sched/
H A Dcls_flow.c233 return tag & VLAN_VID_MASK; in flow_get_vlan_tag()
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_rxtx.c252 u16 tci = dsa.vlan.vid & VLAN_VID_MASK; in prestera_rxtx_process_skb()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c843 (vlan_tag & VLAN_VID_MASK)) in iavf_receive_skb()
846 vlan_tag & VLAN_VID_MASK) in iavf_receive_skb()
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c697 VLAN_VID_MASK; in qedr_gsi_poll_cq()
/linux/net/batman-adv/
H A Doriginator.c140 unsigned short non_vlan = vid & ~(BATADV_VLAN_HAS_TAG | VLAN_VID_MASK); in batadv_vlan_id_valid()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c40 ((ntohs(vlan_tci_mask) & VLAN_VID_MASK) == VLAN_VID_MASK)

123