netdevsim: create devlink and netdev instances in namespace
authorJiri Pirko <jiri@mellanox.com>
Sat, 5 Oct 2019 06:10:32 +0000 (08:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Oct 2019 23:34:15 +0000 (16:34 -0700)
commit7b60027bbc6738b067bb9ed732a8c56b0ac430b2
treeadf5ca6c29ae0c28e23976bb1b2c4ede94878bdf
parent8273fd845447820c26b38821c8ac297f40a65260
netdevsim: create devlink and netdev instances in namespace

When user does create new netdevsim instance using sysfs bus file,
create the devlink instance and related netdev instance in the namespace
of the caller.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h