From ff01324c9b9eabfcb72563e7820d70181c14cef3 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Sun, 17 Mar 2024 18:22:33 +0200 Subject: [PATCH] net: if: Remove VLAN count checks No need to do the checks any more because user has specified the VLAN count and so many VLAN virtual interface are already created. Signed-off-by: Jukka Rissanen --- subsys/net/ip/net_if.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/subsys/net/ip/net_if.c b/subsys/net/ip/net_if.c index 82e077f0d18..97a5f275703 100644 --- a/subsys/net/ip/net_if.c +++ b/subsys/net/ip/net_if.c @@ -5302,25 +5302,6 @@ void net_if_init(void) k_thread_name_set(&tx_thread_ts, "tx_tstamp"); #endif /* CONFIG_NET_PKT_TIMESTAMP_THREAD */ -#if defined(CONFIG_NET_VLAN) - /* Make sure that we do not have too many network interfaces - * compared to the number of VLAN interfaces. - */ - if_count = 0; - - STRUCT_SECTION_FOREACH(net_if, iface) { - if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { - if_count++; - } - } - - if (if_count > CONFIG_NET_VLAN_COUNT) { - NET_WARN("You have configured only %d VLAN interfaces" - " but you have %d network interfaces.", - CONFIG_NET_VLAN_COUNT, if_count); - } -#endif - out: k_mutex_unlock(&lock); }