mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
229952d192
@ -77,6 +77,7 @@ static void __net_exit broute_net_exit(struct net *net)
|
||||
static struct pernet_operations broute_net_ops = {
|
||||
.init = broute_net_init,
|
||||
.exit = broute_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ebtable_broute_init(void)
|
||||
|
@ -105,6 +105,7 @@ static void __net_exit frame_filter_net_exit(struct net *net)
|
||||
static struct pernet_operations frame_filter_net_ops = {
|
||||
.init = frame_filter_net_init,
|
||||
.exit = frame_filter_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ebtable_filter_init(void)
|
||||
|
@ -105,6 +105,7 @@ static void __net_exit frame_nat_net_exit(struct net *net)
|
||||
static struct pernet_operations frame_nat_net_ops = {
|
||||
.init = frame_nat_net_init,
|
||||
.exit = frame_nat_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ebtable_nat_init(void)
|
||||
|
@ -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 = {
|
||||
.init = nf_log_bridge_net_init,
|
||||
.exit = nf_log_bridge_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_log_bridge_init(void)
|
||||
|
@ -544,6 +544,7 @@ static struct pernet_operations caif_net_ops = {
|
||||
.exit = caif_exit_net,
|
||||
.id = &caif_net_id,
|
||||
.size = sizeof(struct caif_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
/* Initialize Caif devices list */
|
||||
|
@ -1010,6 +1010,7 @@ static void __net_exit cangw_pernet_exit(struct net *net)
|
||||
static struct pernet_operations cangw_pernet_ops = {
|
||||
.init = cangw_pernet_init,
|
||||
.exit = cangw_pernet_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static __init int cgw_module_init(void)
|
||||
|
@ -1031,6 +1031,7 @@ static struct pernet_operations dccp_v4_ops = {
|
||||
.init = dccp_v4_init_net,
|
||||
.exit = dccp_v4_exit_net,
|
||||
.exit_batch = dccp_v4_exit_batch,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init dccp_v4_init(void)
|
||||
|
@ -1116,6 +1116,7 @@ static struct pernet_operations dccp_v6_ops = {
|
||||
.init = dccp_v6_init_net,
|
||||
.exit = dccp_v6_exit_net,
|
||||
.exit_batch = dccp_v6_exit_batch,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init dccp_v6_init(void)
|
||||
|
@ -1081,6 +1081,7 @@ static struct pernet_operations fou_net_ops = {
|
||||
.exit = fou_exit_net,
|
||||
.id = &fou_net_id,
|
||||
.size = sizeof(struct fou_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init fou_init(void)
|
||||
|
@ -1635,6 +1635,7 @@ static void __net_exit arp_tables_net_exit(struct net *net)
|
||||
static struct pernet_operations arp_tables_net_ops = {
|
||||
.init = arp_tables_net_init,
|
||||
.exit = arp_tables_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init arp_tables_init(void)
|
||||
|
@ -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 = {
|
||||
.init = nf_log_arp_net_init,
|
||||
.exit = nf_log_arp_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_log_arp_init(void)
|
||||
|
@ -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 = {
|
||||
.init = nf_log_ipv4_net_init,
|
||||
.exit = nf_log_ipv4_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_log_ipv4_init(void)
|
||||
|
@ -1928,6 +1928,7 @@ static void __net_exit ip6_tables_net_exit(struct net *net)
|
||||
static struct pernet_operations ip6_tables_net_ops = {
|
||||
.init = ip6_tables_net_init,
|
||||
.exit = ip6_tables_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ip6_tables_init(void)
|
||||
|
@ -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 = {
|
||||
.init = nf_log_ipv6_net_init,
|
||||
.exit = nf_log_ipv6_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_log_ipv6_init(void)
|
||||
|
@ -2094,7 +2094,8 @@ static struct pernet_operations ip_set_net_ops = {
|
||||
.init = ip_set_net_init,
|
||||
.exit = ip_set_net_exit,
|
||||
.id = &ip_set_net_id,
|
||||
.size = sizeof(struct ip_set_net)
|
||||
.size = sizeof(struct ip_set_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init
|
||||
|
@ -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 = {
|
||||
.init = ctnetlink_net_init,
|
||||
.exit_batch = ctnetlink_net_exit_batch,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ctnetlink_init(void)
|
||||
|
@ -406,6 +406,7 @@ static struct pernet_operations proto_gre_net_ops = {
|
||||
.exit = proto_gre_net_exit,
|
||||
.id = &proto_gre_net_id,
|
||||
.size = sizeof(struct netns_proto_gre),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
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)
|
||||
static struct pernet_operations nf_conntrack_net_ops = {
|
||||
.init = nf_conntrack_pernet_init,
|
||||
.exit_batch = nf_conntrack_pernet_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_conntrack_standalone_init(void)
|
||||
|
@ -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 = {
|
||||
.init = nf_log_netdev_net_init,
|
||||
.exit = nf_log_netdev_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_log_netdev_init(void)
|
||||
|
Loading…
Reference in New Issue
Block a user