]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Make NLEN compile time constant for hash types
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 Nov 2016 11:24:10 +0000 (12:24 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 Nov 2016 12:28:46 +0000 (13:28 +0100)
commit295e052d89da9a67dfaa977f447b0fe33ac74890
treeca4b75d5f541532a15d65367160d7f7ca9950d33
parent1a74729a10364f64fcc5429c21a7b57db832681b
netfilter: ipset: Make NLEN compile time constant for hash types

Hash types define HOST_MASK before inclusion of ip_set_hash_gen.h
and the only place where NLEN needed to be calculated at runtime
is *_create() method.

Ported from a patch proposed by Sergey Popovich <popovich_sergei@mail.ua>.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_hash_gen.h