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
devlink.c
ethtool.c
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
page-pool.c ynl: samples: fix recycling rate calculation 2024-03-11 10:22:06 +00:00