From c1a6b556b4ee713ad17d22b55885ab28ed96fdb5 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Tue, 31 Jul 2018 10:59:06 +0800 Subject: [PATCH] feat(lwip): Add lwip high throughput configuration --- components/lwip/Kconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 90006e03..ffdff57e 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -4,6 +4,18 @@ config LWIP_USE_IRAM bool "Enable lwip use iram option" default n +config LWIP_HIGH_THROUGHPUT + bool "Enable lwip high throughput" + default n + select TCP_QUEUE_OOSEQ + select TCP_HIGH_SPEED_RETRANSMISSION + select SOC_FULL_ICACHE + help + Enable this option, also enable "TCP_QUEUE_OOSEQ", "TCP_HIGH_SPEED_RETRANSMISSION" and + "SOC_FULL_ICACHE", so lwip should cache TCP message received in disorder sequence and + chip should full 32 KB IRAM as icache. For these 2 reasons, the global heap user can used + may reduce a lot. + menu "ARP" config LWIP_ARP_TABLE_SIZE @@ -229,6 +241,12 @@ config LWIP_LOOPBACK_MAX_PBUFS menu "TCP" +config TCP_HIGH_SPEED_RETRANSMISSION + bool "TCP high speed retransmissions" + default n + help + "Enable this option, TCP retransmissions time will always be set to 500ms forcely." + config LWIP_MAX_ACTIVE_TCP int "Maximum active TCP Connections" range 1 32