diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-26 16:01:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-27 11:01:37 -0500 |
commit | cd59b28ce9491243a14947376332689de6ec568a (patch) | |
tree | ad62a030c63d65b5bfd558a6b0aff6c7f6c28015 /drivers/net/ppp | |
parent | 9e7674519151646b1f36b2bf9d5fbdccba6711d2 (diff) | |
download | talos-obmc-linux-cd59b28ce9491243a14947376332689de6ec568a.tar.gz talos-obmc-linux-cd59b28ce9491243a14947376332689de6ec568a.zip |
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: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r-- | drivers/net/ppp/ppp_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 255a5def56e9..a393c1dff7dc 100644 --- a/drivers/net/ppp/ppp_generic.c +++ b/drivers/net/ppp/ppp_generic.c @@ -971,6 +971,7 @@ static struct pernet_operations ppp_net_ops = { .exit = ppp_exit_net, .id = &ppp_net_id, .size = sizeof(struct ppp_net), + .async = true, }; static int ppp_unit_register(struct ppp *ppp, int unit, bool ifname_is_set) |