selftests: pmtu: Use namespace command prefix to fetch route mtu
authorStefano Brivio <sbrivio@redhat.com>
Sat, 17 Mar 2018 01:31:39 +0000 (02:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Mar 2018 00:15:13 +0000 (20:15 -0400)
commit822d2f86c485113dc5df7648e97aaef3607c4479
tree191ca97ba93e3fc64bc8350bb16bbc99f01f8fc5
parent380e29a6b71fac7ce7a437ab2f7e305c3de8076f
selftests: pmtu: Use namespace command prefix to fetch route mtu

In 7af137b72131 ("selftests: net: Introduce first PMTU test") I
accidentally assumed route_get_* helpers would run from a single
namespace. Make them a bit more generic, by passing the
namespace command prefix as a parameter instead.

Fixes: 7af137b72131 ("selftests: net: Introduce first PMTU test")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh