mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-05 09:00:55 +00:00
lwip: tweak configuration for downloading clients
The TCP window scaling is implemented for servers (like netperf's netserver) only. The client implementation just uses the lower 16 bits of the TCP_WND configuration value, which we therefore maximize to ~64K.
This commit is contained in:
parent
bdc8e1f8fb
commit
81ada6b4f2
@ -72,7 +72,13 @@
|
|||||||
#define TCPIP_MBOX_SIZE 128
|
#define TCPIP_MBOX_SIZE 128
|
||||||
|
|
||||||
#define TCP_MSS 1460
|
#define TCP_MSS 1460
|
||||||
#define TCP_WND (96 * TCP_MSS)
|
|
||||||
|
/*
|
||||||
|
* The TCP window scaling is implemented for servers only, while the client
|
||||||
|
* implementation just uses the lower 16 bits of the TCP_WND configuration
|
||||||
|
* value. We, therefore, maximize the TCP_WND value to ~64K.
|
||||||
|
*/
|
||||||
|
#define TCP_WND ((96 * TCP_MSS) & 0xffff)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The window scale option (http://tools.ietf.org/html/rfc1323) patch of lwIP
|
* The window scale option (http://tools.ietf.org/html/rfc1323) patch of lwIP
|
||||||
@ -85,7 +91,7 @@
|
|||||||
|
|
||||||
#define TCP_SND_QUEUELEN ((32 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
|
#define TCP_SND_QUEUELEN ((32 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
|
||||||
|
|
||||||
#define RECV_BUFSIZE_DEFAULT 128 * 1024
|
#define RECV_BUFSIZE_DEFAULT (512*1024)
|
||||||
|
|
||||||
#define PBUF_POOL_SIZE 96
|
#define PBUF_POOL_SIZE 96
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user