]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: rtnetlink: use internal netns switch for ip commands
authorDavid Ahern <dsahern@gmail.com>
Thu, 28 Feb 2019 19:22:58 +0000 (11:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 21:02:43 +0000 (13:02 -0800)
commitbe9cefe796f3abfbef02e66fbe3bff766b93b867
tree4acfd4895706f9441158ff9f0388ac878f7f7bc3
parentb9f2c028709d158c57e7b8d76d4eadff3d9c69a6
selftests: rtnetlink: use internal netns switch for ip commands

'ip' can switch network namespaces internally and then run a given
command relative to that namespace without the need to fork and exec
another ip instance. Update all references of the form:
    ip netns exec "$testns" ip ...
to
    ip -netns "$testns" ...

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/rtnetlink.sh