Home
last modified time | relevance | path

Searched refs:vlan_tci (Results 1 – 25 of 110) sorted by relevance

12345

/openbmc/linux/include/linux/
H A Dif_vlan.h88 #define skb_vlan_tag_get(__skb) ((__skb)->vlan_tci)
89 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK)
90 #define skb_vlan_tag_get_cfi(__skb) (!!((__skb)->vlan_tci & VLAN_CFI_MASK))
91 #define skb_vlan_tag_get_prio(__skb) (((__skb)->vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
349 __be16 vlan_proto, u16 vlan_tci, in __vlan_insert_inner_tag() argument
381 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag()
398 __be16 vlan_proto, u16 vlan_tci) in __vlan_insert_tag() argument
400 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); in __vlan_insert_tag()
420 u16 vlan_tci, in vlan_insert_inner_tag() argument
425 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag()
[all …]
/openbmc/linux/include/linux/dsa/
H A Docelot.h217 static inline void ocelot_xfh_get_vlan_tci(void *extraction, u64 *vlan_tci) in ocelot_xfh_get_vlan_tci() argument
219 packing(extraction, vlan_tci, 15, 0, OCELOT_TAG_LEN, UNPACK, 0); in ocelot_xfh_get_vlan_tci()
257 static inline void ocelot_ifh_set_vlan_tci(void *injection, u64 vlan_tci) in ocelot_ifh_set_vlan_tci() argument
259 packing(injection, &vlan_tci, 15, 0, OCELOT_TAG_LEN, PACK, 0); in ocelot_ifh_set_vlan_tci()
297 u64 *vlan_tci, u64 *tag_type) in ocelot_xmit_get_vlan_info() argument
303 *vlan_tci = 0; in ocelot_xmit_get_vlan_info()
313 *vlan_tci = tci; in ocelot_xmit_get_vlan_info()
318 *vlan_tci = tci; in ocelot_xmit_get_vlan_info()
/openbmc/linux/net/dsa/
H A Dtag_ocelot.c16 u64 vlan_tci, tag_type; in ocelot_xmit_common() local
22 ocelot_xmit_get_vlan_info(skb, dsa_port_bridge_dev_get(dp), &vlan_tci, in ocelot_xmit_common()
36 ocelot_ifh_set_vlan_tci(injection, vlan_tci); in ocelot_xmit_common()
74 u64 vlan_tci, tag_type; in ocelot_rcv() local
108 ocelot_xfh_get_vlan_tci(extraction, &vlan_tci); in ocelot_rcv()
150 __vlan_hwaccel_put_tag(skb, htons(vlan_tpid), vlan_tci); in ocelot_rcv()
H A Dtag_sja1105.c483 u16 vlan_tci; in sja1105_vlan_rcv() local
486 vlan_tci = skb_vlan_tag_get(skb); in sja1105_vlan_rcv()
488 vlan_tci = ntohs(hdr->h_vlan_TCI); in sja1105_vlan_rcv()
490 if (vid_is_dsa_8021q(vlan_tci & VLAN_VID_MASK)) in sja1105_vlan_rcv()
494 *vid = vlan_tci & VLAN_VID_MASK; in sja1105_vlan_rcv()
/openbmc/linux/net/bridge/
H A Dbr_arp_nd_proxy.c48 __be16 vlan_proto, u16 vlan_tci) in br_arp_send() argument
57 if (!vlan_tci) { in br_arp_send()
73 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_arp_send()
74 vlan_tci = 0; in br_arp_send()
76 if (vlan_tci) in br_arp_send()
77 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in br_arp_send()
251 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument
350 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send()
351 vlan_tci = 0; in br_nd_send()
353 if (vlan_tci) in br_nd_send()
[all …]
/openbmc/linux/drivers/net/dsa/
H A Dbcm_sf2_cfp.c266 const __be16 vlan_tci, in bcm_sf2_cfp_slice_ipv4() argument
276 reg = udf_lower_bits(num_udf) << 24 | be16_to_cpu(vlan_tci) >> 8; in bcm_sf2_cfp_slice_ipv4()
286 reg = (u32)(be16_to_cpu(vlan_tci) & 0xff) << 24; in bcm_sf2_cfp_slice_ipv4()
351 __be16 vlan_tci = 0, vlan_m_tci = htons(0xffff); in bcm_sf2_cfp_ipv4_rule_set() local
379 vlan_tci = fs->h_ext.vlan_tci; in bcm_sf2_cfp_ipv4_rule_set()
380 vlan_m_tci = fs->m_ext.vlan_tci; in bcm_sf2_cfp_ipv4_rule_set()
445 bcm_sf2_cfp_slice_ipv4(priv, ipv4.key, ports.key, vlan_tci, in bcm_sf2_cfp_ipv4_rule_set()
484 const __be16 vlan_tci, in bcm_sf2_cfp_slice_ipv6() argument
494 reg = udf_bits << 24 | be16_to_cpu(vlan_tci) >> 8; in bcm_sf2_cfp_slice_ipv6()
506 val |= (u32)(be16_to_cpu(vlan_tci) & 0xff) << 24; in bcm_sf2_cfp_slice_ipv6()
[all …]
/openbmc/linux/include/net/
H A Derspan.h184 u16 vlan_tci = 0; in erspan_build_header() local
199 vlan_tci = ntohs(qp->tci); in erspan_build_header()
212 set_vlan(ershdr, vlan_tci); in erspan_build_header()
278 u16 vlan_tci = 0; in erspan_build_header_v2() local
293 vlan_tci = ntohs(qp->tci); in erspan_build_header_v2()
306 set_vlan(ershdr, vlan_tci); in erspan_build_header_v2()
/openbmc/linux/net/sched/
H A Dsch_frag.c14 u16 vlan_tci; member
35 if (data->vlan_tci & VLAN_CFI_MASK) in sch_frag_xmit()
37 data->vlan_tci & ~VLAN_CFI_MASK); in sch_frag_xmit()
62 data->vlan_tci = skb_vlan_tag_get(skb) | VLAN_CFI_MASK; in sch_frag_prepare_frag()
64 data->vlan_tci = 0; in sch_frag_prepare_frag()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c141 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK && in aq_check_approve_fl2()
168 (!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()
194 } else if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK) { in aq_check_filter()
199 be16_to_cpu(fsp->m_ext.vlan_tci)); in aq_check_filter()
324 data->user_priority_en = be16_to_cpu(fsp->m_ext.vlan_tci) in aq_set_data_fl2()
326 data->user_priority = (be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fl2()
417 (be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK)) { in aq_set_data_fvlan()
423 aq_vlans[location].vlan_id = be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fvlan()
439 if (be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) in aq_del_fvlan_by_vlan()
[all …]
/openbmc/linux/include/trace/events/
H A Dnet.h26 __field( u16, vlan_tci )
46 __entry->vlan_tci = skb_vlan_tag_get(skb);
64 __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci,
178 __field( u16, vlan_tci )
204 __entry->vlan_tci = skb_vlan_tag_get(skb);
222 __entry->vlan_tci, __entry->protocol, __entry->ip_summed,
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c33 __be16 vlan_tci; member
355 ext->vlan_tci = flow_pay->pre_tun_rule.vlan_tci; in nfp_tun_mutual_link()
418 ext->vlan_tci = cpu_to_be16(U16_MAX); in nfp_tun_cleanup_nn_entries()
453 ext->vlan_tci = cpu_to_be16(U16_MAX); in nfp_tun_unlink_and_update_nn_entries()
531 ext->vlan_tci = cpu_to_be16(U16_MAX); in nfp_tun_write_neigh()
1444 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
1468 flow->pre_tun_rule.vlan_tci = payload.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
1494 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_del_flow()
H A Doffload.c615 if (push_vlan->vlan_tci) in nfp_flower_update_merge_with_actions()
862 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun()
1142 u16 vlan_tci = be16_to_cpu(meta_tci->tci); in nfp_flower_validate_pre_tun_rule() local
1144 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule()
1145 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule()
1148 flow->pre_tun_rule.vlan_tci = cpu_to_be16(0xffff); in nfp_flower_validate_pre_tun_rule()
1252 u16 vlan_tci; in nfp_flower_validate_pre_tun_rule() local
1256 vlan_tci = be16_to_cpu(vlan_tags->outer_tci); in nfp_flower_validate_pre_tun_rule()
1259 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule()
1260 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def100_tx.c158 u16 vlan_tci = skb_vlan_tag_get(skb); in ef100_set_tx_hw_vlan() local
163 ESF_GZ_TX_SEND_VLAN_INSERT_TCI, vlan_tci); in ef100_set_tx_hw_vlan()
194 u16 vlan_tci = skb_vlan_tag_get(skb); in ef100_make_tso_desc() local
251 ESF_GZ_TX_TSO_VLAN_INSERT_TCI, vlan_tci in ef100_make_tso_desc()
H A Dtc.h73 __be16 vlan_tci[2]; member
93 __be16 vlan_tci[2], vlan_proto[2]; member
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Dcq_enet_desc.h95 u8 *vlan_stripped, u16 *vlan_tci, u16 *checksum, u8 *fcoe_sof, in cq_enet_rq_desc_dec() argument
138 *vlan_tci = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec()
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c346 le16_to_cpu(comp->vlan_tci)); in ionic_rx_clean()
966 u16 vlan_tci, bool has_vlan, in ionic_tx_tso_post() argument
981 desc->vlan_tci = cpu_to_le16(vlan_tci); in ionic_tx_tso_post()
1018 u16 vlan_tci; in ionic_tx_tso() local
1037 vlan_tci = skb_vlan_tag_get(skb); in ionic_tx_tso()
1107 hdrlen, mss, outer_csum, vlan_tci, has_vlan, in ionic_tx_tso()
1146 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_csum()
1149 desc->vlan_tci = 0; in ionic_tx_calc_csum()
1185 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_no_csum()
1188 desc->vlan_tci = 0; in ionic_tx_calc_no_csum()
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1041 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid()
1046 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm()
1051 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi()
1056 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim()
1061 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio()
1067 return (be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_priom()
1083 (rule->m_ext.vlan_tci != cpu_to_be16(0xFFFF))) { in gfar_convert_to_filer()
1084 if (!rule->m_ext.vlan_tci) in gfar_convert_to_filer()
1085 rule->m_ext.vlan_tci = cpu_to_be16(0xFFFF); in gfar_convert_to_filer()
1271 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
/openbmc/linux/net/8021q/
H A Dvlan_dev.c53 u16 vlan_tci = 0; in vlan_dev_hard_header() local
59 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header()
60 vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority); in vlan_dev_hard_header()
61 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header()
114 u16 vlan_tci; in vlan_dev_hard_start_xmit() local
115 vlan_tci = vlan->vlan_id; in vlan_dev_hard_start_xmit()
116 vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority); in vlan_dev_hard_start_xmit()
117 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
H A Dvlan.h147 u16 vlan_tci) in vlan_get_ingress_priority() argument
151 return vip->ingress_priority_map[(vlan_tci >> VLAN_PRIO_SHIFT) & 0x7]; in vlan_get_ingress_priority()
/openbmc/linux/drivers/scsi/qedf/
H A Dqedf_fip.c126 u16 op, vlan_tci = 0; in qedf_fip_send() local
148 __vlan_hwaccel_get_tag(skb, &vlan_tci); in qedf_fip_send()
152 vlan_tci); in qedf_fip_send()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c330 set_cvlan(void *headers_c, void *headers_v, __be16 vlan_tci) in set_cvlan() argument
335 MLX5E_FTE_SET(headers_v, first_vid, ntohs(vlan_tci)); in set_cvlan()
382 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs()
383 set_cvlan(outer_headers_c, outer_headers_v, fs->h_ext.vlan_tci); in set_flow_attrs()
653 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan()
656 if (fs->m_ext.vlan_tci && in validate_vlan()
657 (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID)) in validate_vlan()
/openbmc/linux/net/openvswitch/
H A Dflow_netlink.c2548 __be16 eth_type, __be16 vlan_tci,
2555 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument
2608 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_sample()
2623 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_dec_ttl() argument
2668 vlan_tci, mpls_label_count, log, in validate_and_copy_dec_ttl()
2682 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_clone() argument
2704 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_clone()
3072 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_check_pkt_len() argument
3122 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
3136 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
[all …]
/openbmc/linux/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c329 data->vlan_tci = skb->vlan_tci; in nf_ct_bridge_frag_save()
376 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_internal.h62 #define OPA_VNIC_VLAN_PCP(vlan_tci) \ argument
63 (((vlan_tci) & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c891 if (vlan_etype == ETH_P_8021Q && !fsp->m_ext.vlan_tci && in otx2_prepare_flow_request()
911 if (fsp->m_ext.vlan_tci) { in otx2_prepare_flow_request()
912 memcpy(&pkt->vlan_tci, &fsp->h_ext.vlan_tci, in otx2_prepare_flow_request()
913 sizeof(pkt->vlan_tci)); in otx2_prepare_flow_request()
914 memcpy(&pmask->vlan_tci, &fsp->m_ext.vlan_tci, in otx2_prepare_flow_request()
915 sizeof(pmask->vlan_tci)); in otx2_prepare_flow_request()
1028 vlan_prio = ntohs(req->packet.vlan_tci) & in otx2_add_flow_msg()
1029 ntohs(req->mask.vlan_tci); in otx2_add_flow_msg()

12345