Files
esp-idf/components
Axel Lin 5209af379a esp-netif: Improve esp_netif_is_netif_listed and esp_netif_get_handle_from_ifkey
Each esp_netif_next_unsafe() call needs to iterate the s_head list.
It is inefficient with a do-while loop + esp_netif_next_unsafe() call.
Use SLIST_FOREACH instead to simplify the code and speed-up the matching.

While at it, also fix returning NULL from esp_netif_is_netif_listed().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
2021-05-20 13:51:22 +08:00
..
2021-04-22 21:07:35 +08:00
2021-03-31 19:17:33 +08:00
2021-05-12 17:53:32 +08:00
2021-02-26 19:45:48 +08:00