Skip to content

Commit

Permalink
tools: ynl-gen: support / skip pads on the way to kernel
Browse files Browse the repository at this point in the history
Kernel does not have padding requirements for 64b attrs.
We can ignore pad attrs.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Jun 9, 2023
1 parent 6f96ec7 commit 76abff3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/net/ynl/ynl-gen-c.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,18 @@ def arg_member(self, ri):
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):
Expand Down

0 comments on commit 76abff3

Please sign in to comment.