Commit 76abff37 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarJakub Kicinski <kuba@kernel.org>
parent 6f96ec73
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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):