Home
last modified time | relevance | path

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

/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()
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 …]
Dbr_netfilter_hooks.c143 u16 vlan_tci; member
784 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in br_nf_push_frag_xmit()
859 data->vlan_tci = skb->vlan_tci; in br_nf_dev_queue_xmit()
Dbr_vlan.c556 skb->vlan_tci |= pvid; in __allowed_ingress()
/net/sched/
Dsch_frag.c13 u16 vlan_tci; member
34 if (data->vlan_tci & VLAN_CFI_MASK) in sch_frag_xmit()
36 data->vlan_tci & ~VLAN_CFI_MASK); in sch_frag_xmit()
61 data->vlan_tci = skb_vlan_tag_get(skb) | VLAN_CFI_MASK; in sch_frag_prepare_frag()
63 data->vlan_tci = 0; in sch_frag_prepare_frag()
/net/dsa/
Dtag_ocelot.c60 u64 vlan_tci, tag_type; in ocelot_rcv() local
94 ocelot_xfh_get_vlan_tci(extraction, &vlan_tci); in ocelot_rcv()
136 __vlan_hwaccel_put_tag(skb, htons(vlan_tpid), vlan_tci); in ocelot_rcv()
Dtag_sja1105.c464 u16 vlan_tci; in sja1105_vlan_rcv() local
467 vlan_tci = skb_vlan_tag_get(skb); in sja1105_vlan_rcv()
469 vlan_tci = ntohs(hdr->h_vlan_TCI); in sja1105_vlan_rcv()
471 if (vid_is_dsa_8021q_rxvlan(vlan_tci & VLAN_VID_MASK)) in sja1105_vlan_rcv()
475 *vid = vlan_tci & VLAN_VID_MASK; in sja1105_vlan_rcv()
/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()
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()
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()
Dvlan_core.c53 skb->vlan_tci, skb->mac_len); in vlan_do_receive()
60 skb->priority = vlan_get_ingress_priority(vlan_dev, skb->vlan_tci); in vlan_do_receive()
/net/openvswitch/
Dflow_netlink.c2517 __be16 eth_type, __be16 vlan_tci,
2524 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_sample() argument
2577 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_sample()
2592 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_dec_ttl() argument
2637 vlan_tci, mpls_label_count, log, in validate_and_copy_dec_ttl()
2651 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_clone() argument
2673 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_clone()
3041 __be16 eth_type, __be16 vlan_tci, in validate_and_copy_check_pkt_len() argument
3091 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
3105 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
[all …]
Dactions.c51 u16 vlan_tci; member
236 key->eth.vlan.tci = vlan->vlan_tci; in push_vlan()
240 ntohs(vlan->vlan_tci) & ~VLAN_CFI_MASK); in push_vlan()
790 if (data->vlan_tci & VLAN_CFI_MASK) in ovs_vport_output()
791 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci & ~VLAN_CFI_MASK); in ovs_vport_output()
838 data->vlan_tci = skb_vlan_tag_get(skb) | VLAN_CFI_MASK; in prepare_frag()
840 data->vlan_tci = 0; in prepare_frag()
Dflow.c355 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); in parse_vlan()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c322 data->vlan_tci = skb->vlan_tci; in nf_ct_bridge_frag_save()
369 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
/net/ethtool/
Dioctl.c3203 if (ext_m_spec->vlan_tci) { in ethtool_rx_flow_rule_create()
3205 ntohs(ext_h_spec->vlan_tci) & 0x0fff; in ethtool_rx_flow_rule_create()
3207 ntohs(ext_m_spec->vlan_tci) & 0x0fff; in ethtool_rx_flow_rule_create()
3210 !!(ext_h_spec->vlan_tci & htons(0x1000)); in ethtool_rx_flow_rule_create()
3212 !!(ext_m_spec->vlan_tci & htons(0x1000)); in ethtool_rx_flow_rule_create()
3215 (ntohs(ext_h_spec->vlan_tci) & 0xe000) >> 13; in ethtool_rx_flow_rule_create()
3217 (ntohs(ext_m_spec->vlan_tci) & 0xe000) >> 13; in ethtool_rx_flow_rule_create()
3221 ext_m_spec->vlan_tci) { in ethtool_rx_flow_rule_create()
/net/core/
Dskbuff.c1030 CHECK_SKB_FIELD(vlan_tci); in __copy_skb_header()
5706 u16 vlan_tci; in skb_vlan_untag() local
5721 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag()
5722 __vlan_hwaccel_put_tag(skb, skb->protocol, vlan_tci); in skb_vlan_untag()
5759 int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci) in __skb_vlan_pop() argument
5778 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in __skb_vlan_pop()
5800 u16 vlan_tci; in skb_vlan_pop() local
5810 err = __skb_vlan_pop(skb, &vlan_tci); in skb_vlan_pop()
5819 err = __skb_vlan_pop(skb, &vlan_tci); in skb_vlan_pop()
5823 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_pop()
[all …]
Dpktgen.c2869 __be16 *vlan_tci = NULL; /* Encapsulates priority and VLAN ID */ in fill_packet_ipv4() local
2912 vlan_tci = skb_put(skb, sizeof(__be16)); in fill_packet_ipv4()
2913 *vlan_tci = build_tci(pkt_dev->vlan_id, in fill_packet_ipv4()
2997 __be16 *vlan_tci = NULL; /* Encapsulates priority and VLAN ID */ in fill_packet_ipv6() local
3040 vlan_tci = skb_put(skb, sizeof(__be16)); in fill_packet_ipv6()
3041 *vlan_tci = build_tci(pkt_dev->vlan_id, in fill_packet_ipv6()
Dfilter.c319 BUILD_BUG_ON(sizeof_field(struct sk_buff, vlan_tci) != 2); in convert_skb_access()
323 offsetof(struct sk_buff, vlan_tci)); in convert_skb_access()
3141 u16, vlan_tci) in BPF_CALL_3() argument
3150 ret = skb_vlan_push(skb, vlan_proto, vlan_tci); in BPF_CALL_3()
8831 case offsetof(struct __sk_buff, vlan_tci): in bpf_convert_ctx_access()
8833 bpf_target_off(struct sk_buff, vlan_tci, 2, in bpf_convert_ctx_access()
/net/netfilter/
Dnft_payload.c275 vlan_tci, sizeof(__be16), reg, in nft_payload_offload_ll()
291 vlan_tci, sizeof(__be16), reg, in nft_payload_offload_ll()
Dnfnetlink_log.c422 if (nla_put_be16(inst->skb, NFULA_VLAN_TCI, htons(skb->vlan_tci)) || in nfulnl_put_bridge()
Dnfnetlink_queue.c354 if (nla_put_be16(skb, NFQA_VLAN_TCI, htons(entskb->vlan_tci)) || in nfqnl_put_bridge()