bridge: convert flags in fbd entry into bitfields
authorJiri Pirko <jiri@resnulli.us>
Fri, 28 Nov 2014 13:34:14 +0000 (14:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Dec 2014 04:01:17 +0000 (20:01 -0800)
Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_private.h

index 8f3f081402586a3dddee01adc838b77f514db904..5b370773ad9c0a9a04673aeaaf1745da4a8429f4 100644 (file)
@@ -98,9 +98,9 @@ struct net_bridge_fdb_entry
        unsigned long                   updated;
        unsigned long                   used;
        mac_addr                        addr;
-       unsigned char                   is_local;
-       unsigned char                   is_static;
-       unsigned char                   added_by_user;
+       unsigned char                   is_local:1,
+                                       is_static:1,
+                                       added_by_user:1;
        __u16                           vlan_id;
 };