Home
last modified time | relevance | path

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

12345

/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 …]
/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()
/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()
/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 …]
/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()
/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()
/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 …]
/linux/include/trace/events/
H A Dnet.h26 __field( u16, vlan_tci )
46 __entry->vlan_tci = skb_vlan_tag_get(skb);
62 TP_printk("dev=%s queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d len=%u data_len=%u network_offset=%d transport_offset_valid=%d transport_offset=%d tx_flags=%d gso_size=%d gso_segs=%d gso_type=%#x",
64 __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci,
178 __field( u16, vlan_tci )
204 __entry->vlan_tci = skb_vlan_tag_get(skb);
219 TP_printk("dev=%s napi_id=%#x queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u mac_header_valid=%d mac_header=%d nr_frags=%d gso_size=%d gso_type=%#x",
222 __entry->vlan_tci, __entry->protocol, __entry->ip_summed,
/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx_lib.c228 ice_receive_skb(struct ice_rx_ring *rx_ring, struct sk_buff *skb, u16 vlan_tci) in ice_receive_skb() argument
230 if ((vlan_tci & VLAN_VID_MASK) && rx_ring->vlan_proto) in ice_receive_skb()
232 vlan_tci); in ice_receive_skb()
542 u16 *vlan_tci) in ice_xdp_rx_vlan_tag() argument
550 *vlan_tci = ice_get_vlan_tci(xdp_ext->eop_desc); in ice_xdp_rx_vlan_tag()
551 if (!*vlan_tci) in ice_xdp_rx_vlan_tag()
/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.c619 if (push_vlan->vlan_tci) in nfp_flower_update_merge_with_actions()
866 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun()
1146 u16 vlan_tci = be16_to_cpu(meta_tci->tci); in nfp_flower_validate_pre_tun_rule() local
1148 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule()
1149 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule()
1152 flow->pre_tun_rule.vlan_tci = cpu_to_be16(0xffff); in nfp_flower_validate_pre_tun_rule()
1256 u16 vlan_tci; in nfp_flower_validate_pre_tun_rule() local
1260 vlan_tci = be16_to_cpu(vlan_tags->outer_tci); in nfp_flower_validate_pre_tun_rule()
1263 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule()
1264 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule()
[all …]
/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.h75 __be16 vlan_tci[2]; member
95 __be16 vlan_tci[2], vlan_proto[2]; member
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1043 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid()
1048 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm()
1053 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi()
1058 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim()
1063 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio()
1069 return (be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_priom()
1085 (rule->m_ext.vlan_tci != cpu_to_be16(0xFFFF))) { in gfar_convert_to_filer()
1086 if (!rule->m_ext.vlan_tci) in gfar_convert_to_filer()
1087 rule->m_ext.vlan_tci = cpu_to_be16(0xFFFF); in gfar_convert_to_filer()
1273 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
/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()
/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()
/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()
/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()
/linux/net/openvswitch/
H A Dflow_netlink.c2561 __be16 eth_type, __be16 vlan_tci,
2568 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument
2621 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_sample()
2636 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_dec_ttl() argument
2681 vlan_tci, mpls_label_count, log, in validate_and_copy_dec_ttl()
2695 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_clone() argument
2717 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_clone()
3086 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_check_pkt_len() argument
3136 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
3150 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c692 le16_to_cpu(comp->vlan_tci)); in ionic_rx_clean()
1391 u16 vlan_tci, bool has_vlan, in ionic_tx_tso_post() argument
1405 desc->vlan_tci = cpu_to_le16(vlan_tci); in ionic_tx_tso_post()
1443 u16 vlan_tci; in ionic_tx_tso() local
1461 vlan_tci = skb_vlan_tag_get(skb); in ionic_tx_tso()
1532 desc_len, hdrlen, mss, outer_csum, vlan_tci, in ionic_tx_tso()
1571 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_csum()
1574 desc->vlan_tci = 0; in ionic_tx_calc_csum()
1610 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_no_csum()
1613 desc->vlan_tci = 0; in ionic_tx_calc_no_csum()
/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()
/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)
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c273 u16 vlan_tci, vlan_tci_mask; in cxgb4_process_flow_match() local
276 vlan_tci = match.key->vlan_id | (match.key->vlan_priority << in cxgb4_process_flow_match()
280 fs->val.ivlan = vlan_tci; in cxgb4_process_flow_match()
527 u16 vlan_tci = (prio << VLAN_PRIO_SHIFT) | vid; in cxgb4_process_flow_actions() local
534 fs->vlan = vlan_tci; in cxgb4_process_flow_actions()
538 fs->vlan = vlan_tci; in cxgb4_process_flow_actions()
/linux/drivers/infiniband/hw/hfi1/
H A Dvnic_main.c129 u16 vlan_tci; in hfi1_vnic_update_tx_counters() local
145 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_tx_counters()
158 u16 vlan_tci; in hfi1_vnic_update_rx_counters() local
174 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_rx_counters()

12345