LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NAPI netif_rx (https://www.linuxquestions.org/questions/linux-networking-3/napi-netif_rx-720345/)

doctor.sniff 04-20-2009 02:42 AM

NAPI netif_rx
 
Hi;
I searched about linux networking kernel, and studied an ebook about this topic.
Now, i want to add multiple cpu support to NAPI (netif_rx()).

in other hand, i wana use linux as router, and want to route any network packet to multi (4) cpu, same as this:

packet0 ----> netif_rx ----> cpu0
packet1 ----> netif_rx ----> cpu1
packet2 ----> netif_rx ----> cpu2
packet3 ----> netif_rx ----> cpu3
---------------------------------
packet4 ----> netif_rx ----> cpu0
packet5 ----> netif_rx ----> cpu1
...

Please help me to edit any file.
thanks.

doctor.sniff 04-21-2009 12:27 AM

I found netif_rx() and X_intrrupt() functions in net/core/dev.c file,
and now my question is,

How write these functions to be multi cpu support in napi?


All times are GMT -5. The time now is 03:20 PM.