Subject: Re: [PATCHv2 net-next] tools: ynl-gen: support using pre-defined values in attr checks

From: Jakub Kicinski <[email-masked]>
Date: Fri, 8 Mar 2024 11:38:18 -0800

On Thu,  7 Mar 2024 17:23:57 +0800 Hangbin Liu wrote:
> +        for const in self.family['definitions']:

Looks like this breaks the build, the 'definitions' attribute 
is optional. Try iterating over self.family.consts instead.
It should be initialized by nlspec.py to either the definitions
or an empty list, always.
-- 
pw-bot: cr