]> granicus.if.org Git - ipset/commit
Make NLEN compile time constant for hash types
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 26 Jun 2015 09:05:54 +0000 (11:05 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 26 Jun 2015 09:05:54 +0000 (11:05 +0200)
commita628660f6a9a4d07e5193e562fe846e94713b2c7
tree66274777d41944037f5a71dc07fc2d144255b6d8
parent90ca753057549e8c251830b10752c16c76e1bd55
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>.
kernel/net/netfilter/ipset/ip_set_hash_gen.h