Re: [PATCH v2] netfilter: ipset: refactor hash types to use address/cidr arrays.

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

 



Hi Oliver,

On Fri, 6 Sep 2013, Oliver wrote:

> Alright, I took a look at the changes - I'll wait for the extension 
> cleanup then send out a rebased version of hash:net,net since that's 
> presumably going to be the difference between having to declare struct 
> combinations for the various extensions versus not having to do it. I'm 
> very intrigued to see what you can come up with that's shorter than my 
> rework :P

There's a technical problem with your refactoring patchset (it doesn't 
prevent unaligned access to extension members), and a design issue: the 
data about the extensions (offsets) should belong to the core. There's 
still code duplication between the bitmap and hash types in it when even 
the list type is missing. The solution means an overall rearrangig and 
that's what I'm working on.
 
> On a related note - I was thinking about the impact of recursively 
> walking the CIDRs and it did occur to me that this operation is very 
> parallelisable - however, I found that when I ran ipset -T on the set, 
> the in-kernel code is running in an interrupt context (somehow, I 
> couldn't see what made it like that), which means it's not possible to 
> spin up kthreads (unless there's something that I don't know about) - 
> when testing of an ipset is called via xt_set, is that also running in 
> an interrupt context? if not, it could be parallelised quite nicely, 
> which I anticipate would give some gains on multicore systems, and 
> especially for IPv6, one would think.

How could the walking of the CIDRs be parallellized, when the lookup must 
follow the priority of the networks? (With the exception of checking 
multiple same sized networks.)

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary
--
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