Skip to content

create netdevsim instances in namespace

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: devlink: export devlink net setterinclude/net/devlink.h net/core/devlink.c+14 -30 replies
2/3netdevsim: create devlink and netdev instances in namespacedrivers/net/netdevsim/bus.c drivers/net/netdevsim/dev.c drivers/net/netdevsim/netdevsim.h+5 -00 replies
3/3selftests: test creating netdevsim inside network namespacetools/testing/selftests/drivers/net/netdevsim/devlink_in_netns.sh tools/testing/selftests/net/forwarding/lib.sh+78 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJakub Kicinski
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch net-next 0/3] create netdevsim instances in namespace

From: Jiri Pirko <[email protected]>

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
Signature · 1 line
2.21.0