Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'tools-ynl-gen-fix-glitches-found-by-chuck'

Jakub Kicinski says:

====================
tools: ynl-gen: fix glitches found by Chuck

A handful of fixes Chuck run into while trying to define the family
for crypto handshakes.
====================

Link: https://lore.kernel.org/r/20230223183141.1422857-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+3 -4
+1
tools/net/ynl/lib/.gitignore
··· 1 + __pycache__/
+1 -3
tools/net/ynl/lib/nlspec.py
··· 3 3 import collections 4 4 import importlib 5 5 import os 6 - import traceback 7 6 import yaml 8 7 9 8 ··· 233 234 resolved.append(elem) 234 235 235 236 if len(resolved) == 0: 236 - traceback.print_exception(last_exception) 237 - raise Exception("Could not resolve any spec element, infinite loop?") 237 + raise last_exception 238 238 239 239 def new_attr_set(self, elem): 240 240 return SpecAttrSet(self, elem)
+1 -1
tools/net/ynl/ynl-gen-c.py
··· 546 546 max_val = 0 547 547 self.attr_max_val = None 548 548 for name, attr in self.attr_list: 549 - if attr.value > max_val: 549 + if attr.value >= max_val: 550 550 max_val = attr.value 551 551 self.attr_max_val = attr 552 552 self.attrs[name] = attr