All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giacomo <jacum@libero.it>
To: netfilter-devel@lists.netfilter.org
Subject: execution context in netfilter hooks.
Date: Sun, 11 Dec 2005 21:39:16 +0100	[thread overview]
Message-ID: <439C8E74.9070206@libero.it> (raw)

Good morning, i would like to know exactly the context of execution
of code registered with netfilter hooks.
 As far as  I understood, the context is that of a softirq, inside a
bottom half. Correct me if i'm wrong..

But is it concerned with tasklets?

Is execution serialized? In other words, if packet A fr instance is
received from the net, and then packet
B immediately, is packet A processed entirely before packet B? Or code
can be executed in parallel
for packet A and B?

Moreover: interrupts are enabled in such context, aren't they? And that
means that also a
software timer can interrupt a routine being executed in bottom half.

But software timers run with sw interrupts disabled, so a timeout
handler for instance cannot
be interrupted by a routine managing reception of a packet arrived on
the wire.

It is not clear to me the concurrency to which structures are subject,
also in an uniprocessor system:
in_irq(), in_softirq(), in_interrupt() functions return different values
also if positioned at the same place in the code... is there a mean
(function) to know if sofware/hw interrupts are enabled in a portion of
code?

Thanks a lot for any suggestion or any indication to understand how
things are really.

Giacomo.

             reply	other threads:[~2005-12-11 20:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-11 20:39 Giacomo [this message]
2005-12-12 20:43 ` execution context in netfilter hooks Harald Welte
2005-12-13  8:04   ` Giacomo
2005-12-13 10:30     ` Pablo Neira Ayuso
  -- strict thread matches above, loose matches on Subject: below --
2005-12-13  8:06 Giacomo

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=439C8E74.9070206@libero.it \
    --to=jacum@libero.it \
    --cc=netfilter-devel@lists.netfilter.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.