selftests: fib_tests: simplify ip commands in a namespace
authorDavid Ahern <[email protected]>
Tue, 13 Feb 2018 16:37:33 +0000 (08:37 -0800)
committerDavid S. Miller <[email protected]>
Tue, 13 Feb 2018 19:34:28 +0000 (14:34 -0500)
commit07f4e62f1c704f583740e6dd59c223819feb03ec
treec21f89d12e7a3bc445f65d88b380ce1722ab093f
parent8c2ceabe99e04005cadba739856eed6953a8a3af
selftests: fib_tests: simplify ip commands in a namespace

'ip netns exec testns ip' is more efficiently handled using 'ip -netns';
runs the ip command after switching the namespace and avoids an exec.

Signed-off-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
tools/testing/selftests/net/fib_tests.sh