diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2015-12-11 19:54:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-14 16:20:57 -0500 |
commit | 69d9728d00c7f2acc290d08718c185f231b8fc20 (patch) | |
tree | 4485ae0e156ba61a2def384891de2f9913ebaf31 /drivers/net/ppp | |
parent | 94dbffe16eb187a7e9c34f1f614925fd9460ec33 (diff) | |
download | linux-69d9728d00c7f2acc290d08718c185f231b8fc20.tar.bz2 |
ppp: declare ppp devices as enumerated interfaces
Let user space be aware of the naming scheme used by ppp interfaces
(visible in /sys/class/net/<iface>/name_assign_type).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r-- | drivers/net/ppp/ppp_generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 1cd7651c6659..fc8ad001bc94 100644 --- a/drivers/net/ppp/ppp_generic.c +++ b/drivers/net/ppp/ppp_generic.c @@ -2726,8 +2726,7 @@ static struct ppp *ppp_create_interface(struct net *net, int unit, int ret = -ENOMEM; int i; - dev = alloc_netdev(sizeof(struct ppp), "", NET_NAME_UNKNOWN, - ppp_setup); + dev = alloc_netdev(sizeof(struct ppp), "", NET_NAME_ENUM, ppp_setup); if (!dev) goto out1; |