Commit 229952d1 authored by David S. Miller's avatar David S. Miller

Merge branch 'convert-pernet_operations-part4'

Kirill Tkhai says:

====================
Converting pernet_operations (part #4)

this series continues to review and to convert pernet_operations
to make them possible to be executed in parallel for several
net namespaces in the same time. The patches touch mostly netfilter,
also there are small number of changes in other places.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 190f887c c29babb7
...@@ -77,6 +77,7 @@ static void __net_exit broute_net_exit(struct net *net) ...@@ -77,6 +77,7 @@ static void __net_exit broute_net_exit(struct net *net)
static struct pernet_operations broute_net_ops = { static struct pernet_operations broute_net_ops = {
.init = broute_net_init, .init = broute_net_init,
.exit = broute_net_exit, .exit = broute_net_exit,
.async = true,
}; };
static int __init ebtable_broute_init(void) static int __init ebtable_broute_init(void)
......
...@@ -105,6 +105,7 @@ static void __net_exit frame_filter_net_exit(struct net *net) ...@@ -105,6 +105,7 @@ static void __net_exit frame_filter_net_exit(struct net *net)
static struct pernet_operations frame_filter_net_ops = { static struct pernet_operations frame_filter_net_ops = {
.init = frame_filter_net_init, .init = frame_filter_net_init,
.exit = frame_filter_net_exit, .exit = frame_filter_net_exit,
.async = true,
}; };
static int __init ebtable_filter_init(void) static int __init ebtable_filter_init(void)
......
...@@ -105,6 +105,7 @@ static void __net_exit frame_nat_net_exit(struct net *net) ...@@ -105,6 +105,7 @@ static void __net_exit frame_nat_net_exit(struct net *net)
static struct pernet_operations frame_nat_net_ops = { static struct pernet_operations frame_nat_net_ops = {
.init = frame_nat_net_init, .init = frame_nat_net_init,
.exit = frame_nat_net_exit, .exit = frame_nat_net_exit,
.async = true,
}; };
static int __init ebtable_nat_init(void) static int __init ebtable_nat_init(void)
......
...@@ -48,6 +48,7 @@ static void __net_exit nf_log_bridge_net_exit(struct net *net) ...@@ -48,6 +48,7 @@ static void __net_exit nf_log_bridge_net_exit(struct net *net)
static struct pernet_operations nf_log_bridge_net_ops = { static struct pernet_operations nf_log_bridge_net_ops = {
.init = nf_log_bridge_net_init, .init = nf_log_bridge_net_init,
.exit = nf_log_bridge_net_exit, .exit = nf_log_bridge_net_exit,
.async = true,
}; };
static int __init nf_log_bridge_init(void) static int __init nf_log_bridge_init(void)
......
...@@ -544,6 +544,7 @@ static struct pernet_operations caif_net_ops = { ...@@ -544,6 +544,7 @@ static struct pernet_operations caif_net_ops = {
.exit = caif_exit_net, .exit = caif_exit_net,
.id = &caif_net_id, .id = &caif_net_id,
.size = sizeof(struct caif_net), .size = sizeof(struct caif_net),
.async = true,
}; };
/* Initialize Caif devices list */ /* Initialize Caif devices list */
......
...@@ -1010,6 +1010,7 @@ static void __net_exit cangw_pernet_exit(struct net *net) ...@@ -1010,6 +1010,7 @@ static void __net_exit cangw_pernet_exit(struct net *net)
static struct pernet_operations cangw_pernet_ops = { static struct pernet_operations cangw_pernet_ops = {
.init = cangw_pernet_init, .init = cangw_pernet_init,
.exit = cangw_pernet_exit, .exit = cangw_pernet_exit,
.async = true,
}; };
static __init int cgw_module_init(void) static __init int cgw_module_init(void)
......
...@@ -1031,6 +1031,7 @@ static struct pernet_operations dccp_v4_ops = { ...@@ -1031,6 +1031,7 @@ static struct pernet_operations dccp_v4_ops = {
.init = dccp_v4_init_net, .init = dccp_v4_init_net,
.exit = dccp_v4_exit_net, .exit = dccp_v4_exit_net,
.exit_batch = dccp_v4_exit_batch, .exit_batch = dccp_v4_exit_batch,
.async = true,
}; };
static int __init dccp_v4_init(void) static int __init dccp_v4_init(void)
......
...@@ -1116,6 +1116,7 @@ static struct pernet_operations dccp_v6_ops = { ...@@ -1116,6 +1116,7 @@ static struct pernet_operations dccp_v6_ops = {
.init = dccp_v6_init_net, .init = dccp_v6_init_net,
.exit = dccp_v6_exit_net, .exit = dccp_v6_exit_net,
.exit_batch = dccp_v6_exit_batch, .exit_batch = dccp_v6_exit_batch,
.async = true,
}; };
static int __init dccp_v6_init(void) static int __init dccp_v6_init(void)
......
...@@ -1081,6 +1081,7 @@ static struct pernet_operations fou_net_ops = { ...@@ -1081,6 +1081,7 @@ static struct pernet_operations fou_net_ops = {
.exit = fou_exit_net, .exit = fou_exit_net,
.id = &fou_net_id, .id = &fou_net_id,
.size = sizeof(struct fou_net), .size = sizeof(struct fou_net),
.async = true,
}; };
static int __init fou_init(void) static int __init fou_init(void)
......
...@@ -1635,6 +1635,7 @@ static void __net_exit arp_tables_net_exit(struct net *net) ...@@ -1635,6 +1635,7 @@ static void __net_exit arp_tables_net_exit(struct net *net)
static struct pernet_operations arp_tables_net_ops = { static struct pernet_operations arp_tables_net_ops = {
.init = arp_tables_net_init, .init = arp_tables_net_init,
.exit = arp_tables_net_exit, .exit = arp_tables_net_exit,
.async = true,
}; };
static int __init arp_tables_init(void) static int __init arp_tables_init(void)
......
...@@ -122,6 +122,7 @@ static void __net_exit nf_log_arp_net_exit(struct net *net) ...@@ -122,6 +122,7 @@ static void __net_exit nf_log_arp_net_exit(struct net *net)
static struct pernet_operations nf_log_arp_net_ops = { static struct pernet_operations nf_log_arp_net_ops = {
.init = nf_log_arp_net_init, .init = nf_log_arp_net_init,
.exit = nf_log_arp_net_exit, .exit = nf_log_arp_net_exit,
.async = true,
}; };
static int __init nf_log_arp_init(void) static int __init nf_log_arp_init(void)
......
...@@ -358,6 +358,7 @@ static void __net_exit nf_log_ipv4_net_exit(struct net *net) ...@@ -358,6 +358,7 @@ static void __net_exit nf_log_ipv4_net_exit(struct net *net)
static struct pernet_operations nf_log_ipv4_net_ops = { static struct pernet_operations nf_log_ipv4_net_ops = {
.init = nf_log_ipv4_net_init, .init = nf_log_ipv4_net_init,
.exit = nf_log_ipv4_net_exit, .exit = nf_log_ipv4_net_exit,
.async = true,
}; };
static int __init nf_log_ipv4_init(void) static int __init nf_log_ipv4_init(void)
......
...@@ -1928,6 +1928,7 @@ static void __net_exit ip6_tables_net_exit(struct net *net) ...@@ -1928,6 +1928,7 @@ static void __net_exit ip6_tables_net_exit(struct net *net)
static struct pernet_operations ip6_tables_net_ops = { static struct pernet_operations ip6_tables_net_ops = {
.init = ip6_tables_net_init, .init = ip6_tables_net_init,
.exit = ip6_tables_net_exit, .exit = ip6_tables_net_exit,
.async = true,
}; };
static int __init ip6_tables_init(void) static int __init ip6_tables_init(void)
......
...@@ -390,6 +390,7 @@ static void __net_exit nf_log_ipv6_net_exit(struct net *net) ...@@ -390,6 +390,7 @@ static void __net_exit nf_log_ipv6_net_exit(struct net *net)
static struct pernet_operations nf_log_ipv6_net_ops = { static struct pernet_operations nf_log_ipv6_net_ops = {
.init = nf_log_ipv6_net_init, .init = nf_log_ipv6_net_init,
.exit = nf_log_ipv6_net_exit, .exit = nf_log_ipv6_net_exit,
.async = true,
}; };
static int __init nf_log_ipv6_init(void) static int __init nf_log_ipv6_init(void)
......
...@@ -2094,7 +2094,8 @@ static struct pernet_operations ip_set_net_ops = { ...@@ -2094,7 +2094,8 @@ static struct pernet_operations ip_set_net_ops = {
.init = ip_set_net_init, .init = ip_set_net_init,
.exit = ip_set_net_exit, .exit = ip_set_net_exit,
.id = &ip_set_net_id, .id = &ip_set_net_id,
.size = sizeof(struct ip_set_net) .size = sizeof(struct ip_set_net),
.async = true,
}; };
static int __init static int __init
......
...@@ -3417,6 +3417,7 @@ static void __net_exit ctnetlink_net_exit_batch(struct list_head *net_exit_list) ...@@ -3417,6 +3417,7 @@ static void __net_exit ctnetlink_net_exit_batch(struct list_head *net_exit_list)
static struct pernet_operations ctnetlink_net_ops = { static struct pernet_operations ctnetlink_net_ops = {
.init = ctnetlink_net_init, .init = ctnetlink_net_init,
.exit_batch = ctnetlink_net_exit_batch, .exit_batch = ctnetlink_net_exit_batch,
.async = true,
}; };
static int __init ctnetlink_init(void) static int __init ctnetlink_init(void)
......
...@@ -406,6 +406,7 @@ static struct pernet_operations proto_gre_net_ops = { ...@@ -406,6 +406,7 @@ static struct pernet_operations proto_gre_net_ops = {
.exit = proto_gre_net_exit, .exit = proto_gre_net_exit,
.id = &proto_gre_net_id, .id = &proto_gre_net_id,
.size = sizeof(struct netns_proto_gre), .size = sizeof(struct netns_proto_gre),
.async = true,
}; };
static int __init nf_ct_proto_gre_init(void) static int __init nf_ct_proto_gre_init(void)
......
...@@ -705,6 +705,7 @@ static void nf_conntrack_pernet_exit(struct list_head *net_exit_list) ...@@ -705,6 +705,7 @@ static void nf_conntrack_pernet_exit(struct list_head *net_exit_list)
static struct pernet_operations nf_conntrack_net_ops = { static struct pernet_operations nf_conntrack_net_ops = {
.init = nf_conntrack_pernet_init, .init = nf_conntrack_pernet_init,
.exit_batch = nf_conntrack_pernet_exit, .exit_batch = nf_conntrack_pernet_exit,
.async = true,
}; };
static int __init nf_conntrack_standalone_init(void) static int __init nf_conntrack_standalone_init(void)
......
...@@ -47,6 +47,7 @@ static void __net_exit nf_log_netdev_net_exit(struct net *net) ...@@ -47,6 +47,7 @@ static void __net_exit nf_log_netdev_net_exit(struct net *net)
static struct pernet_operations nf_log_netdev_net_ops = { static struct pernet_operations nf_log_netdev_net_ops = {
.init = nf_log_netdev_net_init, .init = nf_log_netdev_net_init,
.exit = nf_log_netdev_net_exit, .exit = nf_log_netdev_net_exit,
.async = true,
}; };
static int __init nf_log_netdev_init(void) static int __init nf_log_netdev_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment