diff options
author | Michael Brown | 2006-05-27 21:01:20 +0200 |
---|---|---|
committer | Michael Brown | 2006-05-27 21:01:20 +0200 |
commit | f743de4858857029bd04e5642134d14546ad1393 (patch) | |
tree | dfe815f21296162cccd08dbdd2e930a1c9725ef6 /src/net/tcp.c | |
parent | Avoid causing TX overflow on small TX queues. (diff) | |
download | ipxe-f743de4858857029bd04e5642134d14546ad1393.tar.gz ipxe-f743de4858857029bd04e5642134d14546ad1393.tar.xz ipxe-f743de4858857029bd04e5642134d14546ad1393.zip |
Added tcp_kick(). This speed up LILO and GRUB booting by almost two
orders of magnitude.
Diffstat (limited to 'src/net/tcp.c')
-rw-r--r-- | src/net/tcp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c index ea26f019..06ab2eea 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -184,6 +184,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 * * @v process TCP process |