esp_wifi/lwip: support TCP window scale

Support enable/disable TCP Window scale feature via menuconfig
This commit is contained in:
liu zhifu
2019-06-04 14:09:04 +08:00
parent db6a30b446
commit d1e7d04f9b
4 changed files with 35 additions and 4 deletions
+19 -2
View File
@@ -148,7 +148,8 @@ menu "LWIP"
config LWIP_TCPIP_RECVMBOX_SIZE
int "TCPIP task receive mail box size"
default 32
range 6 64
range 6 64 if !LWIP_WND_SCALE
range 6 1024 if LWIP_WND_SCALE
help
Set TCPIP task receive mail box size. Generally bigger value means higher throughput
but more memory. The value should be bigger than UDP/TCP mail box size.
@@ -341,7 +342,8 @@ menu "LWIP"
config LWIP_TCP_RECVMBOX_SIZE
int "Default TCP receive mail box size"
default 6
range 6 64
range 6 64 if !LWIP_WND_SCALE
range 6 1024 if LWIP_WND_SCALE
help
Set TCP receive mail box size. Generally bigger value means higher throughput
but more memory. The recommended value is: LWIP_TCP_WND_DEFAULT/TCP_MSS + 2, e.g. if
@@ -401,6 +403,21 @@ menu "LWIP"
endchoice
config LWIP_WND_SCALE
bool "Support TCP window scale"
depends on SPIRAM_TRY_ALLOCATE_WIFI_LWIP
default n
help
Enable this feature to support TCP window scaling.
config LWIP_TCP_RCV_SCALE
int "Set TCP receiving window scaling factor"
depends on LWIP_WND_SCALE
range 0 14
default 0
help
Enable this feature to support TCP window scaling.
endmenu # TCP
menu "UDP"