feat(lwip): Add configuration for TCPIP mailbox size

This commit is contained in:
Dong Heng
2018-10-24 19:45:12 +08:00
parent d28329d713
commit 48648ce3ed
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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