mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-25 05:25:32 +00:00
lwip: set to max snd window which is known to work
The window scale option (http://tools.ietf.org/html/rfc1323) patch of lwIP definitely works solely for the receive window, not for the send window. Setting the send window size to the maximum of an 16bit value, 65535, or multiple of it (x * 65536 - 1) results in the same performance. Everything else decrease performance. We will have to check this window scale patch before using higher values.
This commit is contained in:
parent
4925f77dac
commit
776a8d3f8c
@ -66,7 +66,16 @@
|
||||
|
||||
#define TCP_MSS 1460
|
||||
#define TCP_WND (96 * TCP_MSS)
|
||||
#define TCP_SND_BUF (32 * TCP_MSS)
|
||||
|
||||
/*
|
||||
* The window scale option (http://tools.ietf.org/html/rfc1323) patch of lwIP
|
||||
* definitely works solely for the receive window, not for the send window.
|
||||
* Setting the send window size to the maximum of an 16bit value, 65535,
|
||||
* or multiple of it (x * 65536 - 1) results in the same performance.
|
||||
* Everything else decrease performance.
|
||||
*/
|
||||
#define TCP_SND_BUF (65535)
|
||||
|
||||
#define TCP_SND_QUEUELEN ((32 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
|
||||
|
||||
#define RECV_BUFSIZE_DEFAULT 128 * 1024
|
||||
|
Loading…
x
Reference in New Issue
Block a user