]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove the new_ifindex argument from dev_change_net_namespace
authorAndrei Vagin <avagin@gmail.com>
Wed, 7 Apr 2021 06:40:51 +0000 (23:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:43:28 +0000 (14:43 -0700)
commite7a2c87823971619022fb50d17e901dcc9140543
tree96b3d6b64f4c2a025ca938636d419b62df120330
parent773f9c0f7a45155ee17f3c92cdf85c0355c98b43
net: remove the new_ifindex argument from dev_change_net_namespace

Here is only one place where we want to specify new_ifindex. In all
other cases, callers pass 0 as new_ifindex. It looks reasonable to add a
low-level function with new_ifindex and to convert
dev_change_net_namespace to a static inline wrapper.

Fixes: 260bbc20c87f ("net: Allow to specify ifindex when device is moved to another namespace")
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c
include/linux/netdevice.h
net/core/dev.c
net/core/rtnetlink.c
net/ieee802154/core.c
net/wireless/core.c