diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-04-03 08:24:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-04 20:42:36 -0400 |
commit | 407dd706fb5245c138f3a972f8aaa1c8a09a574c (patch) | |
tree | 022729ea0fb05c616def8850e7b8e61a6c2e770c | |
parent | 8dc350202d32dbd9482b97dbf8ca22fbcb2a7918 (diff) |
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>
-rw-r--r-- | include/net/devlink.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
41 | }; | 41 | }; |
42 | 42 | ||
43 | struct devlink_port_attrs { | 43 | struct devlink_port_attrs { |
44 | bool set; | 44 | u8 set:1, |
45 | split:1; | ||
45 | enum devlink_port_flavour flavour; | 46 | enum devlink_port_flavour flavour; |
46 | u32 port_number; /* same value as "split group" */ | 47 | u32 port_number; /* same value as "split group" */ |
47 | bool split; | ||
48 | u32 split_subport_number; | 48 | u32 split_subport_number; |
49 | }; | 49 | }; |
50 | 50 | ||