summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bootp.c3
-rw-r--r--net/net.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 4db63cbbe6..043f9e0ed4 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -311,6 +311,7 @@ BootpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
BootpVendorProcess((uchar *)&bp->bp_vend[4], len);
NetSetTimeout(0, (thand_f *)0);
+ bootstage_mark(BOOTSTAGE_BOOTP_STOP, "bootp_stop");
debug("Got good BOOTP\n");
@@ -552,6 +553,7 @@ BootpRequest (void)
Bootp_t *bp;
int ext_len, pktlen, iplen;
+ bootstage_mark(BOOTSTAGE_BOOTP_START, "bootp_start");
#if defined(CONFIG_CMD_DHCP)
dhcp_state = INIT;
#endif
@@ -914,6 +916,7 @@ DhcpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
BootpCopyNetParams(bp); /* Store net params from reply */
dhcp_state = BOUND;
printf ("DHCP client bound to address %pI4\n", &NetOurIP);
+ bootstage_mark(BOOTSTAGE_BOOTP_STOP, "bootp_stop");
/* Obey the 'autoload' setting */
if ((s = getenv("autoload")) != NULL) {
diff --git a/net/net.c b/net/net.c
index 7a6058339c..272fb5bad7 100644
--- a/net/net.c
+++ b/net/net.c
@@ -378,6 +378,7 @@ NetLoop(proto_t protocol)
NetArpWaitTxPacketSize = 0;
}
+ bootstage_mark(BOOTSTAGE_ETH_START, "eth_start");
eth_halt();
#ifdef CONFIG_NET_MULTI
eth_set_current();