mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ip_tunnel: Don't pass rtnl_link_ops to ip_tunnel_delete_net().
ip_tunnel_delete_net() no longer uses the 3rd argument, struct rtnl_link_ops *ops. Let's remove it. Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260912230043.2586313-4-kuniyu@google.com Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
0239bd767b
commit
7ba090b04a
|
|
@ -401,7 +401,6 @@ int ip_tunnel_get_iflink(const struct net_device *dev);
|
|||
int ip_tunnel_init_net(struct net *net, unsigned int ip_tnl_net_id,
|
||||
struct rtnl_link_ops *ops, char *devname);
|
||||
void ip_tunnel_delete_net(struct net *net, unsigned int id,
|
||||
struct rtnl_link_ops *ops,
|
||||
struct list_head *dev_to_kill);
|
||||
|
||||
void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
|
||||
|
|
|
|||
|
|
@ -1084,7 +1084,7 @@ static int __net_init ipgre_init_net(struct net *net)
|
|||
static void __net_exit ipgre_exit_rtnl(struct net *net,
|
||||
struct list_head *dev_to_kill)
|
||||
{
|
||||
ip_tunnel_delete_net(net, ipgre_net_id, &ipgre_link_ops, dev_to_kill);
|
||||
ip_tunnel_delete_net(net, ipgre_net_id, dev_to_kill);
|
||||
}
|
||||
|
||||
static struct pernet_operations ipgre_net_ops = {
|
||||
|
|
@ -1728,7 +1728,7 @@ static int __net_init ipgre_tap_init_net(struct net *net)
|
|||
static void __net_exit ipgre_tap_exit_rtnl(struct net *net,
|
||||
struct list_head *dev_to_kill)
|
||||
{
|
||||
ip_tunnel_delete_net(net, gre_tap_net_id, &ipgre_tap_ops, dev_to_kill);
|
||||
ip_tunnel_delete_net(net, gre_tap_net_id, dev_to_kill);
|
||||
}
|
||||
|
||||
static struct pernet_operations ipgre_tap_net_ops = {
|
||||
|
|
@ -1747,7 +1747,7 @@ static int __net_init erspan_init_net(struct net *net)
|
|||
static void __net_exit erspan_exit_rtnl(struct net *net,
|
||||
struct list_head *dev_to_kill)
|
||||
{
|
||||
ip_tunnel_delete_net(net, erspan_net_id, &erspan_link_ops, dev_to_kill);
|
||||
ip_tunnel_delete_net(net, erspan_net_id, dev_to_kill);
|
||||
}
|
||||
|
||||
static struct pernet_operations erspan_net_ops = {
|
||||
|
|
|
|||
|
|
@ -1149,7 +1149,6 @@ int ip_tunnel_init_net(struct net *net, unsigned int ip_tnl_net_id,
|
|||
EXPORT_SYMBOL_GPL(ip_tunnel_init_net);
|
||||
|
||||
void ip_tunnel_delete_net(struct net *net, unsigned int id,
|
||||
struct rtnl_link_ops *ops,
|
||||
struct list_head *head)
|
||||
{
|
||||
struct ip_tunnel_net *itn = net_generic(net, id);
|
||||
|
|
|
|||
|
|
@ -526,7 +526,7 @@ static int __net_init vti_init_net(struct net *net)
|
|||
static void __net_exit vti_exit_rtnl(struct net *net,
|
||||
struct list_head *dev_to_kill)
|
||||
{
|
||||
ip_tunnel_delete_net(net, vti_net_id, &vti_link_ops, dev_to_kill);
|
||||
ip_tunnel_delete_net(net, vti_net_id, dev_to_kill);
|
||||
}
|
||||
|
||||
static struct pernet_operations vti_net_ops = {
|
||||
|
|
|
|||
|
|
@ -645,7 +645,7 @@ static int __net_init ipip_init_net(struct net *net)
|
|||
static void __net_exit ipip_exit_rtnl(struct net *net,
|
||||
struct list_head *dev_to_kill)
|
||||
{
|
||||
ip_tunnel_delete_net(net, ipip_net_id, &ipip_link_ops, dev_to_kill);
|
||||
ip_tunnel_delete_net(net, ipip_net_id, dev_to_kill);
|
||||
}
|
||||
|
||||
static struct pernet_operations ipip_net_ops = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user