]> 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)
commitd112484f2a6bef09fe4381ad6177fd5c36c1617c
treeca4b75d5f541532a15d65367160d7f7ca9950d33
parent296857f75800347ed6c14b91e1dce4a863b6ec37
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