Home
last modified time | relevance | path

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

1234

/Linux-v5.4/include/linux/
Dif_vlan.h76 #define skb_vlan_tag_get(__skb) ((__skb)->vlan_tci)
77 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK)
78 #define skb_vlan_tag_get_cfi(__skb) (!!((__skb)->vlan_tci & VLAN_CFI_MASK))
79 #define skb_vlan_tag_get_prio(__skb) (((__skb)->vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
334 __be16 vlan_proto, u16 vlan_tci, in __vlan_insert_inner_tag() argument
365 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag()
382 __be16 vlan_proto, u16 vlan_tci) in __vlan_insert_tag() argument
384 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); in __vlan_insert_tag()
404 u16 vlan_tci, in vlan_insert_inner_tag() argument
409 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag()
[all …]
Dnetfilter_bridge.h11 u16 vlan_tci; member
/Linux-v5.4/net/bridge/
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()
244 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument
339 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send()
340 vlan_tci = 0; in br_nd_send()
342 if (vlan_tci) in br_nd_send()
[all …]
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c99 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()
/Linux-v5.4/include/net/
Derspan.h166 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-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c136 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK && in aq_check_approve_fl2()
161 (!test_bit(be16_to_cpu(fsp->h_ext.vlan_tci), in aq_check_approve_fvlan()
185 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_VID_MASK) { in aq_check_filter()
187 } else if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK) { in aq_check_filter()
192 be16_to_cpu(fsp->m_ext.vlan_tci)); in aq_check_filter()
316 data->user_priority_en = be16_to_cpu(fsp->m_ext.vlan_tci) in aq_set_data_fl2()
318 data->user_priority = (be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fl2()
409 (be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK)) { in aq_set_data_fvlan()
415 aq_vlans[location].vlan_id = be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fvlan()
431 if (be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) in aq_del_fvlan_by_vlan()
[all …]
/Linux-v5.4/include/trace/events/
Dnet.h26 __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,
/Linux-v5.4/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c153 le16_to_cpu(comp->vlan_tci)); in ionic_rx_clean()
508 u16 vlan_tci, bool has_vlan, in ionic_tx_tso_post() argument
522 desc->vlan_tci = cpu_to_le16(vlan_tci); in ionic_tx_tso_post()
571 u16 vlan_tci; in ionic_tx_tso() local
581 vlan_tci = skb_vlan_tag_get(skb); in ionic_tx_tso()
627 vlan_tci, has_vlan, in ionic_tx_tso()
665 vlan_tci, has_vlan, in ionic_tx_tso()
688 vlan_tci, has_vlan, in ionic_tx_tso()
739 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_csum()
776 desc->vlan_tci = cpu_to_le16(skb_vlan_tag_get(skb)); in ionic_tx_calc_no_csum()
/Linux-v5.4/net/8021q/
Dvlan_dev.c52 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()
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()
Dvlan.h133 u16 vlan_tci) in vlan_get_ingress_priority() argument
137 return vip->ingress_priority_map[(vlan_tci >> VLAN_PRIO_SHIFT) & 0x7]; in vlan_get_ingress_priority()
/Linux-v5.4/drivers/net/ethernet/cisco/enic/
Dcq_enet_desc.h108 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-v5.4/drivers/scsi/qedf/
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-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c32 __be16 vlan_tci; member
948 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
963 flow->pre_tun_rule.vlan_tci = payload.vlan_tci; in nfp_flower_xmit_pre_tun_flow()
989 payload.vlan_tci = flow->pre_tun_rule.vlan_tci; in nfp_flower_xmit_pre_tun_del_flow()
Doffload.c539 if (push_vlan->vlan_tci) in nfp_flower_update_merge_with_actions()
778 tun->outer_vlan_tci = vlan->vlan_tci; in nfp_fl_push_vlan_after_tun()
1030 u16 vlan_tci = be16_to_cpu(meta_tci->tci); in nfp_flower_validate_pre_tun_rule() local
1032 vlan_tci &= ~NFP_FLOWER_MASK_VLAN_PRESENT; in nfp_flower_validate_pre_tun_rule()
1033 flow->pre_tun_rule.vlan_tci = cpu_to_be16(vlan_tci); in nfp_flower_validate_pre_tun_rule()
1036 flow->pre_tun_rule.vlan_tci = cpu_to_be16(0xffff); in nfp_flower_validate_pre_tun_rule()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c306 set_cvlan(void *headers_c, void *headers_v, __be16 vlan_tci) in set_cvlan() argument
311 MLX5E_FTE_SET(headers_v, first_vid, ntohs(vlan_tci)); in set_cvlan()
358 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs()
359 set_cvlan(outer_headers_c, outer_headers_v, fs->h_ext.vlan_tci); in set_flow_attrs()
594 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan()
597 if (fs->m_ext.vlan_tci && in validate_vlan()
598 (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID)) in validate_vlan()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1064 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid()
1069 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm()
1074 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi()
1079 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim()
1084 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio()
1090 return (be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_priom()
1106 (rule->m_ext.vlan_tci != cpu_to_be16(0xFFFF))) { in gfar_convert_to_filer()
1107 if (!rule->m_ext.vlan_tci) in gfar_convert_to_filer()
1108 rule->m_ext.vlan_tci = cpu_to_be16(0xFFFF); in gfar_convert_to_filer()
1294 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c191 u16 vlan_tci, vlan_tci_mask; in cxgb4_process_flow_match() local
194 vlan_tci = match.key->vlan_id | (match.key->vlan_priority << in cxgb4_process_flow_match()
198 fs->val.ivlan = vlan_tci; in cxgb4_process_flow_match()
410 u16 vlan_tci = (prio << VLAN_PRIO_SHIFT) | vid; in cxgb4_process_flow_actions() local
417 fs->vlan = vlan_tci; in cxgb4_process_flow_actions()
421 fs->vlan = vlan_tci; in cxgb4_process_flow_actions()
/Linux-v5.4/net/bridge/netfilter/
Dnf_conntrack_bridge.c288 data->vlan_tci = skb->vlan_tci; in nf_ct_bridge_frag_save()
335 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
/Linux-v5.4/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_internal.h62 #define OPA_VNIC_VLAN_PCP(vlan_tci) \ argument
63 (((vlan_tci) & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
Dopa_vnic_encap.c367 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()
/Linux-v5.4/net/openvswitch/
Dflow_netlink.c2409 __be16 eth_type, __be16 vlan_tci, bool log);
2414 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument
2466 eth_type, vlan_tci, log); in validate_and_copy_sample()
2480 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_clone() argument
2501 eth_type, vlan_tci, log); in validate_and_copy_clone()
2866 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_check_pkt_len() argument
2915 eth_type, vlan_tci, log); in validate_and_copy_check_pkt_len()
2928 eth_type, vlan_tci, log); in validate_and_copy_check_pkt_len()
2955 __be16 eth_type, __be16 vlan_tci, bool log) in __ovs_nla_copy_actions() argument
3035 vlan_tci = htons(0); in __ovs_nla_copy_actions()
[all …]
Dactions.c51 u16 vlan_tci; member
227 key->eth.vlan.tci = vlan->vlan_tci; in push_vlan()
231 ntohs(vlan->vlan_tci) & ~VLAN_CFI_MASK); in push_vlan()
752 if (data->vlan_tci & VLAN_CFI_MASK) in ovs_vport_output()
753 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci & ~VLAN_CFI_MASK); in ovs_vport_output()
800 data->vlan_tci = skb_vlan_tag_get(skb) | VLAN_CFI_MASK; in prepare_frag()
802 data->vlan_tci = 0; in prepare_frag()
/Linux-v5.4/drivers/net/ethernet/intel/igc/
Digc_ethtool.c904 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igc_get_ethtool_nfc_entry()
905 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igc_get_ethtool_nfc_entry()
1184 vlan_priority = (ntohs(input->filter.vlan_tci) & VLAN_PRIO_MASK) in igc_rxnfc_write_vlan_prio_filter()
1262 u16 vlan_tci) in igc_clear_vlan_prio_filter() argument
1268 vlan_priority = (vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in igc_clear_vlan_prio_filter()
1286 ntohs(input->filter.vlan_tci)); in igc_erase_filter()
1401 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igc_add_ethtool_nfc_entry()
1402 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igc_add_ethtool_nfc_entry()
1406 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igc_add_ethtool_nfc_entry()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dvnic_main.c275 u16 vlan_tci; in hfi1_vnic_update_tx_counters() local
291 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_tx_counters()
304 u16 vlan_tci; in hfi1_vnic_update_rx_counters() local
320 if (!__vlan_get_tag(skb, &vlan_tci)) in hfi1_vnic_update_rx_counters()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c418 if (ext_mask->vlan_tci) { in prep_ext_rule()
420 *(__be16 *)(key + off) = ext_value->vlan_tci; in prep_ext_rule()
421 *(__be16 *)(mask + off) = ext_mask->vlan_tci; in prep_ext_rule()

1234