* concurrency problems in a netfilter target extension?
@ 2008-07-31 14:17 Tobias Koeck
2008-07-31 14:39 ` Jan Engelhardt
0 siblings, 1 reply; 4+ messages in thread
From: Tobias Koeck @ 2008-07-31 14:17 UTC (permalink / raw)
To: netfilter-devel
I´m writing on a netfilter target extension.
Are there some possible concurrency problems (means is it possible that
my target extension modules is loaded several times or could it be used
with several cpu cores simultaniously)?
If yes what is the best solution for that (which locking functions)?
Greetings and thanks
Tobias
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: concurrency problems in a netfilter target extension?
2008-07-31 14:17 concurrency problems in a netfilter target extension? Tobias Koeck
@ 2008-07-31 14:39 ` Jan Engelhardt
2008-07-31 17:21 ` Tobias Koeck
0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2008-07-31 14:39 UTC (permalink / raw)
To: Tobias Koeck; +Cc: netfilter-devel
On Thursday 2008-07-31 10:17, Tobias Koeck wrote:
> I´m writing on a netfilter target extension.
>
> Are there some possible concurrency problems (means is it possible that my
> target extension modules is loaded several times or could it be used with
> several cpu cores simultaniously)?
Yes, see "Writing your own Netfilter modules" at
http://jengelh.medozas.de/ , chapter "tricks and traps"
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: concurrency problems in a netfilter target extension?
2008-07-31 14:39 ` Jan Engelhardt
@ 2008-07-31 17:21 ` Tobias Koeck
2008-07-31 17:33 ` Jan Engelhardt
0 siblings, 1 reply; 4+ messages in thread
From: Tobias Koeck @ 2008-07-31 17:21 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
I've read that. But does it solve the problem in a target extension
module? Will the modules only be cloned so that you have different
data structures? Or is only one instance in the memory and if one
processor changes something every other threads will use the changed
values?
On Thu, Jul 31, 2008 at 2:39 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
>
> On Thursday 2008-07-31 10:17, Tobias Koeck wrote:
>
>> I´m writing on a netfilter target extension.
>>
>> Are there some possible concurrency problems (means is it possible that my
>> target extension modules is loaded several times or could it be used with
>> several cpu cores simultaniously)?
>
> Yes, see "Writing your own Netfilter modules" at
> http://jengelh.medozas.de/ , chapter "tricks and traps"
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: concurrency problems in a netfilter target extension?
2008-07-31 17:21 ` Tobias Koeck
@ 2008-07-31 17:33 ` Jan Engelhardt
0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2008-07-31 17:33 UTC (permalink / raw)
To: Tobias Koeck; +Cc: netfilter-devel
On Thursday 2008-07-31 13:21, Tobias Koeck wrote:
>I've read that. But does it solve the problem in a target extension
>module? Will the modules only be cloned so that you have different
>data structures?
Which is why you allocate a separate structure, then let Netfilter clone
it (shallow only) for percpu, so that in the end, you have one shared
structure regardless of the cloning operation.
>Or is only one instance in the memory and if one
>processor changes something every other threads will use the changed
>values?
Using this shared structure is then easy.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-31 17:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-31 14:17 concurrency problems in a netfilter target extension? Tobias Koeck
2008-07-31 14:39 ` Jan Engelhardt
2008-07-31 17:21 ` Tobias Koeck
2008-07-31 17:33 ` Jan Engelhardt
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.