OSDN Git Service

rtnetlink: Honour NLM_F_ECHO flag in rtnl_newlink_create
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 28 Oct 2022 08:42:23 +0000 (04:42 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Nov 2022 01:10:21 +0000 (18:10 -0700)
commitd88e136cab37d6a5aa3691a2f636d37bd6520cc2
treeef4453ac67c6d0bb46c633fc276e8580102544d8
parent77f4aa9a2a1766a0b9343fd812b71f18d05178da
rtnetlink: Honour NLM_F_ECHO flag in rtnl_newlink_create

This patch pass the netlink header message in rtnl_newlink_create() to
the new updated rtnl_configure_link(), so that the kernel could reply
unicast when userspace set NLM_F_ECHO flag to request the new created
interface info.

Suggested-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/rtnetlink.c