tools: ynl: stop using mnl_cb_run2()
authorJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 22:30:27 +0000 (14:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Feb 2024 23:25:44 +0000 (15:25 -0800)
commit766c4b5460f4edf3fd51ef8696f89fa207bf95f8
tree2173bfa3e1192552ad9904d113e92c006942d63b
parent1621378aab19e6197fe95dc76d1825ef91d40e49
tools: ynl: stop using mnl_cb_run2()

There's only one set of callbacks in YNL, for netlink control
messages, and most of them are trivial. So implement the message
walking directly without depending on mnl_cb_run2().

Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240227223032.1835527-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.c
tools/net/ynl/lib/ynl.h