Home
last modified time | relevance | path

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

12

/net/8021q/
Dvlan.h64 __be16 vlan_proto, in vlan_group_get_device() argument
67 return __vlan_group_get_device(vg, vlan_proto_idx(vlan_proto), vlan_id); in vlan_group_get_device()
71 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument
77 array = vg->vlan_devices_arrays[vlan_proto_idx(vlan_proto)] in vlan_group_set_device()
84 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument
90 vlan_proto, vlan_id); in vlan_find_dev()
Dvlan.c51 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument
59 pidx = vlan_proto_idx(vlan_proto); in vlan_group_prealloc_vid()
104 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
118 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
153 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
171 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
192 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, dev); in register_vlan_dev()
206 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
269 vlan->vlan_proto = htons(ETH_P_8021Q); in register_vlan_device()
325 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.c167 vlan->vlan_proto = proto; in vlan_newlink()
173 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
222 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 if (veth->h_vlan_proto != vlan->vlan_proto || in vlan_dev_hard_start_xmit()
117 __vlan_hwaccel_put_tag(skb, vlan->vlan_proto, vlan_tci); in vlan_dev_hard_start_xmit()
570 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()
169 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_proxy_suppress_arp()
206 skb->vlan_proto, in br_do_proxy_suppress_arp()
244 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) in br_nd_send() argument
343 __vlan_hwaccel_put_tag(reply, vlan_proto, vlan_tci); in br_nd_send()
419 vlandev = __vlan_find_dev_deep_rcu(br->dev, skb->vlan_proto, in br_do_suppress_nd()
451 skb->vlan_proto, in br_do_suppress_nd()
Dbr_vlan.c95 return vlan_vid_add(dev, br->vlan_proto, v->vid); in __vlan_vid_add()
137 vlan_vid_del(dev, br->vlan_proto, v->vid); in __vlan_vid_del()
459 skb->protocol == br->vlan_proto)) { in __allowed_ingress()
467 if (skb->vlan_proto != br->vlan_proto) { in __allowed_ingress()
470 skb = vlan_insert_tag_set_proto(skb, skb->vlan_proto, in __allowed_ingress()
503 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress()
583 if (!br_vlan_get_tag(skb, vid) && skb->vlan_proto != br->vlan_proto) in br_should_learn()
741 br->vlan_proto == htons(ETH_P_8021Q)) { in recalculate_group_addr()
755 br->vlan_proto == htons(ETH_P_8021Q)) in br_recalculate_fwd_mask()
804 *p_proto = ntohs(br->vlan_proto); in br_vlan_get_proto()
[all …]
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
439 vlan = __vlan_find_dev_deep_rcu(br, skb->vlan_proto, in brnf_get_logical_dev()
693 if (data->vlan_proto) in br_nf_push_frag_xmit()
694 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in br_nf_push_frag_xmit()
764 data->vlan_proto = skb->vlan_proto; in br_nf_dev_queue_xmit()
766 data->vlan_proto = 0; in br_nf_dev_queue_xmit()
Dbr_vlan_tunnel.c176 __vlan_hwaccel_put_tag(skb, p->br->vlan_proto, vlan->vid); in br_handle_ingress_vlan_tunnel()
Dbr_netlink.c1102 __be16 vlan_proto = nla_get_be16(data[IFLA_BR_VLAN_PROTOCOL]); in br_changelink() local
1104 err = __br_vlan_set_proto(br, vlan_proto); in br_changelink()
1437 if (nla_put_be16(skb, IFLA_BR_VLAN_PROTOCOL, br->vlan_proto) || in br_fill_info()
Dbr_sysfs_br.c787 return sprintf(buf, "%#06x\n", ntohs(br->vlan_proto)); in vlan_protocol_show()
Dbr_private.h333 __be16 vlan_proto; member
/net/bridge/netfilter/
Dnf_conntrack_bridge.c289 data->vlan_proto = skb->vlan_proto; in nf_ct_bridge_frag_save()
335 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci); in nf_ct_bridge_frag_restore()
/net/openvswitch/
Dactions.c52 __be16 vlan_proto; member
755 __vlan_hwaccel_put_tag(skb, data->vlan_proto, data->vlan_tci & ~VLAN_CFI_MASK); in ovs_vport_output()
805 data->vlan_proto = skb->vlan_proto; in prepare_frag()
Dflow.c351 key->eth.vlan.tpid = skb->vlan_proto; in parse_vlan()
/net/netfilter/
Dnf_tables_trace.c75 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header()
Dnft_payload.c41 veth.h_vlan_proto = skb->vlan_proto; in nft_payload_copy_vlan()
Dnfnetlink_log.c420 nla_put_be16(inst->skb, NFULA_VLAN_PROTO, skb->vlan_proto)) in nfulnl_put_bridge()
/net/core/
Dskbuff.c952 CHECK_SKB_FIELD(vlan_proto); in __copy_skb_header()
5404 __be16 vlan_proto; in skb_vlan_pop() local
5421 vlan_proto = skb->protocol; in skb_vlan_pop()
5426 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_pop()
5434 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) in skb_vlan_push() argument
5446 err = __vlan_insert_tag(skb, skb->vlan_proto, in skb_vlan_push()
5451 skb->protocol = skb->vlan_proto; in skb_vlan_push()
5456 __vlan_hwaccel_put_tag(skb, vlan_proto, vlan_tci); in skb_vlan_push()
Dnetpoll.c81 !vlan_hw_offload_capable(features, skb->vlan_proto)) { in netpoll_start_xmit()
Dfilter.c388 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_proto) != 2); in convert_bpf_extensions()
392 offsetof(struct sk_buff, vlan_proto)); in convert_bpf_extensions()
2720 BPF_CALL_3(bpf_skb_vlan_push, struct sk_buff *, skb, __be16, vlan_proto, in BPF_CALL_3() argument
2725 if (unlikely(vlan_proto != htons(ETH_P_8021Q) && in BPF_CALL_3()
2726 vlan_proto != htons(ETH_P_8021AD))) in BPF_CALL_3()
2727 vlan_proto = htons(ETH_P_8021Q); in BPF_CALL_3()
2730 ret = skb_vlan_push(skb, vlan_proto, vlan_tci); in BPF_CALL_3()
7242 case offsetof(struct __sk_buff, vlan_proto): in bpf_convert_ctx_access()
7244 bpf_target_off(struct sk_buff, vlan_proto, 2, in bpf_convert_ctx_access()
Drtnetlink.c1223 ivi.vlan_proto = htons(ETH_P_8021Q); in rtnl_fill_vfinfo()
1245 vf_vlan_info.vlan_proto = ivi.vlan_proto; in rtnl_fill_vfinfo()
2248 ivvl[0]->qos, ivvl[0]->vlan_proto); in do_setvfinfo()
/net/packet/
Daf_packet.c966 ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); in prb_fill_vlan_info()
2327 h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); in tpacket_rcv()
3423 aux.tp_vlan_tpid = ntohs(skb->vlan_proto); in packet_recvmsg()

12