]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d6a6a227e7bf473c4b8be2158aff5ac7938b2dd
tree30ab55658fb54ad3ad3f606836edf90bdb673cbf
parenteedbd89c7442eee7ed6bae5e9c37854bb1aaea85
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