diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-01-28 12:02:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-28 10:43:15 -0800 |
commit | 6f64bcb62f3399fb77792f35d9bfa55dcebd9e43 (patch) | |
tree | 8cb4a5e2c2306896ef3c1e493eb4223d1466a90e /tools/testing/selftests/net | |
parent | 39c6b53cc01fec4c7addd3e841fea5125639c0fd (diff) | |
download | linux-6f64bcb62f3399fb77792f35d9bfa55dcebd9e43.tar.bz2 |
selftests: net: forwarding: change devlink resource support checking
As for the others, check help message output to find out if devlink
supports "resource" object.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net')
-rw-r--r-- | tools/testing/selftests/net/forwarding/devlink_lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/forwarding/devlink_lib.sh b/tools/testing/selftests/net/forwarding/devlink_lib.sh index 5ab1e5f43022..57cf8914910d 100644 --- a/tools/testing/selftests/net/forwarding/devlink_lib.sh +++ b/tools/testing/selftests/net/forwarding/devlink_lib.sh @@ -32,7 +32,7 @@ DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \ ############################################################################## # Sanity checks -devlink -j resource show "$DEVLINK_DEV" &> /dev/null +devlink help 2>&1 | grep resource &> /dev/null if [ $? -ne 0 ]; then echo "SKIP: iproute2 too old, missing devlink resource support" exit 1 |