[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190812134751.30838-1-jiri@resnulli.us>
Date: Mon, 12 Aug 2019 15:47:48 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, jakub.kicinski@...ronome.com,
stephen@...workplumber.org, dsahern@...il.com, mlxsw@...lanox.com
Subject: [patch net-next v3 0/3] net: devlink: Finish network namespace support
From: Jiri Pirko <jiri@...lanox.com>
Devlink from the beginning counts with network namespaces, but the
instances has been fixed to init_net. The first patch allows user
to move existing devlink instances into namespaces:
$ devlink dev
netdevsim/netdevsim1
$ ip netns add ns1
$ devlink dev set netdevsim/netdevsim1 netns ns1
$ devlink -N ns1 dev
netdevsim/netdevsim1
The last patch allows user to create new netdevsim instance directly
inside network namespace of a caller.
Jiri Pirko (3):
net: devlink: allow to change namespaces
net: devlink: export devlink net set/get helpers
netdevsim: create devlink and netdev instances in namespace
drivers/net/netdevsim/bus.c | 1 +
drivers/net/netdevsim/dev.c | 17 ++-
drivers/net/netdevsim/netdev.c | 4 +-
drivers/net/netdevsim/netdevsim.h | 8 +-
include/net/devlink.h | 3 +
include/uapi/linux/devlink.h | 4 +
net/core/devlink.c | 182 +++++++++++++++++++++++++++++-
7 files changed, 205 insertions(+), 14 deletions(-)
--
2.21.0
Powered by blists - more mailing lists