mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
94dbffe16e
commit
69d9728d00
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue