tools: ynl: use MSG_DONTWAIT for getting notifications
authorJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 22:30:32 +0000 (14:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Feb 2024 23:25:45 +0000 (15:25 -0800)
commit7c4a38bf1eba9398d03e706823ec3b08b0a960de
tree70bd81ccd65ac98aa0a2c80baaa033d4bab11416
parent73395b43819b00365f0971e0e0e023d9fb341346
tools: ynl: use MSG_DONTWAIT for getting notifications

To stick to libmnl wrappers in the past we had to use poll()
to check if there are any outstanding notifications on the socket.
This is no longer necessary, we can use MSG_DONTWAIT.

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