tools: ynl: use ynl_sock_read_msgs() for ACK handling
authorJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 22:30:26 +0000 (14:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Feb 2024 23:25:43 +0000 (15:25 -0800)
commit1621378aab19e6197fe95dc76d1825ef91d40e49
treea7fd5f41bb7b1aae0743bb68533321f853c3906e
parent2f22f0b313f4c11e524c68e34165e62d8276e442
tools: ynl: use ynl_sock_read_msgs() for ACK handling

ynl_recv_ack() is simple and it's the only user of mnl_cb_run().
Now that ynl_sock_read_msgs() exists it's actually less code
to use ynl_sock_read_msgs() instead of being special.

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