Commit cd59b28c authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert ppp_net_ops

These pernet_operations are similar to bond_net_ops. Exit method
unregisters all net ppp devices, and it looks like another
pernet_operations are not interested in foreign net ppp list.
So, it's possible to mark them async.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e767451
...@@ -971,6 +971,7 @@ static struct pernet_operations ppp_net_ops = { ...@@ -971,6 +971,7 @@ static struct pernet_operations ppp_net_ops = {
.exit = ppp_exit_net, .exit = ppp_exit_net,
.id = &ppp_net_id, .id = &ppp_net_id,
.size = sizeof(struct ppp_net), .size = sizeof(struct ppp_net),
.async = true,
}; };
static int ppp_unit_register(struct ppp *ppp, int unit, bool ifname_is_set) static int ppp_unit_register(struct ppp *ppp, int unit, bool ifname_is_set)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment