diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-04 11:08:29 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-04 11:08:29 -0800 |
commit | 8b500111ebb7d8acc037d2ebd51b42bc65229589 (patch) | |
tree | adbe2bd194764e7c18844b22c751b8653407754f /gpxe | |
parent | 27d83f63e5aac365c22896d4645090c80873f672 (diff) | |
download | syslinux-8b500111ebb7d8acc037d2ebd51b42bc65229589.tar.gz |
gPXE: bump the window size to 64K
Change the window size from 4K to 64K to have at least a hope of sane
WAN performance. Retransmission cost is mostly related to timeouts,
not amount retransmitted, anyway.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'gpxe')
-rw-r--r-- | gpxe/gpxe.diff | 15 | ||||
-rw-r--r-- | gpxe/src/include/gpxe/tcp.h | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/gpxe/gpxe.diff b/gpxe/gpxe.diff index 184a0cd3..16ab1c94 100644 --- a/gpxe/gpxe.diff +++ b/gpxe/gpxe.diff @@ -40,3 +40,18 @@ index 8afefe3..b92e08e 100644 printf ( "\nPress Ctrl-B for the gPXE command line..." ); /* Wait for key */ +diff --git a/gpxe/src/include/gpxe/tcp.h b/gpxe/src/include/gpxe/tcp.h +index 7ae7eab..9dc39fc 100644 +--- a/gpxe/src/include/gpxe/tcp.h ++++ b/gpxe/src/include/gpxe/tcp.h +@@ -286,8 +286,8 @@ struct tcp_options { + * actually use 65536, we use a window size of (65536-4) to ensure + * that payloads remain dword-aligned. + */ +-//#define TCP_MAX_WINDOW_SIZE ( 65536 - 4 ) +-#define TCP_MAX_WINDOW_SIZE 4096 ++#define TCP_MAX_WINDOW_SIZE ( 65536 - 4 ) ++//#define TCP_MAX_WINDOW_SIZE 4096 + + /** + * Path MTU diff --git a/gpxe/src/include/gpxe/tcp.h b/gpxe/src/include/gpxe/tcp.h index 7ae7eab9..9dc39fcc 100644 --- a/gpxe/src/include/gpxe/tcp.h +++ b/gpxe/src/include/gpxe/tcp.h @@ -286,8 +286,8 @@ struct tcp_options { * actually use 65536, we use a window size of (65536-4) to ensure * that payloads remain dword-aligned. */ -//#define TCP_MAX_WINDOW_SIZE ( 65536 - 4 ) -#define TCP_MAX_WINDOW_SIZE 4096 +#define TCP_MAX_WINDOW_SIZE ( 65536 - 4 ) +//#define TCP_MAX_WINDOW_SIZE 4096 /** * Path MTU |