From 2e17ad62b832c5016081d2204ac2226fcf1ded28 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Mon, 5 Dec 2022 21:19:06 +0800 Subject: [PATCH] lwip:optimization dns ipv4 ipv6 timer * Update submodule: git log --oneline * Update submodule: git log --oneline 6132c9755a43d4e04de4457f1558ced415756e4d..79182163e9e77547e58a6aa34db94902b9812cb3 Detailed description of the changes: - dhcp: optimization fine timer when dhcp start(esp-lwip@79182163) - ip6 timer: optimization lwip ip6 reassembly timer (esp-lwip@c943fc5a) - ip4 timer: optimization lwip ip4 reassembly timer (esp-lwip@17f41c9f) - dns timer: optimization lwip dns timer (esp-lwip@7f5ab42c) --- components/lwip/lwip | 2 +- components/lwip/port/esp32/include/lwipopts.h | 16 ++++++++++++++++ components/lwip/test_afl_host/sdkconfig.defaults | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/components/lwip/lwip b/components/lwip/lwip index 6132c9755a..79182163e9 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 6132c9755a43d4e04de4457f1558ced415756e4d +Subproject commit 79182163e9e77547e58a6aa34db94902b9812cb3 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 511d4fc0dd..151c0e3091 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -1026,9 +1026,25 @@ #ifdef CONFIG_LWIP_TIMERS_ONDEMAND #define ESP_LWIP_IGMP_TIMERS_ONDEMAND 1 #define ESP_LWIP_MLD6_TIMERS_ONDEMAND 1 +#define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND 1 +#define ESP_LWIP_DNS_TIMERS_ONDEMAND 1 +#if IP_REASSEMBLY +#define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND 1 +#endif /* IP_REASSEMBLY */ +#if LWIP_IPV6_REASS +#define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND 1 +#endif /* LWIP_IPV6_REASS */ #else #define ESP_LWIP_IGMP_TIMERS_ONDEMAND 0 #define ESP_LWIP_MLD6_TIMERS_ONDEMAND 0 +#define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND 0 +#define ESP_LWIP_DNS_TIMERS_ONDEMAND 0 +#if IP_REASSEMBLY +#define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND 0 +#endif /* IP_REASSEMBLY */ +#if LWIP_IPV6_REASS +#define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND 0 +#endif /* LWIP_IPV6_REASS */ #endif #define TCP_SND_BUF CONFIG_LWIP_TCP_SND_BUF_DEFAULT diff --git a/components/lwip/test_afl_host/sdkconfig.defaults b/components/lwip/test_afl_host/sdkconfig.defaults index ec02309aec..dd7f02c667 100644 --- a/components/lwip/test_afl_host/sdkconfig.defaults +++ b/components/lwip/test_afl_host/sdkconfig.defaults @@ -1 +1,2 @@ CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=n +CONFIG_LWIP_TIMERS_ONDEMAND=n