diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 9a2314af..ce494062 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -25,6 +25,14 @@ config LWIP_GLOBAL_DATA_LINK_IRAM help Link LWIP global data(.bss .data COMMON) from DRAM to IRAM. +config TCPIP_RECVMBOX_SIZE + int "TCPIP task receive mail box size" + default 32 + range 6 64 + 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. + menu "ARP" config LWIP_ARP_TABLE_SIZE diff --git a/components/lwip/port/esp8266/include/lwipopts.h b/components/lwip/port/esp8266/include/lwipopts.h index 757eaf5b..f886a994 100644 --- a/components/lwip/port/esp8266/include/lwipopts.h +++ b/components/lwip/port/esp8266/include/lwipopts.h @@ -1246,7 +1246,7 @@ void *memp_malloc_ll(size_t type); * The queue size value itself is platform-dependent, but is passed to * sys_mbox_new() when tcpip_init is called. */ -#define TCPIP_MBOX_SIZE 16 +#define TCPIP_MBOX_SIZE CONFIG_TCPIP_RECVMBOX_SIZE /** * Define this to something that triggers a watchdog. This is called from