From: Guillaume Nault Date: Fri, 11 Dec 2015 18:54:52 +0000 (+0100) Subject: ppp: declare ppp devices as enumerated interfaces X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69d9728d00c7f2acc290d08718c185f231b8fc20;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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//name_assign_type). Signed-off-by: Guillaume Nault Signed-off-by: David S. Miller --- 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;