[syslinux:master] gPXE: bump the window size to 64K

syslinux-bot for H. Peter Anvin hpa at zytor.com
Thu Feb 4 11:12:11 PST 2010


Commit-ID:  8b500111ebb7d8acc037d2ebd51b42bc65229589
Gitweb:     http://syslinux.zytor.com/commit/8b500111ebb7d8acc037d2ebd51b42bc65229589
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 4 Feb 2010 11:08:29 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 4 Feb 2010 11:08:29 -0800

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 at zytor.com>


---
 gpxe/gpxe.diff              |   15 +++++++++++++++
 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 184a0cd..16ab1c9 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 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



More information about the Syslinux-commits mailing list