void ip_tunnel_delete_net(struct ip_tunnel_net *itn, struct rtnl_link_ops *ops) { LIST_HEAD(list); rtnl_lock(); ip_tunnel_destroy(itn, &list, ops); unregister_netdevice_many(&list); rtnl_unlock(); }
void ip_tunnel_delete_net(struct ip_tunnel_net *itn) { LIST_HEAD(list); rtnl_lock(); ip_tunnel_destroy(itn, &list); unregister_netdevice_many(&list); rtnl_unlock(); kfree(itn->tunnels); }