/Linux-v4.19/include/linux/ |
D | if_vlan.h | 81 #define skb_vlan_tag_present(__skb) ((__skb)->vlan_tci & VLAN_TAG_PRESENT) 82 #define skb_vlan_tag_get(__skb) ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT) 83 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK) 84 #define skb_vlan_tag_get_prio(__skb) ((__skb)->vlan_tci & VLAN_PRIO_MASK) 339 __be16 vlan_proto, u16 vlan_tci, in __vlan_insert_inner_tag() argument 370 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag() 387 __be16 vlan_proto, u16 vlan_tci) in __vlan_insert_tag() argument 389 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); in __vlan_insert_tag() 409 u16 vlan_tci, in vlan_insert_inner_tag() argument 414 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag() [all …]
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_sriov.c | 129 u16 vlan_tci; in nfp_app_set_vf_vlan() local 146 vlan_tci = FIELD_PREP(NFP_NET_VF_CFG_VLAN_VID, vlan) | in nfp_app_set_vf_vlan() 149 writew(vlan_tci, app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_VLAN); in nfp_app_set_vf_vlan() 218 u16 vlan_tci; in nfp_app_get_vf_config() local 234 vlan_tci = readw(app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_VLAN); in nfp_app_get_vf_config() 242 ivi->vlan = FIELD_GET(NFP_NET_VF_CFG_VLAN_VID, vlan_tci); in nfp_app_get_vf_config() 243 ivi->qos = FIELD_GET(NFP_NET_VF_CFG_VLAN_QOS, vlan_tci); in nfp_app_get_vf_config()
|
/Linux-v4.19/net/bridge/ |
D | br_arp_nd_proxy.c | 51 __be16 vlan_proto, u16 vlan_tci) in br_arp_send() argument 60 if (!vlan_tci) { in br_arp_send() 76 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_arp_send() 77 vlan_tci = 0; in br_arp_send() 79 if (vlan_tci) in br_arp_send() 80 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in br_arp_send() 245 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument 340 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send() 341 vlan_tci = 0; in br_nd_send() 343 if (vlan_tci) in br_nd_send() [all …]
|
D | br_netfilter_hooks.c | 127 u16 vlan_tci; member 673 if (data->vlan_tci) { in br_nf_push_frag_xmit() 674 skb->vlan_tci = data->vlan_tci; in br_nf_push_frag_xmit() 742 data->vlan_tci = skb->vlan_tci; in br_nf_dev_queue_xmit()
|
/Linux-v4.19/include/net/ |
D | erspan.h | 166 u16 vlan_tci = 0; in erspan_build_header() local 181 vlan_tci = ntohs(qp->tci); in erspan_build_header() 194 set_vlan(ershdr, vlan_tci); in erspan_build_header() 260 u16 vlan_tci = 0; in erspan_build_header_v2() local 275 vlan_tci = ntohs(qp->tci); in erspan_build_header_v2() 288 set_vlan(ershdr, vlan_tci); in erspan_build_header_v2()
|
/Linux-v4.19/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, 154 __field( u16, vlan_tci ) 180 __entry->vlan_tci = skb_vlan_tag_get(skb); 198 __entry->vlan_tci, __entry->protocol, __entry->ip_summed,
|
/Linux-v4.19/net/8021q/ |
D | vlan_dev.c | 58 u16 vlan_tci = 0; in vlan_dev_hard_header() local 64 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 65 vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority); in vlan_dev_hard_header() 66 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header() 120 u16 vlan_tci; in vlan_dev_hard_start_xmit() local 121 vlan_tci = vlan->vlan_id; in vlan_dev_hard_start_xmit() 122 vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb->priority); in vlan_dev_hard_start_xmit() 123 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
|
D | vlan.h | 121 u16 vlan_tci) in vlan_get_ingress_priority() argument 125 return vip->ingress_priority_map[(vlan_tci >> VLAN_PRIO_SHIFT) & 0x7]; in vlan_get_ingress_priority()
|
D | vlan_core.c | 52 skb->vlan_tci, skb->mac_len); in vlan_do_receive() 59 skb->priority = vlan_get_ingress_priority(vlan_dev, skb->vlan_tci); in vlan_do_receive() 60 skb->vlan_tci = 0; in vlan_do_receive()
|
/Linux-v4.19/drivers/scsi/qedf/ |
D | qedf_fip.c | 115 u16 op, vlan_tci = 0; in qedf_fip_send() local 136 __vlan_hwaccel_get_tag(skb, &vlan_tci); in qedf_fip_send() 140 vlan_tci); in qedf_fip_send()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 304 set_cvlan(void *headers_c, void *headers_v, __be16 vlan_tci) in set_cvlan() argument 309 MLX5E_FTE_SET(headers_v, first_vid, ntohs(vlan_tci)); in set_cvlan() 356 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs() 357 set_cvlan(outer_headers_c, outer_headers_v, fs->h_ext.vlan_tci); in set_flow_attrs() 608 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan() 611 if (fs->m_ext.vlan_tci && in validate_vlan() 612 (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID)) in validate_vlan()
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1101 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid() 1106 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm() 1111 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi() 1116 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim() 1121 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio() 1127 return (be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_priom() 1143 (rule->m_ext.vlan_tci != cpu_to_be16(0xFFFF))) { in gfar_convert_to_filer() 1144 if (!rule->m_ext.vlan_tci) in gfar_convert_to_filer() 1145 rule->m_ext.vlan_tci = cpu_to_be16(0xFFFF); in gfar_convert_to_filer() 1333 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_flower.c | 216 u16 vlan_tci, vlan_tci_mask; in cxgb4_process_flow_match() local 224 vlan_tci = key->vlan_id | (key->vlan_priority << in cxgb4_process_flow_match() 228 fs->val.ivlan = vlan_tci; in cxgb4_process_flow_match() 437 u16 vlan_tci = (prio << VLAN_PRIO_SHIFT) | vid; in cxgb4_process_flow_actions() local 445 fs->vlan = vlan_tci; in cxgb4_process_flow_actions() 449 fs->vlan = vlan_tci; in cxgb4_process_flow_actions()
|
/Linux-v4.19/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 | 366 u16 vlan_tci; in opa_vnic_get_sc() local 369 if (!__vlan_get_tag(skb, &vlan_tci)) { in opa_vnic_get_sc() 370 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci); in opa_vnic_get_sc()
|
/Linux-v4.19/net/openvswitch/ |
D | flow_netlink.c | 2396 __be16 eth_type, __be16 vlan_tci, bool log); 2401 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument 2453 eth_type, vlan_tci, log); in validate_and_copy_sample() 2467 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_clone() argument 2488 eth_type, vlan_tci, log); in validate_and_copy_clone() 2858 __be16 eth_type, __be16 vlan_tci, bool log) in __ovs_nla_copy_actions() argument 2937 vlan_tci = htons(0); in __ovs_nla_copy_actions() 2946 if (!(vlan->vlan_tci & htons(VLAN_TAG_PRESENT))) in __ovs_nla_copy_actions() 2948 vlan_tci = vlan->vlan_tci; in __ovs_nla_copy_actions() 2962 if (vlan_tci & htons(VLAN_TAG_PRESENT) || in __ovs_nla_copy_actions() [all …]
|
D | actions.c | 64 u16 vlan_tci; member 300 key->eth.vlan.tci = vlan->vlan_tci; in push_vlan() 304 ntohs(vlan->vlan_tci) & ~VLAN_TAG_PRESENT); in push_vlan() 825 skb->vlan_tci = data->vlan_tci; in ovs_vport_output() 870 data->vlan_tci = skb->vlan_tci; in prepare_frag()
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | vnic_main.c | 273 u16 vlan_tci; in hfi1_vnic_update_tx_counters() local 289 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_tx_counters() 302 u16 vlan_tci; in hfi1_vnic_update_rx_counters() local 318 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_rx_counters()
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 941 rule->h_ext.vlan_tci = spec.outer_vid; in ef4_ethtool_get_class_rule() 942 rule->m_ext.vlan_tci = htons(0xfff); in ef4_ethtool_get_class_rule() 1211 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in ef4_ethtool_set_class_rule() 1212 if (rule->m_ext.vlan_tci != htons(0xfff)) in ef4_ethtool_set_class_rule() 1215 spec.outer_vid = rule->h_ext.vlan_tci; in ef4_ethtool_set_class_rule()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2474 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry() 2475 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry() 2746 vlan_priority = (ntohs(input->filter.vlan_tci) & VLAN_PRIO_MASK) in igb_rxnfc_write_vlan_prio_filter() 2824 u16 vlan_tci) in igb_clear_vlan_prio_filter() argument 2830 vlan_priority = (vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in igb_clear_vlan_prio_filter() 2848 ntohs(input->filter.vlan_tci)); in igb_erase_filter() 2963 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igb_add_ethtool_nfc_entry() 2964 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igb_add_ethtool_nfc_entry() 2968 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igb_add_ethtool_nfc_entry()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 463 u16 flags = 0, vlan_tci = 0; in qlcnic_tx_pkt() local 473 vlan_tci = ntohs(vh->h_vlan_TCI); in qlcnic_tx_pkt() 477 vlan_tci = skb_vlan_tag_get(skb); in qlcnic_tx_pkt() 480 if (vlan_tci && !(adapter->flags & QLCNIC_TAGGING_ENABLED)) in qlcnic_tx_pkt() 482 if (vlan_tci && (adapter->flags & QLCNIC_TAGGING_ENABLED)) in qlcnic_tx_pkt() 486 vlan_tci = adapter->tx_pvid; in qlcnic_tx_pkt() 489 qlcnic_set_tx_vlan_tci(first_desc, vlan_tci); in qlcnic_tx_pkt() 527 vh->h_vlan_TCI = htons(vlan_tci); in qlcnic_tx_pkt()
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | ethtool.c | 964 rule->h_ext.vlan_tci = spec.outer_vid; in efx_ethtool_get_class_rule() 965 rule->m_ext.vlan_tci = htons(0xfff); in efx_ethtool_get_class_rule() 1276 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in efx_ethtool_set_class_rule() 1277 if (rule->m_ext.vlan_tci != htons(0xfff)) in efx_ethtool_set_class_rule() 1280 spec.outer_vid = rule->h_ext.vlan_tci; in efx_ethtool_set_class_rule()
|
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/ |
D | q_struct.h | 205 u64 vlan_tci:16; member 252 u64 vlan_tci:16;
|
/Linux-v4.19/net/core/ |
D | skbuff.c | 818 CHECK_SKB_FIELD(vlan_tci); in __copy_skb_header() 5084 u16 vlan_tci; in skb_vlan_untag() local 5099 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag() 5100 __vlan_hwaccel_put_tag(skb, skb->protocol, vlan_tci); in skb_vlan_untag() 5136 int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci) in __skb_vlan_pop() argument 5155 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in __skb_vlan_pop() 5177 u16 vlan_tci; in skb_vlan_pop() local 5182 skb->vlan_tci = 0; in skb_vlan_pop() 5187 err = __skb_vlan_pop(skb, &vlan_tci); in skb_vlan_pop() 5196 err = __skb_vlan_pop(skb, &vlan_tci); in skb_vlan_pop() [all …]
|