Home
last modified time | relevance | path

Searched refs:vlan_proto (Results 1 – 25 of 31) sorted by relevance

12

/net/8021q/
Dvlan.h64 __be16 vlan_proto, in vlan_group_get_device() argument
67 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_get_device()
76 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument
79 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_set_device()
91 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument
97 vlan_proto, vlan_id); in vlan_find_dev()
Dvlan.c51 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument
60 pidx = vlan_proto_idx(vlan_proto); in vlan_group_prealloc_vid()
108 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
122 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
154 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
172 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
190 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, dev); in register_vlan_dev()
204 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
267 vlan->vlan_proto = htons(ETH_P_8021Q); in register_vlan_device()
322 if (vlan_hw_offload_capable(dev->features, vlan->vlan_proto)) in vlan_transfer_features()
Dvlan_core.c12 __be16 vlan_proto = skb->vlan_proto; in vlan_do_receive() local
17 vlan_dev = vlan_find_dev(skb->dev, vlan_proto, vlan_id); in vlan_do_receive()
51 skb = *skbp = vlan_insert_inner_tag(skb, skb->vlan_proto, in vlan_do_receive()
76 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument
82 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
94 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
120 return vlan_dev_priv(dev)->vlan_proto; in vlan_dev_vlan_proto()
Dvlan_gvrp.c32 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_join()
43 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_leave()
Dvlan_mvrp.c38 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_join()
49 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_leave()
Dvlan_netlink.c171 vlan->vlan_proto = proto; in vlan_newlink()
177 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
226 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
Dvlan_dev.c71 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header()
72 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header()
112 veth->h_vlan_proto != vlan->vlan_proto) { in vlan_dev_hard_start_xmit()
116 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
591 if (vlan_hw_offload_capable(real_dev->features, vlan->vlan_proto)) { in vlan_dev_init()
/net/bridge/
Dbr_arp_nd_proxy.c48 __be16 vlan_proto, u16 vlan_tci) in br_arp_send() argument
77 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in br_arp_send()
176 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_proxy_suppress_arp()
213 skb->vlan_proto, in br_do_proxy_suppress_arp()
251 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument
354 __vlan_hwaccel_put_tag(reply, vlan_proto, vlan_tci); in br_nd_send()
435 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_suppress_nd()
467 skb->vlan_proto, in br_do_suppress_nd()
Dbr_netfilter_hooks.c75 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() function
89 return vlan_proto(skb) == htons(ETH_P_IP) && brnet->filter_vlan_tagged; in is_vlan_ip()
97 return vlan_proto(skb) == htons(ETH_P_IPV6) && in is_vlan_ipv6()
105 return vlan_proto(skb) == htons(ETH_P_ARP) && brnet->filter_vlan_tagged; in is_vlan_arp()
140 __be16 vlan_proto; member
441 vlan = __vlan_find_dev_deep_rcu(br, skb->vlan_proto, in brnf_get_logical_dev()
695 if (data->vlan_proto) in br_nf_push_frag_xmit()
696 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in br_nf_push_frag_xmit()
772 data->vlan_proto = skb->vlan_proto; in br_nf_dev_queue_xmit()
774 data->vlan_proto = 0; in br_nf_dev_queue_xmit()
Dbr_vlan.c97 return vlan_vid_add(dev, br->vlan_proto, v->vid); in __vlan_vid_add()
139 vlan_vid_del(dev, br->vlan_proto, v->vid); in __vlan_vid_del()
489 skb->protocol == br->vlan_proto)) { in __allowed_ingress()
497 if (skb->vlan_proto != br->vlan_proto) { in __allowed_ingress()
500 skb = vlan_insert_tag_set_proto(skb, skb->vlan_proto, in __allowed_ingress()
533 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress()
627 if (!br_vlan_get_tag(skb, vid) && skb->vlan_proto != br->vlan_proto) in br_should_learn()
787 br->vlan_proto == htons(ETH_P_8021Q)) { in recalculate_group_addr()
801 br->vlan_proto == htons(ETH_P_8021Q)) in br_recalculate_fwd_mask()
850 *p_proto = ntohs(br->vlan_proto); in br_vlan_get_proto()
[all …]
Dbr_vlan_tunnel.c182 __vlan_hwaccel_put_tag(skb, p->br->vlan_proto, vlan->vid); in br_handle_ingress_vlan_tunnel()
Dbr_netlink.c1157 __be16 vlan_proto = nla_get_be16(data[IFLA_BR_VLAN_PROTOCOL]); in br_changelink() local
1159 err = __br_vlan_set_proto(br, vlan_proto); in br_changelink()
1492 if (nla_put_be16(skb, IFLA_BR_VLAN_PROTOCOL, br->vlan_proto) || in br_fill_info()
Dbr_sysfs_br.c785 return sprintf(buf, "%#06x\n", ntohs(br->vlan_proto)); in vlan_protocol_show()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c299 data->vlan_proto = skb->vlan_proto; in nf_ct_bridge_frag_save()
345 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
Dnft_reject_bridge.c38 __vlan_hwaccel_put_tag(nskb, oldskb->vlan_proto, vid); in nft_reject_br_push_etherhdr()
/net/sched/
Dact_mpls.c92 if (__vlan_insert_inner_tag(skb, skb->vlan_proto, in tcf_mpls_act()
97 skb->protocol = skb->vlan_proto; in tcf_mpls_act()
/net/netfilter/
Dnf_log_common.c182 nf_log_buf_add(m, "VPROTO=%04x VID=%u ", ntohs(skb->vlan_proto), vid); in nf_log_dump_vlan()
Dnf_tables_trace.c75 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header()
Dnft_payload.c33 veth->h_vlan_proto = skb->vlan_proto; in nft_payload_rebuild_vlan_hdr()
Dnfnetlink_log.c419 nla_put_be16(inst->skb, NFULA_VLAN_PROTO, skb->vlan_proto)) in nfulnl_put_bridge()
/net/openvswitch/
Dactions.c51 __be16 vlan_proto; member
790 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci & ~VLAN_CFI_MASK); in ovs_vport_output()
840 data->vlan_proto = skb->vlan_proto; in prepare_frag()
Dflow.c351 key->eth.vlan.tpid = skb->vlan_proto; in parse_vlan()
/net/core/
Dskbuff.c962 CHECK_SKB_FIELD(vlan_proto); in __copy_skb_header()
5597 __be16 vlan_proto; in skb_vlan_pop() local
5614 vlan_proto = skb->protocol; in skb_vlan_pop()
5619 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_pop()
5627 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) in skb_vlan_push() argument
5639 err = __vlan_insert_tag(skb, skb->vlan_proto, in skb_vlan_push()
5644 skb->protocol = skb->vlan_proto; in skb_vlan_push()
5649 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_push()
Dnetpoll.c83 !vlan_hw_offload_capable(features, skb->vlan_proto)) { in netpoll_start_xmit()
Dfilter.c407 BUILD_BUG_ON(sizeof_field(struct sk_buff, vlan_proto) != 2); in convert_bpf_extensions()
411 offsetof(struct sk_buff, vlan_proto)); in convert_bpf_extensions()
3159 BPF_CALL_3(bpf_skb_vlan_push, struct sk_buff *, skb, __be16, vlan_proto, in BPF_CALL_3() argument
3164 if (unlikely(vlan_proto != htons(ETH_P_8021Q) && in BPF_CALL_3()
3165 vlan_proto != htons(ETH_P_8021AD))) in BPF_CALL_3()
3166 vlan_proto = htons(ETH_P_8021Q); in BPF_CALL_3()
3169 ret = skb_vlan_push(skb, vlan_proto, vlan_tci); in BPF_CALL_3()
8357 case offsetof(struct __sk_buff, vlan_proto): in bpf_convert_ctx_access()
8359 bpf_target_off(struct sk_buff, vlan_proto, 2, in bpf_convert_ctx_access()

12