Эх сурвалжийг харах

net: Convert udp_sysctl_ops

These pernet_operations just initialize udp4 defaults.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Kirill Tkhai 7 жил өмнө
parent
commit
fc18999ed2
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      net/ipv4/udp.c

+ 2 - 1
net/ipv4/udp.c

@@ -2842,7 +2842,8 @@ static int __net_init udp_sysctl_init(struct net *net)
 }
 }
 
 
 static struct pernet_operations __net_initdata udp_sysctl_ops = {
 static struct pernet_operations __net_initdata udp_sysctl_ops = {
-	.init       = udp_sysctl_init,
+	.init	= udp_sysctl_init,
+	.async	= true,
 };
 };
 
 
 void __init udp_init(void)
 void __init udp_init(void)