]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools/net/ynl: Fix extack decoding for directional ops
authorDonald Hunter <donald.hunter@gmail.com>
Thu, 18 Apr 2024 10:47:35 +0000 (11:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Apr 2024 00:20:42 +0000 (17:20 -0700)
commit0a966d606c681b891fc7ef2e3ace67ac507a221d
tree572996c12895f98a8ebbc219131b7d62067183be
parent1ee73168713758515b5a0d6346f58556c9aa72ae
tools/net/ynl: Fix extack decoding for directional ops

NetlinkProtocol.decode() was looking up ops by response value which breaks
when it is used for extack decoding of directional ops. Instead, pass
the op to decode().

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240418104737.77914-3-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py