From 9bb03636f2a779703ce664853b82b2227974ff31 Mon Sep 17 00:00:00 2001 From: Alexander Bushnev Date: Tue, 3 Dec 2024 00:45:13 +0100 Subject: [PATCH] lwipopts adjustment --- examples/rpi_pico_w/lwipopts.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/examples/rpi_pico_w/lwipopts.h b/examples/rpi_pico_w/lwipopts.h index 53d8567d4..64407c8fd 100644 --- a/examples/rpi_pico_w/lwipopts.h +++ b/examples/rpi_pico_w/lwipopts.h @@ -14,16 +14,16 @@ #endif #define MEM_ALIGNMENT 4 #define MEM_SIZE 4000 -#define MEMP_NUM_TCP_SEG 32 -#define MEMP_NUM_ARP_QUEUE 10 +#define MEMP_NUM_TCP_SEG 64 +#define MEMP_NUM_ARP_QUEUE 20 #define PBUF_POOL_SIZE 24 #define LWIP_ARP 1 #define LWIP_ETHERNET 1 #define LWIP_ICMP 1 #define LWIP_RAW 1 -#define TCP_WND (8 * TCP_MSS) +#define TCP_WND (16 * TCP_MSS) #define TCP_MSS 1460 -#define TCP_SND_BUF (8 * TCP_MSS) +#define TCP_SND_BUF (16 * TCP_MSS) #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1)) / (TCP_MSS)) #define LWIP_NETIF_STATUS_CALLBACK 1 #define LWIP_NETIF_LINK_CALLBACK 1 @@ -50,6 +50,7 @@ #define LWIP_DEBUG 1 #define LWIP_STATS 1 #define LWIP_STATS_DISPLAY 1 +#define LWIP_FREERTOS_CHECK_CORE_LOCKING 1 #endif #define ETHARP_DEBUG LWIP_DBG_OFF @@ -81,14 +82,12 @@ #define SLIP_DEBUG LWIP_DBG_OFF #define DHCP_DEBUG LWIP_DBG_OFF -#define TCPIP_THREAD_STACKSIZE 1024 -#define DEFAULT_THREAD_STACKSIZE 1024 -#define DEFAULT_RAW_RECVMBOX_SIZE 8 -#define DEFAULT_UDP_RECVMBOX_SIZE 8 -#define DEFAULT_TCP_RECVMBOX_SIZE 8 -#define TCPIP_MBOX_SIZE 8 +#define TCPIP_THREAD_STACKSIZE 2048 +#define DEFAULT_THREAD_STACKSIZE 2048 +#define DEFAULT_RAW_RECVMBOX_SIZE 16 +#define DEFAULT_UDP_RECVMBOX_SIZE 16 +#define DEFAULT_TCP_RECVMBOX_SIZE 16 +#define TCPIP_MBOX_SIZE 16 #define LWIP_TIMEVAL_PRIVATE 0 -#define LWIP_FREERTOS_CHECK_CORE_LOCKING 1 - #endif /* __LWIPOPTS_H__ */