]> git.itanic.dy.fi Git - linux-stable/commit
rtnetlink: Honour NLM_F_ECHO flag in rtnl_delete_link
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 28 Oct 2022 08:42:24 +0000 (04:42 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Nov 2022 01:10:21 +0000 (18:10 -0700)
commitf3a63cce1b4fbde7738395c5a2dea83f05de3407
tree62f71cd0a3b2a40a6592a5702d9f77610d63eeb9
parentd88e136cab37d6a5aa3691a2f636d37bd6520cc2
rtnetlink: Honour NLM_F_ECHO flag in rtnl_delete_link

This patch use the new helper unregister_netdevice_many_notify() for
rtnl_delete_link(), so that the kernel could reply unicast when userspace
 set NLM_F_ECHO flag to request the new created interface info.

At the same time, the parameters of rtnl_delete_link() need to be updated
since we need nlmsghdr and portid 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>
include/net/rtnetlink.h
net/core/rtnetlink.c
net/openvswitch/vport-geneve.c
net/openvswitch/vport-gre.c
net/openvswitch/vport-netdev.c
net/openvswitch/vport-vxlan.c