mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
Added tcp_kick(). This speed up LILO and GRUB booting by almost two
orders of magnitude.
This commit is contained in:
@@ -183,6 +183,19 @@ static void tcp_periodic ( void ) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Kick a connection into life
|
||||
*
|
||||
* @v conn TCP connection
|
||||
*
|
||||
* Call this function when you have new data to send and are not
|
||||
* already being called as part of TCP processing.
|
||||
*/
|
||||
void tcp_kick ( struct tcp_connection *conn __unused ) {
|
||||
/* Just kick all the connections; this will work for now */
|
||||
tcp_periodic();
|
||||
}
|
||||
|
||||
/**
|
||||
* Single-step the TCP stack
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user