diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-06-08 23:12:00 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-09 23:40:31 +0200 |
commit | 76abff37f0d70066503747a76deb40b752fb23be (patch) | |
tree | a381b59aecdc84398966baeca07e9c8a2dee7f57 /tools/net/ynl | |
parent | tools: ynl-gen: don't pass op_name to RenderInfo (diff) | |
download | linux-76abff37f0d70066503747a76deb40b752fb23be.tar.xz linux-76abff37f0d70066503747a76deb40b752fb23be.zip |
tools: ynl-gen: support / skip pads on the way to kernel
Kernel does not have padding requirements for 64b attrs.
We can ignore pad attrs.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl')
-rwxr-xr-x | tools/net/ynl/ynl-gen-c.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/net/ynl/ynl-gen-c.py b/tools/net/ynl/ynl-gen-c.py index be860dee7239..7b051c00cfc3 100755 --- a/tools/net/ynl/ynl-gen-c.py +++ b/tools/net/ynl/ynl-gen-c.py @@ -227,12 +227,18 @@ class TypePad(Type): def _attr_typol(self): return '.type = YNL_PT_IGNORE, ' + def attr_put(self, ri, var): + pass + def attr_get(self, ri, var, first): pass def attr_policy(self, cw): pass + def setter(self, ri, space, direction, deref=False, ref=None): + pass + class TypeScalar(Type): def __init__(self, family, attr_set, attr, value): |