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>
This commit is contained in:
Jakub Kicinski 2023-06-08 14:12:00 -07:00
parent 6f96ec73cb
commit 76abff37f0
1 changed files with 6 additions and 0 deletions

View File

@ -227,12 +227,18 @@ class TypePad(Type):
def _attr_typol(self): def _attr_typol(self):
return '.type = YNL_PT_IGNORE, ' return '.type = YNL_PT_IGNORE, '
def attr_put(self, ri, var):
pass
def attr_get(self, ri, var, first): def attr_get(self, ri, var, first):
pass pass
def attr_policy(self, cw): def attr_policy(self, cw):
pass pass
def setter(self, ri, space, direction, deref=False, ref=None):
pass
class TypeScalar(Type): class TypeScalar(Type):
def __init__(self, family, attr_set, attr, value): def __init__(self, family, attr_set, attr, value):