/kernel/linux/linux-5.10/include/linux/ |
D | if_vlan.h | 78 #define skb_vlan_tag_get(__skb) ((__skb)->vlan_tci) 79 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK) 80 #define skb_vlan_tag_get_cfi(__skb) (!!((__skb)->vlan_tci & VLAN_CFI_MASK)) 81 #define skb_vlan_tag_get_prio(__skb) (((__skb)->vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT) 336 __be16 vlan_proto, u16 vlan_tci, in __vlan_insert_inner_tag() argument 367 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag() 384 __be16 vlan_proto, u16 vlan_tci) in __vlan_insert_tag() argument 386 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); in __vlan_insert_tag() 406 u16 vlan_tci, in vlan_insert_inner_tag() argument 411 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag() [all …]
|
D | netfilter_bridge.h | 11 u16 vlan_tci; member
|
/kernel/linux/linux-5.10/net/bridge/ |
D | br_arp_nd_proxy.c | 48 __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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_sriov.c | 99 u16 vlan_tci; in nfp_app_set_vf_vlan() local 116 vlan_tci = FIELD_PREP(NFP_NET_VF_CFG_VLAN_VID, vlan) | in nfp_app_set_vf_vlan() 119 writew(vlan_tci, app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_VLAN); in nfp_app_set_vf_vlan() 212 u16 vlan_tci; in nfp_app_get_vf_config() local 228 vlan_tci = readw(app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_VLAN); in nfp_app_get_vf_config() 236 ivi->vlan = FIELD_GET(NFP_NET_VF_CFG_VLAN_VID, vlan_tci); in nfp_app_get_vf_config() 237 ivi->qos = FIELD_GET(NFP_NET_VF_CFG_VLAN_QOS, vlan_tci); in nfp_app_get_vf_config()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 266 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 …]
|
/kernel/linux/linux-5.10/include/net/ |
D | erspan.h | 181 u16 vlan_tci = 0; in erspan_build_header() local 196 vlan_tci = ntohs(qp->tci); in erspan_build_header() 209 set_vlan(ershdr, vlan_tci); in erspan_build_header() 275 u16 vlan_tci = 0; in erspan_build_header_v2() local 290 vlan_tci = ntohs(qp->tci); in erspan_build_header_v2() 303 set_vlan(ershdr, vlan_tci); in erspan_build_header_v2()
|
/kernel/linux/linux-5.10/net/dsa/ |
D | tag_sja1105.c | 75 u16 vlan_tci; in sja1105_can_use_vlan_as_tags() local 85 vlan_tci = skb_vlan_tag_get(skb); in sja1105_can_use_vlan_as_tags() 87 vlan_tci = ntohs(hdr->h_vlan_TCI); in sja1105_can_use_vlan_as_tags() 89 return vid_is_dsa_8021q(vlan_tci & VLAN_VID_MASK); in sja1105_can_use_vlan_as_tags() 269 u16 vlan_tci; in sja1105_decode_subvlan() local 274 vlan_tci = (skb->priority << VLAN_PRIO_SHIFT) | vid; in sja1105_decode_subvlan() 275 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tci); in sja1105_decode_subvlan()
|
D | tag_ocelot.c | 184 u64 vlan_tci, tag_type; in ocelot_rcv() local 216 packing(extraction, &vlan_tci, 15, 0, OCELOT_TAG_LEN, UNPACK, 0); in ocelot_rcv() 255 __vlan_hwaccel_put_tag(skb, htons(vlan_tpid), vlan_tci); in ocelot_rcv()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 141 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 …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | net.h | 26 __field( u16, vlan_tci ) 46 __entry->vlan_tci = skb_vlan_tag_get(skb); 63 __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci, 177 __field( u16, vlan_tci ) 203 __entry->vlan_tci = skb_vlan_tag_get(skb); 221 __entry->vlan_tci, __entry->protocol, __entry->ip_summed,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | ef100_tx.c | 174 u16 vlan_tci = skb_vlan_tag_get(skb); in ef100_set_tx_hw_vlan() local 179 ESF_GZ_TX_SEND_VLAN_INSERT_TCI, vlan_tci); in ef100_set_tx_hw_vlan() 213 u16 vlan_tci = skb_vlan_tag_get(skb); in ef100_make_tso_desc() local 235 ESF_GZ_TX_TSO_VLAN_INSERT_TCI, vlan_tci in ef100_make_tso_desc()
|
/kernel/linux/linux-5.10/net/8021q/ |
D | vlan_dev.c | 52 u16 vlan_tci = 0; in vlan_dev_hard_header() local 58 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 59 vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority); in vlan_dev_hard_header() 60 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header() 113 u16 vlan_tci; in vlan_dev_hard_start_xmit() local 114 vlan_tci = vlan->vlan_id; in vlan_dev_hard_start_xmit() 115 vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority); in vlan_dev_hard_start_xmit() 116 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
|
D | vlan.h | 141 u16 vlan_tci) in vlan_get_ingress_priority() argument 145 return vip->ingress_priority_map[(vlan_tci >> VLAN_PRIO_SHIFT) & 0x7]; in vlan_get_ingress_priority()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.c | 217 le16_to_cpu(comp->vlan_tci)); in ionic_rx_clean() 748 u16 vlan_tci, bool has_vlan, in ionic_tx_tso_post() argument 762 desc->vlan_tci = cpu_to_le16(vlan_tci); in ionic_tx_tso_post() 813 u16 vlan_tci; in ionic_tx_tso() local 823 vlan_tci = skb_vlan_tag_get(skb); in ionic_tx_tso() 869 vlan_tci, has_vlan, in ionic_tx_tso() 906 vlan_tci, has_vlan, in ionic_tx_tso() 929 vlan_tci, has_vlan, in ionic_tx_tso() 985 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_csum() 1023 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_no_csum()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 617 if (push_vlan->vlan_tci) in nfp_flower_update_merge_with_actions() 864 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun() 1150 u16 vlan_tci = be16_to_cpu(meta_tci->tci); in nfp_flower_validate_pre_tun_rule() local 1152 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule() 1153 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule() 1156 flow->pre_tun_rule.vlan_tci = cpu_to_be16(0xffff); in nfp_flower_validate_pre_tun_rule() 1236 u16 vlan_tci; in nfp_flower_validate_pre_tun_rule() local 1240 vlan_tci = be16_to_cpu(vlan_tags->outer_tci); in nfp_flower_validate_pre_tun_rule() 1242 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule() 1243 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule() [all …]
|
D | tunnel_conf.c | 33 __be16 vlan_tci; member 1283 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_flow() 1307 flow->pre_tun_rule.vlan_tci = payload.vlan_tci; in nfp_flower_xmit_pre_tun_flow() 1333 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_del_flow()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
D | cq_enet_desc.h | 108 u8 *vlan_stripped, u16 *vlan_tci, u16 *checksum, u8 *fcoe_sof, in cq_enet_rq_desc_dec() argument 151 *vlan_tci = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec()
|
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
D | qedf_fip.c | 126 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1031 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid() 1036 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm() 1041 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi() 1046 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim() 1051 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio() 1057 return (be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_priom() 1073 (rule->m_ext.vlan_tci != cpu_to_be16(0xFFFF))) { in gfar_convert_to_filer() 1074 if (!rule->m_ext.vlan_tci) in gfar_convert_to_filer() 1075 rule->m_ext.vlan_tci = cpu_to_be16(0xFFFF); in gfar_convert_to_filer() 1261 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 309 set_cvlan(void *headers_c, void *headers_v, __be16 vlan_tci) in set_cvlan() argument 314 MLX5E_FTE_SET(headers_v, first_vid, ntohs(vlan_tci)); in set_cvlan() 361 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs() 362 set_cvlan(outer_headers_c, outer_headers_v, fs->h_ext.vlan_tci); in set_flow_attrs() 597 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan() 600 if (fs->m_ext.vlan_tci && in validate_vlan() 601 (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID)) in validate_vlan()
|
/kernel/linux/linux-5.10/net/openvswitch/ |
D | flow_netlink.c | 2516 __be16 eth_type, __be16 vlan_tci, 2522 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument 2574 eth_type, vlan_tci, mpls_label_count, log); in validate_and_copy_sample() 2588 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_dec_ttl() argument 2622 vlan_tci, mpls_label_count, log); in validate_and_copy_dec_ttl() 2635 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_clone() argument 2656 eth_type, vlan_tci, mpls_label_count, log); in validate_and_copy_clone() 3023 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_check_pkt_len() argument 3073 eth_type, vlan_tci, mpls_label_count, log); in validate_and_copy_check_pkt_len() 3086 eth_type, vlan_tci, mpls_label_count, log); in validate_and_copy_check_pkt_len() [all …]
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 298 data->vlan_tci = skb->vlan_tci; in nf_ct_bridge_frag_save() 345 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_internal.h | 62 #define OPA_VNIC_VLAN_PCP(vlan_tci) \ argument 63 (((vlan_tci) & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
|
D | opa_vnic_encap.c | 367 u16 vlan_tci; in opa_vnic_get_sc() local 370 if (!__vlan_get_tag(skb, &vlan_tci)) { in opa_vnic_get_sc() 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci); in opa_vnic_get_sc()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | vnic_main.c | 171 u16 vlan_tci; in hfi1_vnic_update_tx_counters() local 187 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_tx_counters() 200 u16 vlan_tci; in hfi1_vnic_update_rx_counters() local 216 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_rx_counters()
|