net: add new helper unregister_netdevice_many_notify
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 28 Oct 2022 08:42:22 +0000 (04:42 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Nov 2022 01:10:21 +0000 (18:10 -0700)
commit77f4aa9a2a1766a0b9343fd812b71f18d05178da
tree2c0cb0767cc434e2991d1dd9481132dcd7349e7b
parent1d997f1013079c05b642c739901e3584a3ae558d
net: add new helper unregister_netdevice_many_notify

Add new helper unregister_netdevice_many_notify(), pass netlink message
header and portid, which could be used to notify userspace when flag
NLM_F_ECHO is set.

Make the unregister_netdevice_many() as a wrapper of new function
unregister_netdevice_many_notify().

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/dev.c
net/core/dev.h