mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
esp_wifi/lwip: support TCP window scale
Support enable/disable TCP Window scale feature via menuconfig
This commit is contained in:
+19
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user