Commit 407dd706 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

net: devlink: convert devlink_port_attrs bools to bits

In order to save space in the struct, convert bools to bits.
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8dc35020
......@@ -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;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment