ppp: declare ppp devices as enumerated interfaces
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 11 Dec 2015 18:54:52 +0000 (19:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2015 21:20:57 +0000 (16:20 -0500)
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>
drivers/net/ppp/ppp_generic.c

index 1cd7651c6659ee893857b9d768e6de4c92668a07..fc8ad001bc949e894e7659301af65565a5a21046 100644 (file)
@@ -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;