From: Jiri Pirko Date: Wed, 3 Apr 2019 12:24:15 +0000 (+0200) Subject: net: devlink: convert devlink_port_attrs bools to bits X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=407dd706fb5245c138f3a972f8aaa1c8a09a574c;p=openwrt%2Fstaging%2Fblogic.git net: devlink: convert devlink_port_attrs bools to bits In order to save space in the struct, convert bools to bits. Signed-off-by: Jiri Pirko Reviewed-by: Florian Fainelli Reviewed-by: Jakub Kicinski Signed-off-by: David S. Miller --- diff --git a/include/net/devlink.h b/include/net/devlink.h index 31d5cec4d06b..4a1e3452a4ce 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -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; };