LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH net-next 3/6] net: Convert ovs_net_ops

To: davem@xxxxxxxxxxxxx, wensong@xxxxxxxxxxxx, horms@xxxxxxxxxxxx, ja@xxxxxx, pablo@xxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxxxx, fw@xxxxxxxxx, pshelar@xxxxxxx, g.nault@xxxxxxxxxxxx, jchapman@xxxxxxxxxxx, lorenzo.bianconi@xxxxxxxxxx, dwindsor@xxxxxxxxx, elena.reshetova@xxxxxxxxx, dsahern@xxxxxxxxx, roopa@xxxxxxxxxxxxxxxxxxx, rshearma@xxxxxxxxxxx, dan.j.williams@xxxxxxxxx, amine.kherbouche@xxxxxxxxx, netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, dev@xxxxxxxxxxxxxxx, ktkhai@xxxxxxxxxxxxx
Subject: [PATCH net-next 3/6] net: Convert ovs_net_ops
From: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
Date: Thu, 15 Mar 2018 12:11:16 +0300
These pernet_operations initialize and destroy net_generic()
data pointed by ovs_net_id. Exit method destroys vports from
alive net to exiting net. Since they are only pernet_operations
interested in this data, and exit method is executed under
exclusive global lock (ovs_mutex), they are safe to be executed
in parallel.

Signed-off-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
---
 net/openvswitch/datapath.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index ef38e5aecd28..100191df0371 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -2384,6 +2384,7 @@ static struct pernet_operations ovs_net_ops = {
        .exit = ovs_exit_net,
        .id   = &ovs_net_id,
        .size = sizeof(struct ovs_net),
+       .async = true,
 };
 
 static int __init dp_init(void)

--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>