Re: [PATCH v2 2/2] tools: ynl: add unicast notification receive support

From: Donald Hunter

Date: Tue May 19 2026 - 05:57:29 EST


Minxi Hou <houminxi@xxxxxxxxx> writes:

> Add ntf_listen() method to YnlFamily for binding the netlink
> socket without joining a multicast group. This enables receiving
> unicast notifications through the existing poll_ntf/check_ntf
> path.
>
> The OVS packet family sends MISS and ACTION upcalls via
> genlmsg_unicast() to a per-vport PID rather than through a
> multicast group. The existing ntf_subscribe() couples bind()
> with setsockopt(ADD_MEMBERSHIP), which does not fit the unicast
> case. ntf_listen() provides the bind-only alternative.
>
> Signed-off-by: Minxi Hou <houminxi@xxxxxxxxx>

Reviewed-by: Donald Hunter <donald.hunter@xxxxxxxxx>