Lines Matching refs:vlan
45 struct net_bridge_vlan *vlan) in vlan_tunnel_info_del() argument
47 if (!vlan->tinfo.tunnel_dst) in vlan_tunnel_info_del()
49 rhashtable_remove_fast(&vg->tunnel_hash, &vlan->tnode, in vlan_tunnel_info_del()
51 vlan->tinfo.tunnel_id = 0; in vlan_tunnel_info_del()
52 dst_release(&vlan->tinfo.tunnel_dst->dst); in vlan_tunnel_info_del()
53 vlan->tinfo.tunnel_dst = NULL; in vlan_tunnel_info_del()
57 struct net_bridge_vlan *vlan, u32 tun_id) in __vlan_tunnel_info_add() argument
63 if (vlan->tinfo.tunnel_dst) in __vlan_tunnel_info_add()
72 vlan->tinfo.tunnel_dst = metadata; in __vlan_tunnel_info_add()
73 vlan->tinfo.tunnel_id = key; in __vlan_tunnel_info_add()
75 err = rhashtable_lookup_insert_fast(&vg->tunnel_hash, &vlan->tnode, in __vlan_tunnel_info_add()
82 dst_release(&vlan->tinfo.tunnel_dst->dst); in __vlan_tunnel_info_add()
83 vlan->tinfo.tunnel_dst = NULL; in __vlan_tunnel_info_add()
84 vlan->tinfo.tunnel_id = 0; in __vlan_tunnel_info_add()
96 struct net_bridge_vlan *vlan; in nbp_vlan_tunnel_info_add() local
101 vlan = br_vlan_find(vg, vid); in nbp_vlan_tunnel_info_add()
102 if (!vlan) in nbp_vlan_tunnel_info_add()
105 return __vlan_tunnel_info_add(vg, vlan, tun_id); in nbp_vlan_tunnel_info_add()
130 struct net_bridge_vlan *vlan, *tmp; in __vlan_tunnel_info_flush() local
132 list_for_each_entry_safe(vlan, tmp, &vg->vlan_list, vlist) in __vlan_tunnel_info_flush()
133 vlan_tunnel_info_del(vg, vlan); in __vlan_tunnel_info_flush()
161 struct net_bridge_vlan *vlan; in br_handle_ingress_vlan_tunnel() local
171 vlan = br_vlan_tunnel_lookup(&vg->tunnel_hash, tinfo->key.tun_id); in br_handle_ingress_vlan_tunnel()
172 if (!vlan) in br_handle_ingress_vlan_tunnel()
177 __vlan_hwaccel_put_tag(skb, p->br->vlan_proto, vlan->vid); in br_handle_ingress_vlan_tunnel()
183 struct net_bridge_vlan *vlan) in br_handle_egress_vlan_tunnel() argument
187 if (!vlan || !vlan->tinfo.tunnel_id) in br_handle_egress_vlan_tunnel()
198 skb_dst_set(skb, dst_clone(&vlan->tinfo.tunnel_dst->dst)); in br_handle_egress_vlan_tunnel()