net: devlink: allow to change namespaces during reload
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Oct 2019 09:49:39 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 18:10:56 +0000 (11:10 -0700)
commit070c63f20f6c739a3c534555f56c7327536bfcc2
treebeee6089d6353e0a1c2524f47621e43cd105bcab
parent4f174bbcc96c80720722e25f198580a184803c3a
net: devlink: allow to change namespaces during reload

All devlink instances are created in init_net and stay there for a
lifetime. Allow user to be able to move devlink instances into
namespaces during devlink reload operation. That ensures proper
re-instantiation of driver objects, including netdevices.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/netdevsim/dev.c
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c