Skip to content

Commit 4f1aec0

Browse files
committed
Merge branch 'pernet-convert-part8'
Kirill Tkhai says: ==================== Converting pernet_operations (part raspberrypi#8) this series continues to review and to convert pernet_operations to make them possible to be executed in parallel for several net namespaces at the same time. There are different operations over the tree, mostly are ipvs. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 5379457 + 6c77e79 commit 4f1aec0

5 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎net/l2tp/l2tp_core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,7 @@ static struct pernet_operations l2tp_net_ops = {
17871787
.exit = l2tp_exit_net,
17881788
.id = &l2tp_net_id,
17891789
.size = sizeof(struct l2tp_net),
1790+
.async = true,
17901791
};
17911792

17921793
static int __init l2tp_init(void)

‎net/mpls/af_mpls.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,6 +2488,7 @@ static void mpls_net_exit(struct net *net)
24882488
static struct pernet_operations mpls_net_ops = {
24892489
.init = mpls_net_init,
24902490
.exit = mpls_net_exit,
2491+
.async = true,
24912492
};
24922493

24932494
static struct rtnl_af_ops mpls_af_ops __read_mostly = {

‎net/netfilter/ipvs/ip_vs_core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,10 +2289,12 @@ static struct pernet_operations ipvs_core_ops = {
22892289
.exit = __ip_vs_cleanup,
22902290
.id = &ip_vs_net_id,
22912291
.size = sizeof(struct netns_ipvs),
2292+
.async = true,
22922293
};
22932294

22942295
static struct pernet_operations ipvs_core_dev_ops = {
22952296
.exit = __ip_vs_dev_cleanup,
2297+
.async = true,
22962298
};
22972299

22982300
/*

‎net/netfilter/ipvs/ip_vs_ftp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ static void __ip_vs_ftp_exit(struct net *net)
479479
static struct pernet_operations ip_vs_ftp_ops = {
480480
.init = __ip_vs_ftp_init,
481481
.exit = __ip_vs_ftp_exit,
482+
.async = true,
482483
};
483484

484485
static int __init ip_vs_ftp_init(void)

‎net/openvswitch/datapath.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,7 @@ static struct pernet_operations ovs_net_ops = {
23842384
.exit = ovs_exit_net,
23852385
.id = &ovs_net_id,
23862386
.size = sizeof(struct ovs_net),
2387+
.async = true,
23872388
};
23882389

23892390
static int __init dp_init(void)

0 commit comments

Comments
 (0)