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:
parent
6f96ec73cb
commit
76abff37f0
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue