All of lore.kernel.org
 help / color / mirror / Atom feed
From: michi1@michaelblizek.twilightparadox.com (michi1 at michaelblizek.twilightparadox.com)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Related to Network packet in kernel
Date: Thu, 4 Apr 2013 18:23:48 +0200	[thread overview]
Message-ID: <20130404162347.GA2256@grml> (raw)
In-Reply-To: <CAALD5iypza1Eiwhi3oaUeOb=LQ1_b-r9Vwudmy2GcTn7=O2sEQ@mail.gmail.com>

Hi!

On 17:29 Thu 04 Apr     , Tarun Batra wrote:
> Hi All,
> 
> 
> I was reading "Understanding linux networking Internal" book and the pdf
> "Network packet capture in Linux kernelspace" on the link
> https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDQQFjAA&url=http%3A%2F%2Fberaldoleal.com%2Ftalks%2Fnetworkkernel.pdf&ei=-GldUdeUMNHhrAe8tYDoDg&usg=AFQjCNFe8_oYRoolrVi1o9d8sOT2EV5Dbg&sig2=7D4GBkYZDKWiVTZiNBgzag&bvm=bv.44770516,d.bmk&cad=rja
> 
> 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

netif_rx()
enqueue_to_backlog()
____napi_schedule()
__raise_softirq_irqoff(NET_RX_SOFTIRQ)


When s cheduler runs, net_rx_action gets called. The function is registered in
net_dev_init: "open_softirq(NET_RX_SOFTIRQ, net_rx_action);".

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com

      reply	other threads:[~2013-04-04 16:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 11:59 Related to Network packet in kernel Tarun Batra
2013-04-04 16:23 ` michi1 at michaelblizek.twilightparadox.com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130404162347.GA2256@grml \
    --to=michi1@michaelblizek.twilightparadox.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.