• Home
  • Raw
  • Download

Lines Matching refs:vg

44 void vlan_tunnel_info_del(struct net_bridge_vlan_group *vg,  in vlan_tunnel_info_del()  argument
49 rhashtable_remove_fast(&vg->tunnel_hash, &vlan->tnode, in vlan_tunnel_info_del()
56 static int __vlan_tunnel_info_add(struct net_bridge_vlan_group *vg, in __vlan_tunnel_info_add() argument
75 err = rhashtable_lookup_insert_fast(&vg->tunnel_hash, &vlan->tnode, in __vlan_tunnel_info_add()
94 struct net_bridge_vlan_group *vg; in nbp_vlan_tunnel_info_add() local
99 vg = nbp_vlan_group(port); in nbp_vlan_tunnel_info_add()
100 vlan = br_vlan_find(vg, vid); in nbp_vlan_tunnel_info_add()
104 return __vlan_tunnel_info_add(vg, vlan, tun_id); in nbp_vlan_tunnel_info_add()
112 struct net_bridge_vlan_group *vg; in nbp_vlan_tunnel_info_delete() local
117 vg = nbp_vlan_group(port); in nbp_vlan_tunnel_info_delete()
118 v = br_vlan_find(vg, vid); in nbp_vlan_tunnel_info_delete()
122 vlan_tunnel_info_del(vg, v); in nbp_vlan_tunnel_info_delete()
127 static void __vlan_tunnel_info_flush(struct net_bridge_vlan_group *vg) in __vlan_tunnel_info_flush() argument
131 list_for_each_entry_safe(vlan, tmp, &vg->vlan_list, vlist) in __vlan_tunnel_info_flush()
132 vlan_tunnel_info_del(vg, vlan); in __vlan_tunnel_info_flush()
137 struct net_bridge_vlan_group *vg; in nbp_vlan_tunnel_info_flush() local
141 vg = nbp_vlan_group(port); in nbp_vlan_tunnel_info_flush()
142 __vlan_tunnel_info_flush(vg); in nbp_vlan_tunnel_info_flush()
145 int vlan_tunnel_init(struct net_bridge_vlan_group *vg) in vlan_tunnel_init() argument
147 return rhashtable_init(&vg->tunnel_hash, &br_vlan_tunnel_rht_params); in vlan_tunnel_init()
150 void vlan_tunnel_deinit(struct net_bridge_vlan_group *vg) in vlan_tunnel_deinit() argument
152 rhashtable_destroy(&vg->tunnel_hash); in vlan_tunnel_deinit()
157 struct net_bridge_vlan_group *vg) in br_handle_ingress_vlan_tunnel() argument
162 if (!vg || !tinfo) in br_handle_ingress_vlan_tunnel()
170 vlan = br_vlan_tunnel_lookup(&vg->tunnel_hash, tinfo->key.tun_id); in br_handle_ingress_vlan_tunnel()