From 4b662d1a22752c67221405b360e7822ecc5b344a Mon Sep 17 00:00:00 2001 From: xiehang Date: Mon, 21 Sep 2020 10:58:43 +0800 Subject: [PATCH 1/2] lw-ip: fix udp tx packet loss issue --- components/lwip/lwip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lwip/lwip b/components/lwip/lwip index 5b2072ebb8..602d25c525 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 5b2072ebb82e606ed1d0ae1345742716d6499e7e +Subproject commit 602d25c525cbca272b33736170575c1665613beb From 4b11a05391197688f8a279901343d79f42e8297d Mon Sep 17 00:00:00 2001 From: ChenJianxing Date: Mon, 20 Jul 2020 21:04:45 +0800 Subject: [PATCH 2/2] lwip: fix IPv6 ND6 queue too much pkts cause no mem issue and add menuconfig item for this params. --- components/lwip/Kconfig | 14 ++++++++++++++ components/lwip/lwip | 2 +- components/lwip/port/esp32/include/lwipopts.h | 10 ++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 6be8f629df..39f33660a1 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -587,6 +587,20 @@ menu "LWIP" This would in turn fail the configuration for the whole link. If your modem is not responding correctly to PPP Phase Network, try to disable IPV6 support. + config LWIP_IPV6_MEMP_NUM_ND6_QUEUE + int "Max number of IPv6 packets to queue during MAC resolution" + range 3 20 + default 3 + help + Config max number of IPv6 packets to queue during MAC resolution. + + config LWIP_IPV6_ND6_NUM_NEIGHBORS + int "Max number of entries in IPv6 neighbor cache" + range 3 10 + default 5 + help + Config max number of entries in IPv6 neighbor cache + config LWIP_PPP_NOTIFY_PHASE_SUPPORT bool "Enable Notify Phase Callback" depends on LWIP_PPP_SUPPORT diff --git a/components/lwip/lwip b/components/lwip/lwip index 602d25c525..80d6d19a92 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 602d25c525cbca272b33736170575c1665613beb +Subproject commit 80d6d19a929c6db577fc44a47fdb4acffdd68933 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index e2ec70796c..272dd44afa 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -708,6 +708,16 @@ */ #define LWIP_IPV6 1 +/** + * MEMP_NUM_ND6_QUEUE: Max number of IPv6 packets to queue during MAC resolution. + */ +#define MEMP_NUM_ND6_QUEUE CONFIG_LWIP_IPV6_MEMP_NUM_ND6_QUEUE + +/** + * LWIP_ND6_NUM_NEIGHBORS: Number of entries in IPv6 neighbor cache + */ +#define LWIP_ND6_NUM_NEIGHBORS CONFIG_LWIP_IPV6_ND6_NUM_NEIGHBORS + /* --------------------------------------- ---------- Hook options ---------------