diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-06-09 00:11:58 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-10 00:40:31 +0300 |
commit | 6da3424fd629570b5e3b5e9484ffc752a325f9f5 (patch) | |
tree | 1432ad775af1290770392683248884108882649f /tools/net/ynl/lib | |
parent | ced1568862bdb985eb4e5ca854cc7734a4ad3543 (diff) | |
download | linux-6da3424fd629570b5e3b5e9484ffc752a325f9f5.tar.xz |
tools: ynl-gen: support code gen for events
Netlink specs support both events and notifications (former can
define their own message contents). Plug in missing code to
generate types, parsers and include events into notification
tables.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl/lib')
-rw-r--r-- | tools/net/ynl/lib/nlspec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/ynl/lib/nlspec.py b/tools/net/ynl/lib/nlspec.py index 623c5702bd10..c5d4a6d476a0 100644 --- a/tools/net/ynl/lib/nlspec.py +++ b/tools/net/ynl/lib/nlspec.py @@ -423,7 +423,7 @@ class SpecFamily(SpecElement): self.fixed_header = self.yaml['operations'].get('fixed-header') req_val = rsp_val = 1 for elem in self.yaml['operations']['list']: - if 'notify' in elem: + if 'notify' in elem or 'event' in elem: if 'value' in elem: rsp_val = elem['value'] req_val_next = req_val |