From 7490a1553d3577a65298f67160e9ed5a027c0548 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Mon, 7 Nov 2022 16:16:31 +0800 Subject: [PATCH] lwip:optimization dns ipv4 ipv6 timeir * Update submodule: git log --oneline 33912690ea005e8ff05b2c579ebbf0a4189c3b00..705dd71d46779bf29653f1f1d7b1af5a09fb2aa7 Detailed description of the changes: - dhcp: init fine timer when dhcp start(esp-lwip@705dd71d) - ip6 timer: optimization lwip ip6 reassembly timer (esp-lwip@9813ea9a) - ip4 timer: optimization lwip ip4 reassembly timer (esp-lwip@ce1a7099) - dns timer: optimization lwip dns timer (esp-lwip@6b0bfc2e) --- components/lwip/lwip | 2 +- components/lwip/port/esp32/include/lwipopts.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/components/lwip/lwip b/components/lwip/lwip index 33912690ea00..705dd71d4677 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 33912690ea005e8ff05b2c579ebbf0a4189c3b00 +Subproject commit 705dd71d46779bf29653f1f1d7b1af5a09fb2aa7 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index f30838cb1a0e..2a9d29fedcc9 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -1425,10 +1425,24 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min) #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 /**