mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:30:52 +07:00
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>
This commit is contained in:
parent
8cec2f49dc
commit
ec716650a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user