]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools: ynl: store ops in ordered dict to avoid random ordering
authorJakub Kicinski <kuba@kernel.org>
Thu, 26 Jan 2023 00:02:35 +0000 (16:02 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Jan 2023 00:32:41 +0000 (16:32 -0800)
commit3a43ded081f862aa2f66a8f4f6630a45a9081e58
tree3e552d58609db416aa1114fac162540e25266a83
parentb49c34e217c629a9d282e84889dbe0128917b8c1
tools: ynl: store ops in ordered dict to avoid random ordering

When rendering code we should walk the ops in the order in which
they are declared in the spec. This is both more intuitive and
prevents code from jumping around when hashing in the dict changes.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py