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)
commit722a94519a683d8ba5a8e75dec9622cc906273c1
tree244f8757d299166d25372e0bc1c192cb56fc8934
parent57982edc2739b4473868e7579c0185270468bae1
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