net: devlink: convert devlink_port_attrs bools to bits
authorJiri Pirko <jiri@mellanox.com>
Wed, 3 Apr 2019 12:24:15 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:42:36 +0000 (17:42 -0700)
In order to save space in the struct, convert bools to bits.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h

index 31d5cec4d06bd9f0910d43957c5d7d12f6a8c6d8..4a1e3452a4ce41f6d2be608a84915a7d7cb63b1a 100644 (file)
@@ -41,10 +41,10 @@ struct devlink {
 };
 
 struct devlink_port_attrs {
-       bool set;
+       u8 set:1,
+          split:1;
        enum devlink_port_flavour flavour;
        u32 port_number; /* same value as "split group" */
-       bool split;
        u32 split_subport_number;
 };