From 0d5e3bb66362ae9c9e4358dd3206cabb0ef9d658 Mon Sep 17 00:00:00 2001 From: Our Air Quality Date: Wed, 16 Aug 2017 07:50:23 +1000 Subject: [PATCH] lwip: disable the tcpip_core_locking_input option With this option enabled some lwip input processing occurs in the pp task which works well for some uses but some code uses a lot of stack (e.g. mdns) and will overflow the pp task stask, or might unnecessarily slow the critical pp task, so disable this by default and if not already defined. --- lwip/include/lwipopts.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lwip/include/lwipopts.h b/lwip/include/lwipopts.h index 567c856..fee5732 100644 --- a/lwip/include/lwipopts.h +++ b/lwip/include/lwipopts.h @@ -91,7 +91,9 @@ * ATTENTION: this does not work when tcpip_input() is called from * interrupt context! */ -#define LWIP_TCPIP_CORE_LOCKING_INPUT 1 +#ifndef LWIP_TCPIP_CORE_LOCKING_INPUT +#define LWIP_TCPIP_CORE_LOCKING_INPUT 0 +#endif /* ------------------------------------