lwip: increase TCP send buffer 32->80 packets

Issue #4697
This commit is contained in:
Norman Feske 2022-12-03 22:00:59 +01:00 committed by Christian Helmuth
parent 0584ac195c
commit d9f5dda322
4 changed files with 11 additions and 11 deletions

View File

@ -115,7 +115,7 @@ install_config {
</start>
<start name="test-lwip_httpsrv" caps="120" priority="-1">
<resource name="RAM" quantum="4M"/>
<resource name="RAM" quantum="8M"/>
<config>
<vfs>
<dir name="dev"> <log/> </dir>

View File

@ -21,7 +21,7 @@ proc client_config { name prot ip_addr gateway netmask nic srv_port srv_ip } {
append result {
<start name="} $name {" priority="-1">
<binary name="} [client_bin $prot] {" />
<resource name="RAM" quantum="4M"/>
<resource name="RAM" quantum="8M"/>
<route>
<service name="Nic"> <child name="} $nic {"/> </service>
<any-service> <parent/> <any-child/> </any-service>
@ -51,7 +51,7 @@ proc server_config { name prot ip_addr gateway netmask nic port } {
append result {
<start name="} $name {" priority="-1">
<binary name="} [server_bin $prot] {" />
<resource name="RAM" quantum="4M"/>
<resource name="RAM" quantum="8M"/>
<route>
<service name="Nic"> <child name="} $nic {"/> </service>
<any-service> <parent/> <any-child/> </any-service>

View File

@ -125,7 +125,7 @@ append config {
</start>
<start name="test-lwip-udp-server">
<resource name="RAM" quantum="4M"/>
<resource name="RAM" quantum="8M"/>
<route>
<service name="Nic"> <child name="nic_router"/> </service>
<any-service> <parent/> <any-child/> </any-service>

View File

@ -36,13 +36,13 @@ extern "C" {
#define LWIP_NETIF_LOOPBACK 1 /* Looping back to same address? */
#define LWIP_STATS 0 /* disable stating */
#define LWIP_TCP_TIMESTAMPS 1
#define TCP_LISTEN_BACKLOG 1
#define TCP_MSS 1460
#define TCP_WND (32 * TCP_MSS)
#define TCP_SND_BUF (32 * TCP_MSS)
#define LWIP_WND_SCALE 3
#define TCP_RCV_SCALE 2
#define TCP_SND_QUEUELEN ((8 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
#define TCP_LISTEN_BACKLOG 1
#define TCP_MSS 1460
#define TCP_WND (80 * TCP_MSS)
#define TCP_SND_BUF (80 * TCP_MSS)
#define LWIP_WND_SCALE 3
#define TCP_RCV_SCALE 2
#define TCP_SND_QUEUELEN ((8 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
#define LWIP_NETIF_STATUS_CALLBACK 1 /* callback function used for interface changes */
#define LWIP_NETIF_LINK_CALLBACK 1 /* callback function used for link-state changes */