mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
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 <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>
This commit is contained in:
parent
8dc350202d
commit
407dd706fb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue