]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tipc: call a sub-routine in separate socket
authorHoang Le <hoang.h.le@dektech.com.au>
Thu, 6 May 2021 03:27:24 +0000 (10:27 +0700)
committerDavid Ahern <dsahern@kernel.org>
Sun, 9 May 2021 22:08:47 +0000 (22:08 +0000)
commit459f280813e9328f280f85c1880882dc3c600307
treebbf45816a173e4aac54401af449a2da63e1175ad
parent0d95472a4bd30c217361c9b9fb1c3c2677a29144
tipc: call a sub-routine in separate socket

When receiving a result from first query to netlink, we may exec
a another query inside the callback. If calling this sub-routine
in the same socket, it will be discarded the result from previous
exection.
To avoid this we perform a nested query in separate socket.

Fixes: 202102830663 ("tipc: use the libmnl functions in lib/mnl_utils.c")
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
tipc/bearer.c
tipc/link.c
tipc/socket.c