diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-02-28 11:25:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-28 18:25:48 +0100 |
commit | 4e4272d2a68dcdd2555774dba9d8b237fe0eb63d (patch) | |
tree | 886a6206b2d3eff9da9ad0ada0bc9fb8bfdc02e0 /tools/testing/selftests | |
parent | selftests: forwarding: Add tc offload check helper (diff) | |
download | linux-4e4272d2a68dcdd2555774dba9d8b237fe0eb63d.tar.xz linux-4e4272d2a68dcdd2555774dba9d8b237fe0eb63d.zip |
selftests: forwarding: Add MAC get helper
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')
-rw-r--r-- | tools/testing/selftests/net/forwarding/lib.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index 92e46426bd1d..083a16eb7803 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -270,6 +270,13 @@ link_stats_tx_packets_get() ip -j -s link show dev $if_name | jq '.[]["stats64"]["tx"]["packets"]' } +mac_get() +{ + local if_name=$1 + + ip -j link show dev $if_name | jq -r '.[]["address"]' +} + bridge_ageing_time_get() { local bridge=$1 |