Page 1 of 1

What ISR is called upon packet receive over WiFi?

Posted: Tue May 05, 2020 2:01 pm
by ille111
Hey everyone,

I was wandering if it is possible to see the code that is executed when a network packet is received by a NIC. I want to reconstruct the "way" a packet takes through the kernel until its payload is used by a user task. In the reference manuals I was only able to find programming models and events that are used for status updates of the wifi module.

Best Regards!

Re: What ISR is called upon packet receive over WiFi?

Posted: Tue May 05, 2020 9:32 pm
by ESP_igrr
Hi ille111,

The packet handling is done inside the Wi-Fi driver, and the Wi-Fi interrupt handler is also part of it. Conceptually the flow is very similar to that in the other peripherals: an interrupt handler sends an element to a FreeRTOS queue, which wakes up a high-priority Wi-Fi task. That task does some processing and passes the packet to the network interface layer (esp_netif in IDF 4.1+, tcpip_adapter before that).