[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191005061033.24235-1-jiri@resnulli.us>
Date: Sat, 5 Oct 2019 08:10:30 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, idosch@...lanox.com,
jakub.kicinski@...ronome.com, petrm@...lanox.com,
tariqt@...lanox.com, saeedm@...lanox.com, shuah@...nel.org,
mlxsw@...lanox.com
Subject: [patch net-next 0/3] create netdevsim instances in namespace
From: Jiri Pirko <jiri@...lanox.com>
Allow user to create netdevsim devlink and netdevice instances in a
network namespace according to the namespace where the user resides in.
Add a selftest to test this.
Jiri Pirko (3):
net: devlink: export devlink net setter
netdevsim: create devlink and netdev instances in namespace
selftests: test creating netdevsim inside network namespace
drivers/net/netdevsim/bus.c | 1 +
drivers/net/netdevsim/dev.c | 1 +
drivers/net/netdevsim/netdevsim.h | 3 +
include/net/devlink.h | 2 +
net/core/devlink.c | 15 +++-
.../drivers/net/netdevsim/devlink_in_netns.sh | 72 +++++++++++++++++++
tools/testing/selftests/net/forwarding/lib.sh | 7 +-
7 files changed, 97 insertions(+), 4 deletions(-)
create mode 100755 tools/testing/selftests/drivers/net/netdevsim/devlink_in_netns.sh
--
2.21.0
Powered by blists - more mailing lists