]> git.karo-electronics.de Git - linux-beck.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)
commitcee8b97b6c13b1331aa3a89a1aab2ca6a7bd06d0
treeca4b75d5f541532a15d65367160d7f7ca9950d33
parent509debc97587629dd5a6dca337afa57cb874b418
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