]> git.baikalelectronics.ru Git - kernel.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)
commit1fcb6f4a6861ac58fcda8cadc6a998bcdbfb6020
tree4acfd4895706f9441158ff9f0388ac878f7f7bc3
parent9e8ad5f64d3bac53ba3b515086514b24d36aef03
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