diff options
| author | Jakub Kicinski <[email protected]> | 2025-05-05 16:52:07 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-08 01:21:26 +0000 |
| commit | d307b9feb833f3f413db36dcec01dcad749a763f (patch) | |
| tree | f5f5f8ec4c5e2cf656fc1069c1f9e7897ea52ac6 /tools/testing/selftests/drivers/net/hw/lib/py/linkconfig.py | |
| parent | tools: ynl-gen: split presence metadata (diff) | |
| download | kernel-d307b9feb833f3f413db36dcec01dcad749a763f.tar.gz kernel-d307b9feb833f3f413db36dcec01dcad749a763f.zip | |
tools: ynl-gen: move the count into a presence struct too
While we reshuffle the presence members, move the counts as well.
Previously array count members would have been place directly in
the struct, so:
struct family_op_req {
struct {
u32 a:1;
u32 b:1;
} _present;
struct {
u32 bin;
} _len;
u32 a;
u64 b;
const unsigned char *bin;
u32 n_multi; << count
u32 *multi; << objects
};
Since len has been moved to its own presence struct move the count
as well:
struct family_op_req {
struct {
u32 a:1;
u32 b:1;
} _present;
struct {
u32 bin;
} _len;
struct {
u32 multi; << count
} _count;
u32 a;
u64 b;
const unsigned char *bin;
u32 *multi; << objects
};
This improves the consistency and allows us to remove some hacks
in the codegen. Unlike for len there is no known name collision
with the existing scheme.
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/lib/py/linkconfig.py')
0 files changed, 0 insertions, 0 deletions
