]> granicus.if.org Git - ipset/commitdiff
netfilter: ipset: No need to make nomatch bitfield
authorSergey Popovich <popovich_sergei@mail.ua>
Sat, 15 Nov 2014 09:17:38 +0000 (11:17 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 19 Mar 2015 12:48:17 +0000 (13:48 +0100)
We do not store cidr packed with no match, so there is no
need to make nomatch bitfield.

This simplifies mtype_data_reset_flags() a bit.

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

index 2837ff9b549a55a95c1b98c1be18077dd7d991af..aa9569082756dd25058941c074112f52528e8ae3 100644 (file)
@@ -54,7 +54,7 @@ struct hash_netportnet4_elem {
                u16 ccmp;
        };
        u16 padding;
-       u8 nomatch:1;
+       u8 nomatch;
        u8 proto;
 };
 
@@ -330,7 +330,7 @@ struct hash_netportnet6_elem {
                u16 ccmp;
        };
        u16 padding;
-       u8 nomatch:1;
+       u8 nomatch;
        u8 proto;
 };