summaryrefslogtreecommitdiffstats
path: root/src/net/tcp.c
diff options
context:
space:
mode:
authorMichael Brown2006-05-27 21:01:20 +0200
committerMichael Brown2006-05-27 21:01:20 +0200
commitf743de4858857029bd04e5642134d14546ad1393 (patch)
treedfe815f21296162cccd08dbdd2e930a1c9725ef6 /src/net/tcp.c
parentAvoid causing TX overflow on small TX queues. (diff)
downloadipxe-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.c13
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