Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69d9728d authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

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: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94dbffe1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;