lwip: fix IPv6 ND6 queue too much pkts cause no mem issue and add menuconfig item for this params.

This commit is contained in:
ChenJianxing 2020-08-27 15:10:56 +08:00
parent fb18b12efe
commit 186ad2f6aa
3 changed files with 23 additions and 1 deletions

View file

@ -539,6 +539,19 @@ menu "LWIP"
default 0x0 if TCPIP_TASK_AFFINITY_CPU0
default 0x1 if TCPIP_TASK_AFFINITY_CPU1
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.
menuconfig PPP_SUPPORT
bool "Enable PPP support (new/experimental)"

@ -1 +1 @@
Subproject commit d6fc3be058ad9b1a1c3ba29db0511caf1edcb497
Subproject commit db9134beabe908b1960948be6c52b5bcf153bc5d

View file

@ -691,6 +691,15 @@
*/
#define LWIP_ND6_RDNSS_MAX_DNS_SERVERS 0
/**
* 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
/*
---------------------------------------