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

View File

@ -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):