linux-stable/tools/net/ynl
Jakub Kicinski 997c7abd55 tools: ynl: don't ignore errors in NLMSG_DONE messages
[ Upstream commit a44f2eb106 ]

NLMSG_DONE contains an error code, it has to be extracted.
Prior to this change all dumps will end in success,
and in case of failure the result is silently truncated.

Fixes: e4b48ed460 ("tools: ynl: add a completely generic client")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240420020827.3288615-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-02 16:35:17 +02:00
..
generated tools: ynl: remove generated user space code from git 2023-12-05 10:24:39 -08:00
lib tools: ynl: don't ignore errors in NLMSG_DONE messages 2024-05-02 16:35:17 +02:00
samples bpf-next-for-netdev 2023-11-30 16:58:42 -08:00
Makefile tools: ynl: order building samples after generated code 2023-11-29 16:07:00 -08:00
Makefile.deps tools: ynl: fix header path for nfsd 2023-11-23 08:52:12 -08:00
cli.py tools: ynl: introduce option to process unknown attributes or types 2023-10-27 14:54:31 -07:00
ethtool.py tools: ynl: Rename ethtool to ethtool.py 2023-04-13 22:18:29 -07:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-gen-c.py tools: ynl: fix setting presence bits in simple nests 2024-04-10 16:37:54 +02:00
ynl-gen-rst.py tools/net/ynl-gen-rst: Remove extra indentation from generated docs 2023-12-18 14:39:44 -08:00
ynl-regen.sh tools: ynl: don't skip regeneration from make targets 2023-11-29 16:07:00 -08:00