LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   LINUX packet receiving process (https://www.linuxquestions.org/questions/linux-networking-3/linux-packet-receiving-process-849130/)

vahu002 12-08-2010 03:30 PM

LINUX packet receiving process
 
Hi All,

Using ethtool, we can set the rx-usecs parameter, which is defined as "Maximum number of microseconds to delay an RX interrupt after receiving a packet". My understanding of a NAPI enabled driver is as follows:

A NAPI enabled device driver disables further interrupts from the NIC after the reception of the first packet and goes into poll mode. The poll method checks if all the packets have been processed, and if so it enables interrupts.

If this is correct, can someone please help me understand where the parameter rx-usecs comes into play.

Another confusion that I have is regarding the freeing of rx descriptors. I have read that to avoid packet multiple packet copies the sk_buf for a packet remains the same till it is copied to user space. So does that mean that the rx descriptor is freed only after the protocol processing is completed?

Thank you


All times are GMT -5. The time now is 10:31 PM.