Re: concurrency problems in a netfilter target extension?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux