net/arp: Redesign ARP table aging to simplify the net initialization

This commit is contained in:
Xiang Xiao
2018-11-09 13:54:55 -06:00
committed by Gregory Nutt
parent 9d09b5aad7
commit 43706cd797
8 changed files with 62 additions and 351 deletions
+2 -19
View File
@@ -68,9 +68,6 @@
#ifndef CONFIG_DISABLE_PTHREAD
# include "pthread/pthread.h"
#endif
#ifdef CONFIG_SCHED_WORKQUEUE
# include "wqueue/wqueue.h"
#endif
#include "clock/clock.h"
#include "timer/timer.h"
#include "irq/irq.h"
@@ -694,15 +691,9 @@ void os_start(void)
#endif
#ifdef CONFIG_NET
/* Initialize the networking system. Network initialization is
* performed in two steps: (1) net_setup() initializes static
* configuration of the network support. This must be done prior
* to registering network drivers by up_initialize(). This step
* cannot require upon any hardware-depending features such as
* timers or interrupts.
*/
/* Initialize the networking system */
net_setup();
net_initialize();
#endif
/* The processor specific details of running the operating system
@@ -717,14 +708,6 @@ void os_start(void)
g_os_initstate = OSINIT_HARDWARE;
#ifdef CONFIG_NET
/* Complete initialization the networking system now that interrupts
* and timers have been configured by up_initialize().
*/
net_initialize();
#endif
#ifdef CONFIG_MM_SHM
/* Initialize shared memory support */