esp-idf/components/esp_netif/lwip
David Cermak 65917bb8c3 fix(esp_netif): Lock netif list with TCPIP context
This commit removes the lock from the list manipulation code in esp_netif_objects.c,
 because we already have another lock/task context for lwip.
So the list manipulation is unsafe and safety must be assured by the stack layer
(in esp_netif_lwip).
Problems with current locking:
* implementation of locking was wrong -- lazy init style of creating the mutex is not
  thread safe (and destroying it if we have no interface makes the problem exhibit very frequently)
* locking only the list won't solve issues when assessing interfaces atomically
* maintaining multiple locks is problematic, as we often switch between
lwip context and user context in internal implementation of esp_netif_lwip

Closes https://github.com/espressif/esp-idf/issues/12261
2023-11-22 09:59:37 +00:00
..
netif esp_netif: Make esp_netif_receive() return value configurable 2023-07-07 13:56:13 +02:00
esp_netif_br_glue.c esp_netif: added support for LwIP bridge 2022-06-14 15:29:44 +02:00
esp_netif_lwip_defaults.c esp_wifi: Add support for NAN Discovery and Datapath 2023-03-10 11:18:23 +05:30
esp_netif_lwip_internal.h fix(esp_netif): Lock netif list with TCPIP context 2023-11-22 09:59:37 +00:00
esp_netif_lwip_ppp.c fix(esp_netif): Lock netif list with TCPIP context 2023-11-22 09:59:37 +00:00
esp_netif_lwip_ppp.h fix(esp_netif): Lock netif list with TCPIP context 2023-11-22 09:59:37 +00:00
esp_netif_lwip.c fix(esp_netif): Lock netif list with TCPIP context 2023-11-22 09:59:37 +00:00
esp_netif_sntp.c esp_netif/lwip: Fix core-locking config 2023-01-17 16:15:58 +01:00