Message ID | 20190301160542.6474-2-jiri@resnulli.us |
---|---|
State | RFC |
Delegated to: | David Miller |
Headers | show |
Series | net: expose switch ID via devlink | expand |
On 3/1/2019 8:05 AM, Jiri Pirko wrote: > From: Jiri Pirko <jiri@mellanox.com> > > 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>
diff --git a/include/net/devlink.h b/include/net/devlink.h index 227c453cc20e..084a8762f3e9 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -40,10 +40,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; };