Lines Matching refs:vn

208 	struct vxlan_net *vn = net_generic(net, vxlan_net_id);  in vs_head()  local
210 return &vn->sock_list[hash_32(ntohs(port), PORT_HASH_BITS)]; in vs_head()
993 static bool vxlan_group_used(struct vxlan_net *vn, struct vxlan_dev *dev) in vxlan_group_used() argument
1010 list_for_each_entry(vxlan, &vn->vxlan_list, next) { in vxlan_group_used()
1037 struct vxlan_net *vn; in __vxlan_sock_release() local
1044 vn = net_generic(sock_net(vs->sock->sk), vxlan_net_id); in __vxlan_sock_release()
1045 spin_lock(&vn->sock_lock); in __vxlan_sock_release()
1048 spin_unlock(&vn->sock_lock); in __vxlan_sock_release()
2260 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_vs_add_dev() local
2263 spin_lock(&vn->sock_lock); in vxlan_vs_add_dev()
2265 spin_unlock(&vn->sock_lock); in vxlan_vs_add_dev()
2347 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_stop() local
2351 !vxlan_group_used(vn, vxlan)) in vxlan_stop()
2495 struct vxlan_net *vn = net_generic(net, vxlan_net_id); in vxlan_get_rx_port() local
2500 spin_lock(&vn->sock_lock); in vxlan_get_rx_port()
2502 hlist_for_each_entry_rcu(vs, &vn->sock_list[i], hlist) { in vxlan_get_rx_port()
2509 spin_unlock(&vn->sock_lock); in vxlan_get_rx_port()
2672 struct vxlan_net *vn = net_generic(net, vxlan_net_id); in vxlan_socket_create() local
2704 spin_lock(&vn->sock_lock); in vxlan_socket_create()
2707 spin_unlock(&vn->sock_lock); in vxlan_socket_create()
2722 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in __vxlan_sock_add() local
2726 spin_lock(&vn->sock_lock); in __vxlan_sock_add()
2730 spin_unlock(&vn->sock_lock); in __vxlan_sock_add()
2733 spin_unlock(&vn->sock_lock); in __vxlan_sock_add()
2772 struct vxlan_net *vn = net_generic(src_net, vxlan_net_id); in vxlan_dev_configure() local
2844 list_for_each_entry(tmp, &vn->vxlan_list, next) { in vxlan_dev_configure()
2876 list_add(&vxlan->next, &vn->vxlan_list); in vxlan_dev_configure()
3031 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_dellink() local
3033 spin_lock(&vn->sock_lock); in vxlan_dellink()
3036 spin_unlock(&vn->sock_lock); in vxlan_dellink()
3179 static void vxlan_handle_lowerdev_unregister(struct vxlan_net *vn, in vxlan_handle_lowerdev_unregister() argument
3185 list_for_each_entry_safe(vxlan, next, &vn->vxlan_list, next) { in vxlan_handle_lowerdev_unregister()
3205 struct vxlan_net *vn = net_generic(dev_net(dev), vxlan_net_id); in vxlan_lowerdev_event() local
3208 vxlan_handle_lowerdev_unregister(vn, dev); in vxlan_lowerdev_event()
3219 struct vxlan_net *vn = net_generic(net, vxlan_net_id); in vxlan_init_net() local
3222 INIT_LIST_HEAD(&vn->vxlan_list); in vxlan_init_net()
3223 spin_lock_init(&vn->sock_lock); in vxlan_init_net()
3226 INIT_HLIST_HEAD(&vn->sock_list[h]); in vxlan_init_net()
3233 struct vxlan_net *vn = net_generic(net, vxlan_net_id); in vxlan_exit_net() local
3243 list_for_each_entry_safe(vxlan, next, &vn->vxlan_list, next) { in vxlan_exit_net()