Commit 263911d7 authored by Yangbo Lu's avatar Yangbo Lu Committed by Benjamin Cabé
Browse files

net: net_if: use simple vlanX for vlan interface name



Used simple vlanX for vlan interface name. What interface the
vlan interface was attached to could be checked by "net iface"
or "net vlan".

Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
parent 0948812f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6415,6 +6415,11 @@ static void set_default_name(struct net_if *iface)
		static int count;

		snprintk(name, sizeof(name), "thread%d", count++);
	} else if (IS_ENABLED(CONFIG_NET_VLAN) &&
		   (net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL))) {
		static int count;

		snprintk(name, sizeof(name), "vlan%d", count++);
	} else {
		static int count;