summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNir Dotan <nird@mellanox.com>2018-08-07 19:41:55 +0300
committerDavid S. Miller <davem@davemloft.net>2018-08-08 02:02:30 +0300
commit541ad323db3a692a80c276785a15790ba52da24b (patch)
tree8dc1141d2bdce91ea3160cf9b5797dd550ffb896 /tools
parent736ac8146404560215e7aaf4e28fc2d8746a72d1 (diff)
downloadlinux-541ad323db3a692a80c276785a15790ba52da24b.tar.xz
selftests: forwarding: gre_multipath: Update next-hop statistics match criteria
gre_multipath test was using egress vlan_id matching on flows, for the purpose of collecting next-hops statistics, later to be compared against configured weights. As matching on vlan_id on egress direction is not supported on all HW devices, change the match criteria to use destination IP. Signed-off-by: Nir Dotan <nird@mellanox.com> Acked-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/net/forwarding/gre_multipath.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/testing/selftests/net/forwarding/gre_multipath.sh b/tools/testing/selftests/net/forwarding/gre_multipath.sh
index 3b1e047f7617..cca2baa03fb8 100755
--- a/tools/testing/selftests/net/forwarding/gre_multipath.sh
+++ b/tools/testing/selftests/net/forwarding/gre_multipath.sh
@@ -95,10 +95,10 @@ sw1_create()
nexthop dev g1b
tc qdisc add dev $ul1 clsact
- tc filter add dev $ul1 egress pref 111 prot 802.1q \
- flower vlan_id 111 action pass
- tc filter add dev $ul1 egress pref 222 prot 802.1q \
- flower vlan_id 222 action pass
+ tc filter add dev $ul1 egress pref 111 prot ipv4 \
+ flower dst_ip 192.0.2.66 action pass
+ tc filter add dev $ul1 egress pref 222 prot ipv4 \
+ flower dst_ip 192.0.2.82 action pass
}
sw1_destroy()