net: Convert ovs_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 15 Mar 2018 09:11:16 +0000 (12:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2018 21:07:39 +0000 (17:07 -0400)
commitec716650a750334cd763024597159eea3569e207
tree30ab55658fb54ad3ad3f606836edf90bdb673cbf
parent8cec2f49dc413d6328067d22862b0bdd0f4305ec
net: Convert ovs_net_ops

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@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c