Home
last modified time | relevance | path

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

/net/8021q/
Dvlan.h63 __be16 vlan_proto, in vlan_group_get_device() argument
66 return __vlan_group_get_device(vg, vlan_proto_idx(vlan_proto), vlan_id); in vlan_group_get_device()
70 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument
76 array = vg->vlan_devices_arrays[vlan_proto_idx(vlan_proto)] in vlan_group_set_device()
83 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument
89 vlan_proto, vlan_id); in vlan_find_dev()
Dvlan_core.c11 __be16 vlan_proto = skb->vlan_proto; in vlan_do_receive() local
16 vlan_dev = vlan_find_dev(skb->dev, vlan_proto, vlan_id); in vlan_do_receive()
44 skb = *skbp = vlan_insert_tag(skb, skb->vlan_proto, in vlan_do_receive()
69 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument
75 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
87 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu()
113 return vlan_dev_priv(dev)->vlan_proto; in vlan_dev_vlan_proto()
Dvlan.c55 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument
63 pidx = vlan_proto_idx(vlan_proto); in vlan_group_prealloc_vid()
100 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
114 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
145 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
163 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
185 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, dev); in register_vlan_dev()
199 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
262 vlan->vlan_proto = htons(ETH_P_8021Q); in register_vlan_device()
317 if (vlan_hw_offload_capable(dev->features, vlan->vlan_proto)) in vlan_transfer_features()
Dvlan_gvrp.c35 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_join()
46 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_gvrp_request_leave()
Dvlan_mvrp.c41 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_join()
52 if (vlan->vlan_proto != htons(ETH_P_8021Q)) in vlan_mvrp_request_leave()
Dvlan_netlink.c142 vlan->vlan_proto = proto; in vlan_newlink()
147 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id); in vlan_newlink()
193 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
Dvlan_dev.c76 skb->protocol = vlan->vlan_proto; in vlan_dev_hard_header()
77 type = ntohs(vlan->vlan_proto); in vlan_dev_hard_header()
117 if (veth->h_vlan_proto != vlan->vlan_proto || in vlan_dev_hard_start_xmit()
122 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
588 vlan_dev_priv(dev)->vlan_proto)) { in vlan_dev_init()
/net/bridge/
Dbr_vlan.c88 return vlan_vid_add(dev, br->vlan_proto, vid); in __vlan_vid_add()
134 vlan_vid_del(dev, br->vlan_proto, vid); in __vlan_vid_del()
386 if (skb->vlan_proto != proto) { in __allowed_ingress()
389 skb = vlan_insert_tag_set_proto(skb, skb->vlan_proto, in __allowed_ingress()
455 return __allowed_ingress(vg, br->vlan_proto, skb, vid); in br_allowed_ingress()
491 if (!br_vlan_get_tag(skb, vid) && skb->vlan_proto != br->vlan_proto) in br_should_learn()
612 if (!br->vlan_enabled || br->vlan_proto == htons(ETH_P_8021Q)) { in recalculate_group_addr()
625 if (!br->vlan_enabled || br->vlan_proto == htons(ETH_P_8021Q)) in br_recalculate_fwd_mask()
664 if (br->vlan_proto == proto) in __br_vlan_set_proto()
677 oldproto = br->vlan_proto; in __br_vlan_set_proto()
[all …]
Dbr_netfilter_hooks.c73 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() function
84 (vlan_proto(skb) == htons(ETH_P_IP) && \
88 (vlan_proto(skb) == htons(ETH_P_IPV6) && \
92 (vlan_proto(skb) == htons(ETH_P_ARP) && \
119 __be16 vlan_proto; member
428 vlan = __vlan_find_dev_deep_rcu(br, skb->vlan_proto, in brnf_get_logical_dev()
671 skb->vlan_proto = data->vlan_proto; in br_nf_push_frag_xmit()
745 data->vlan_proto = skb->vlan_proto; in br_nf_dev_queue_xmit()
Dbr_netlink.c901 __be16 vlan_proto = nla_get_be16(data[IFLA_BR_VLAN_PROTOCOL]); in br_changelink() local
903 err = __br_vlan_set_proto(br, vlan_proto); in br_changelink()
1182 if (nla_put_be16(skb, IFLA_BR_VLAN_PROTOCOL, br->vlan_proto) || in br_fill_info()
Dbr_private.h343 __be16 vlan_proto; member
Dbr_sysfs_br.c725 return sprintf(buf, "%#06x\n", ntohs(br->vlan_proto)); in vlan_protocol_show()
/net/core/
Dfilter.c275 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_proto) != 2); in convert_bpf_extensions()
279 offsetof(struct sk_buff, vlan_proto)); in convert_bpf_extensions()
1525 __be16 vlan_proto = (__force __be16) r2; in bpf_skb_vlan_push() local
1527 if (unlikely(vlan_proto != htons(ETH_P_8021Q) && in bpf_skb_vlan_push()
1528 vlan_proto != htons(ETH_P_8021AD))) in bpf_skb_vlan_push()
1529 vlan_proto = htons(ETH_P_8021Q); in bpf_skb_vlan_push()
1531 return skb_vlan_push(skb, vlan_proto, vlan_tci); in bpf_skb_vlan_push()
1786 case offsetof(struct __sk_buff, vlan_proto): in bpf_net_convert_ctx_access()
1787 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_proto) != 2); in bpf_net_convert_ctx_access()
1790 offsetof(struct sk_buff, vlan_proto)); in bpf_net_convert_ctx_access()
Dskbuff.c797 CHECK_SKB_FIELD(vlan_proto); in __copy_skb_header()
4478 __be16 vlan_proto; in skb_vlan_pop() local
4497 vlan_proto = skb->protocol; in skb_vlan_pop()
4502 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_pop()
4507 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) in skb_vlan_push() argument
4518 err = __vlan_insert_tag(skb, skb->vlan_proto, in skb_vlan_push()
4525 skb->protocol = skb->vlan_proto; in skb_vlan_push()
4531 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_push()
Dnetpoll.c82 !vlan_hw_offload_capable(features, skb->vlan_proto)) { in netpoll_start_xmit()
Ddev.c2815 !vlan_hw_offload_capable(features, skb->vlan_proto)) in validate_xmit_vlan()
/net/openvswitch/
Dactions.c66 __be16 vlan_proto; member
643 skb->vlan_proto = data->vlan_proto; in ovs_vport_output()
680 data->vlan_proto = skb->vlan_proto; in prepare_frag()
/net/netfilter/
Dnft_payload.c36 veth.h_vlan_proto = skb->vlan_proto; in nft_payload_copy_vlan()
/net/bridge/netfilter/
Dnft_reject_bridge.c42 __vlan_hwaccel_put_tag(nskb, oldskb->vlan_proto, vid); in nft_reject_br_push_etherhdr()
/net/packet/
Daf_packet.c1009 ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); in prb_fill_vlan_info()
2265 h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); in tpacket_rcv()
3362 aux.tp_vlan_tpid = ntohs(skb->vlan_proto); in packet_recvmsg()