netdevsim: take devlink net instead of init_net
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Oct 2019 09:49:38 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 18:10:56 +0000 (11:10 -0700)
commit4f174bbcc96c80720722e25f198580a184803c3a
tree0a40ee23dec7073d1914f0a3a9d2b4212f0f1887
parent90d299138dd42579084715d6d25f9c27b63211af
netdevsim: take devlink net instead of init_net

Follow-up patch is going to allow to reload devlink instance into
different network namespace, so use devlink_net() helper instead
of init_net.

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/netdevsim/fib.c