put only once used function inline
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
8f0d0f25ed
commit
42f4ca1c85
19
net/net.c
19
net/net.c
|
@ -189,18 +189,6 @@ void ArpRequest (void)
|
||||||
(void) eth_send (NetTxPacket, (pkt - NetTxPacket) + ARP_HDR_SIZE);
|
(void) eth_send (NetTxPacket, (pkt - NetTxPacket) + ARP_HDR_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ArpTimeoutCheck(void)
|
|
||||||
{
|
|
||||||
if (!NetArpWaitPacketIP)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* check for arp timeout */
|
|
||||||
if (is_timeout(NetArpWaitTimerStart, ARP_TIMEOUT)) {
|
|
||||||
NetArpWaitTimerStart = get_time_ns();
|
|
||||||
ArpRequest();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
/*
|
/*
|
||||||
* Main network processing loop.
|
* Main network processing loop.
|
||||||
|
@ -298,7 +286,12 @@ int NetLoop(void)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ArpTimeoutCheck();
|
/* check for arp timeout */
|
||||||
|
if (NetArpWaitPacketIP &&
|
||||||
|
is_timeout(NetArpWaitTimerStart, ARP_TIMEOUT)) {
|
||||||
|
NetArpWaitTimerStart = get_time_ns();
|
||||||
|
ArpRequest();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check for a timeout, and run the timeout handler
|
* Check for a timeout, and run the timeout handler
|
||||||
|
|
Loading…
Reference in New Issue