Results 1 to 1 of 1
Hi All, I was reading "Understanding linux networking Internal" book and the pdf "Network packet capture in Linux kernel space" In the "Understanding linux networking Internal" under topic 9.2.2 it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-04-2013 #1
- Join Date
- Apr 2013
Related to Network packet in kernel
I was reading "Understanding linux networking Internal" book and the pdf "Network packet capture in Linux kernel space"
In the "Understanding linux networking Internal" under topic 9.2.2 it is given that
The code that takes care of an input frame is split into two parts: first the driver copies the frame into an input queue accessible by the kernel, and then the kernel processes it (usually passing it to a handler dedicated to the associated protocol such as IP). The first part is executed in interrupt context and can preempt the execution of the second part.
Now the query is when the 2nd part is scheduled and
in "Network packet capture in Linux kernel space" the packet input flow is described as:-
When working in interrupt driven model, the nic registers an
This interrupt handler will be called when a frame is received;
Typically in the handler, we allocate sk buff by calling
dev alloc skb();
Copies data from nics buffer to this struct just created;
nic call generic reception routine netif rx();
netif rx() put frame in per cpu queue;
if queue is full, drop!
net rx action() decision based on skb->protocol;
This function basically dequeues the frame and delivery a copy
for every protocol handler;
ptype all and ptype base queues
I want to know when netif_rx(); and net rx action() are called?
Who call them i mean who schedule them.
You can mail me too on cloverobertatgmaildotcom