linux/tools/net/ynl/samples
Jakub Kicinski d6d647d7ba tools: ynl: add ynl_dump_empty() helper
Checking if dump is empty requires a couple of casts.
Add a convenient wrapper.

Add an example use in the netdev sample, loopback is always
present so an empty dump is an error.

Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240329181651.319326-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-02 18:01:58 -07:00
..
.gitignore tools: ynl: generate code for ovs families 2024-02-02 21:16:38 -08:00
devlink.c
ethtool.c tools: ynl: add sample for ethtool 2023-06-12 11:01:03 +01:00
Makefile tools: ynl: add distclean to .PHONY in all makefiles 2024-03-06 12:05:10 +00:00
netdev.c tools: ynl: add ynl_dump_empty() helper 2024-04-02 18:01:58 -07:00
ovs.c tools: ynl: generate code for ovs families 2024-02-02 21:16:38 -08:00
page-pool.c ynl: samples: fix recycling rate calculation 2024-03-11 10:22:06 +00:00