projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dc3502
)
net: devlink: convert devlink_port_attrs bools to bits
author
Jiri Pirko
<
[email protected]
>
Wed, 3 Apr 2019 12:24:15 +0000
(14:24 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 5 Apr 2019 00:42:36 +0000
(17:42 -0700)
In order to save space in the struct, convert bools to bits.
Signed-off-by: Jiri Pirko <
[email protected]
>
Reviewed-by: Florian Fainelli <
[email protected]
>
Reviewed-by: Jakub Kicinski <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/net/devlink.h
patch
|
blob
|
history
diff --git
a/include/net/devlink.h
b/include/net/devlink.h
index 31d5cec4d06bd9f0910d43957c5d7d12f6a8c6d8..4a1e3452a4ce41f6d2be608a84915a7d7cb63b1a 100644
(file)
--- 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;
};