]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Separate memsize calculation code into dedicated function
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 10 Oct 2016 19:44:32 +0000 (21:44 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 Nov 2016 12:28:44 +0000 (13:28 +0100)
commitde83d9bd4d4db50e20085bb64f688ba768da74b4
tree244f8757d299166d25372e0bc1c192cb56fc8934
parent5ff5c1d75c809a3f8b3dafd1cf2e01697e871e22
netfilter: ipset: Separate memsize calculation code into dedicated function

Hash types already has it's memsize calculation code in separate
functions. Clean up and do the same for *bitmap* and *list* sets.

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

Suggested-by: Sergey Popovich <popovich_sergei@mail.ua>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_bitmap_gen.h
net/netfilter/ipset/ip_set_list_set.c