Loading drivers/net/vxlan.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -3704,6 +3704,7 @@ static void __net_exit vxlan_exit_net(struct net *net) struct vxlan_net *vn = net_generic(net, vxlan_net_id); struct vxlan_net *vn = net_generic(net, vxlan_net_id); struct vxlan_dev *vxlan, *next; struct vxlan_dev *vxlan, *next; struct net_device *dev, *aux; struct net_device *dev, *aux; unsigned int h; LIST_HEAD(list); LIST_HEAD(list); rtnl_lock(); rtnl_lock(); Loading @@ -3723,6 +3724,9 @@ static void __net_exit vxlan_exit_net(struct net *net) unregister_netdevice_many(&list); unregister_netdevice_many(&list); rtnl_unlock(); rtnl_unlock(); for (h = 0; h < PORT_HASH_SIZE; ++h) WARN_ON_ONCE(!hlist_empty(&vn->sock_list[h])); } } static struct pernet_operations vxlan_net_ops = { static struct pernet_operations vxlan_net_ops = { Loading Loading
drivers/net/vxlan.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -3704,6 +3704,7 @@ static void __net_exit vxlan_exit_net(struct net *net) struct vxlan_net *vn = net_generic(net, vxlan_net_id); struct vxlan_net *vn = net_generic(net, vxlan_net_id); struct vxlan_dev *vxlan, *next; struct vxlan_dev *vxlan, *next; struct net_device *dev, *aux; struct net_device *dev, *aux; unsigned int h; LIST_HEAD(list); LIST_HEAD(list); rtnl_lock(); rtnl_lock(); Loading @@ -3723,6 +3724,9 @@ static void __net_exit vxlan_exit_net(struct net *net) unregister_netdevice_many(&list); unregister_netdevice_many(&list); rtnl_unlock(); rtnl_unlock(); for (h = 0; h < PORT_HASH_SIZE; ++h) WARN_ON_ONCE(!hlist_empty(&vn->sock_list[h])); } } static struct pernet_operations vxlan_net_ops = { static struct pernet_operations vxlan_net_ops = { Loading