selftests: forwarding: gre_multipath: Fix flower filters
authorIdo Schimmel <idosch@mellanox.com>
Tue, 23 Jul 2019 08:19:26 +0000 (11:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:06:48 +0000 (13:06 -0700)
commit1be79d89b7ae96e004911bd228ce8c2b5cc6415f
tree5c810be77f49d0a8fef71699a366103978aa22c9
parentefa7b79f675da0efafe3f32ba0d6efe916cf4867
selftests: forwarding: gre_multipath: Fix flower filters

The TC filters used in the test do not work with veth devices because the
outer Ethertype is 802.1Q and not IPv4. The test passes with mlxsw
netdevs since the hardware always looks at "The first Ethertype that
does not point to either: VLAN, CNTAG or configurable Ethertype".

Fix this by matching on the VLAN ID instead, but on the ingress side.
The reason why this is not performed at egress is explained in the
commit cited below.

Fixes: 541ad323db3a ("selftests: forwarding: gre_multipath: Update next-hop statistics match criteria")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Tested-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/gre_multipath.sh