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: eeb85a14 ("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>
Showing
- drivers/net/hyperv/netvsc_drv.c 1 addition, 1 deletiondrivers/net/hyperv/netvsc_drv.c
- include/linux/netdevice.h 7 additions, 1 deletioninclude/linux/netdevice.h
- net/core/dev.c 5 additions, 5 deletionsnet/core/dev.c
- net/core/rtnetlink.c 2 additions, 2 deletionsnet/core/rtnetlink.c
- net/ieee802154/core.c 2 additions, 2 deletionsnet/ieee802154/core.c
- net/wireless/core.c 2 additions, 2 deletionsnet/wireless/core.c
Loading
Please register or sign in to comment